• edited by
32,763 views
78 78 votes

Consider the following circuit with initial state $Q_0 = Q_1 = 0$. The D Flip-flops are positive edged triggered and have set up times 20 nanosecond and hold times $0.$

Consider the following timing diagrams of X and C. The clock period of $C \geq 40$ nanosecond. Which one is the correct plot of Y?

      

7 Answers

Best answer
65 65 votes

Answer is (a).

Given clock is $+$ edge triggered. 

See the first positive edge. $X$ is $0$, and hence, the output is $0$. $Q_0$ is $0$ and $Q_0'$ is $1$. 

Second $+$ edge, $X$ is $1$ and $Q_0'$ is also $1.$ So, output is $1.$ (When second positive edge of the clock arrives, $Q_0'$ would surely be $1$ because the setup time of flip-flop is given as $20$ ns and the clock period is $\geq 40$ $ns$)

Third $+$ edge, $X$ is $1$ and $Q_0'$ is $0,$ So, output is $0.$ $(Q_0'$ becomes $0$ before the third positive edge, but output $Y$ would not change as the flip-flop is positive edge triggered)

Now, output never changes back to $1$ as $Q_0'$ is always $0$ and when $Q_0'$ finally becomes $1, X$ is $0.$ 

Set up time and hold times are given just to ensure that edge triggering works properly.

• edited by
127 127 votes

Setup Time

Minimum amount of time BEFORE the clock's active edge that the data must be stable for it to be latched correctly

Hold Time

Minimum amount of Time AFTER the clock's active edge during which data must be stable

  • Setup and Hold time measured with respect to active clock edge

Read This

  • Initial state 
           $Q_0=Q_1=0$ (given)
           Setup Time   = 20ns
           Hold Time    = 0ns
           Clock Period = 40ns
  • Behaviour of Flip Flp depends on setup time and hold time
  • Flip Flop responds to the input during +ve edge but it consider the stable input which was given even before setup time
  • Flip-Flop changes its output to stable state within hold time
     

  • Above input will not be considered in the immediate +ve edge but it will be considered in the next coming +ve edge
  • In our Question $\color{Red} X$ goes to $0\rightarrow1$ before stable time which get considered in the immediate +ve edge

  • From the truth table it is clear that $Q_1$ is HIGH at $ \color{Blue}{ \text{clock } 1}$ only

• edited by
74 74 votes

Modifications or corrections to the timing diagram are welcomed.

• edited by
0 0 votes

answer - C

initially Q0' is 1

for the first clock period nothing will change since input doesn't come before rising edge of the clock cycle

Q0' will only go to 0 on rising edge of next clock cycle

for only one clock cycle D1 will be 1 and hence Y

Answer:
Position:
Show:

Related questions

44 44 votes
7 answers 7 answers
19.8k
19.8k views
Kathleen asked Sep 14, 2014
19,809 views
Consider the circuit given below with initial state $Q_0=1, Q_1=Q_2=0$. The state of the circuit is given by the value $4Q_2+2Q_1+Q_0$Which one of the following is correc...
66 66 votes
6 answers 6 answers
18.8k
18.8k views
Kathleen asked Sep 14, 2014
18,832 views
Consider the circuit shown below. The output of a $2:1$ MUX is given by the function $(ac' + bc)$.Which of the following is true?$f=X_1'+X_2$$f=X_1'X_2+X_1X_2'$$f=X_1X_2+...
31 31 votes
2 answers 2 answers
10.5k
10.5k views
Kathleen asked Sep 14, 2014
10,457 views
A sequential circuit takes an input stream of $0's$ and $1's$ and produces an output stream of $0's$ and $1's.$ Initially it replicates the input on its output until two ...
37 37 votes
6 answers 6 answers
7.2k
7.2k views
Kathleen asked Sep 14, 2014
7,171 views
Is the $3\text{-variable}$ function $f= \Sigma(0,1,2,4)$ its self-dual? Justify your answer.Give a minimal product-of-sum form of the $b$ output of the following $\text{e...