The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+10 votes

Consider the following circuit:


The flip-flops are positive edge triggered D FFs. Each state is designated as a two-bit string $Q_0Q_1$. Let the initial state be 00. The state transition sequence is


asked in Digital Logic by Veteran (68.9k points)
recategorized by | 1.3k views
After first state (0,0) q0 complement =1 and q1complement=1
next value for q0 is complement so its 1 which is also value for xor and another input is 1 which is value of q1complement so result of xor for (1,1) is 0 there for q1 is 0 and state becomes(1,0) how are you people getting 1,1

(D) is the correct choice!

2 Answers

+19 votes
Best answer

Clearly Q0 alternates in every clk cycle as Q0' is fed as input and it is D flipflop.

Q1 becomes 1 if its prev value and current Q0 differs (EXOR). 

So, the sequence of transitions will be 00 -> 11 -> 01 -> 10 -> 00 (D) choice. 

answered by Veteran (332k points)
selected by
sir ,answer should be (D) ..

Q0next = D0= Q0'

Q1next = D1= Q0XORQ1'=Q0 XNOR Q1.

Q0Q1 = 00-->11--->01-->10-->00
Yes. I was taking OR Gate. Corrected now. Thanks..
My pleasure ...sir :)
sequence is 00->11->10->01
but i got 00--11--10--01.

your statement : "Q1 becomes 1 if its prev value and current Q0 differs (EXOR)." is wrong i guess as q1 becomes 1 if complement of its prev value and current Qo differs  

+1 vote
answer - D
answered by Boss (9.3k points)
edited by

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

32,732 questions
39,309 answers
36,733 users