GATE CS 2021 Set 2 | Question 38
Digital Logic › Sequential Circuit · MCQ · 2 marks · Answer: B
- Question 38Digital Logicmcq2 marksSuppose we want to design a synchronous circuit that processes a string of 0's and 1's. Given a string, it produces another string by replacing the first 1 in any subsequence of consecutive 1's by a 0. For example, input
00100011000011100produces output00000001000001100. The circuit is a two-state Mealy machine with states represented by Boolean values 0 and 1. Let denote the current state, next state, the next incoming bit, and the output bit respectively. The initial state is 0. What are the Boolean expressions for and in terms of and ?- A.
- B.✓
- C.
- D.
Answer: B
Solution
State 1 means "currently inside a run of 1s (first 1 already replaced)". Next state is 1 exactly when the incoming bit , so . The output is 1 (keep the bit) only when already inside a run and the bit is 1, i.e. ; the first 1 of a run () is output as 0. - A.
More GATE PYQ on Sequential Circuit
All GATE CS Digital Logic PYQ →Attempt GATE CS 2021 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →