GATEverse
← GATE CSE 2021 Set 2

Q28

MCQ2 marks, −0.67

Suppose we want to design a synchronous circuit that processes a string of 00’s and 11’s. Given a string, it produces another string by replacing the first 11 in any subsequence of consecutive 11’s by a 00. Consider the following example.

Input sequence:00100011000011100Output sequence:00000001000001100\begin{array}{ll} \text{Input sequence:} & 00100011000011100 \\ \text{Output sequence:} & 00000001000001100 \end{array}

A Mealy Machine is a state machine where both the next state and the output are functions of the present state and the current input. The above mentioned circuit can be designed as a two-state Mealy machine. The states in the Mealy machine can be represented using Boolean values 00 and 11. We denote the current state, the next state, the next incoming bit, and the output bit of the Mealy machine by the variables s,t,bs, t, b and yy respectively. Assume the initial state of the Mealy machine is 00. What are the Boolean expressions corresponding to tt and yy in terms of ss and bb?

Sign in to save attempts.

Loading…