CSE 460 - Spring - 25 - Assignment 2
CSE 460 - Spring - 25 - Assignment 2
Assignment 2
Q1. Alyssa P. Hacker has a snail that crawls down a paper tape with 1’s and 0’s on it. The snail smiles
whenever the last two digits it has crawled over are 01. Design Moore and Mealy FSMs of the snail’s
brain.
Q2. The output z is equal to 1 if during three immediately preceding clock cycles the input w was equal
to 1. Otherwise, the value of z is equal to 0. Identify the type of FSM and design the FSM for solving this
problem.
Q3. The output z is equal to 1 when the number of 1’s in all previous cycles is odd and z is equal to 0
when the number of 1’s in all previous cycles is even. Design the FSM for solving this problem.
Q4. Consider a sequential circuit that detects if two consecutive bits are the same or not. The circuit
generates an output z=1 if two consecutive bits are opposite and z=0 if the bits are the same. The
output changes in the same clock cycle where the input is received.
Q5. Derive a Mealy-type FSM that can act as a sequence detector that gives an output of 1 when
detects the pattern 00 or 11.