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

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 consecutive 0's are encountered on the input. From then onward, it produces an output stream, which is the bit-wise complement of input stream until it encounters two consecutive 1's, whereupon the process repeats. An example input and output stream is shown below.

The input stream: 101100|01001011 0|11
The desired output 101100|10110100 0|11

J-K master-slave flip-flops are to be used to design the circuit.

Give the state transition diagram

asked in Digital Logic by Veteran (59.4k points)
edited by | 574 views

1 Answer

+14 votes
Best answer

We can design a Mealy Machine as per the requirement given in the question. 

From which we will get state table, and we can design sequential circuit using any Flip-flop from the state table (with the help of excitation table) :


answered by Veteran (54.4k points)
selected by
Why to use 2 FF.?
we need to deal with 4 states.
4 states need 2 bits to represent them. Hence 2 Flipflops.
@praveen sir , how transations are going on can u explain bit more? ... m getting how op is comming
look at problem as two parts, first we are looking at 00, till 00 each output is same as input, 0/0,1/0. once we get 00 then we are looking for 11, till 11 each output is complement of input, 0/1, 1/0.

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

34,831 questions
41,810 answers
41,452 users