Tutorial 7
Tutorial 7
Tutorial 7
1. Design a sequence checker for the input pattern “…101…”. To elaborate, at each input
(running window), if the pattern is 101, the output line is high (else it remains low). Also,
draw the state machine for the design.
2. Design a sequence checker for the input pattern “Even number of 0s and 1s”. Also, draw
the state machine for the design.
3. Design a Verilog code to implement a 4 Bit sequential Multiplier. The I/O specifications are
in the table below.
Example
1001 =a
1010 =b
_______
00000000 (Temporary result after 1st clock edge)
0001001X (Temporary result after 2nd clock edge)
000000XX (Temporary result after 3rd clock edge)
01001XXX (Temporary result after 4th clock edge)
01011010 Op after 4th clock edge and Ready_out=1