

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Inputs: y; Outputs: e A y’ / e = 1 B
y / e = 0 y’ / e = 0 y / e = 1
Inputs: ab; Outputs: w
w = 1 w = 1
w = 0 w = 1
a’ a’b’
ab’
ab (^) b’ ab b b’ + ab’
Inputs: a; Outputs: x, y A (^) y = 0 B C D
a’ / x = 1 y = 0 y = 1 y = 0
a / x = 1 a / x = 1 a / x = 0 a’ / x = 0 a’ / x = 1 a’ / x = 1
a / x = 0
Inputs: b (bit)Outputs: x (bit) A b B
b’ b’
b x = 0 x = 1
Inputs: b (bit)Outputs: x (bit) A b B
b’ x = 0 x = 1
Inputs: b (bit)Outputs: x (bit) A b B
b’ b
b’ x = 0 x = 1
Inputs: b (bit)Outputs: x (bit) A b B
b’ b’ x = 0 x = 1 x = 0C^ b
b’ b
To model this FSM in Verilog we can use either a 2-process model or a 1-process model. Download the three-cycleshigh laser time code provided on the course page and simulate both FSMs using the Testbench provided. a)b) Do both the 1-process model and 2-process model accurately describe the functionality of the desired system?Is there any difference in output between the 1-process model and 2-process model? If so, why?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------8. Derive a state table for the FSM provided. Assume the state register is implemented with T flip-flops and the state encodings for states A, B, C, and D are 00 , 01 , 10 , and 11 respectively. A truth table for T flip-flops is provided. T flip-flop and corresponding truth table A yz = 00
D C
a’ B
Inputs: a (bit)Outputs: y, z (bit) a’
a’ a’
a
a a
a yz = 01
yz = 10 yz = 11
T Q C
Inputs: a, b; Outputs: y A (^) y = 0 B^ C
a’ a’b’ b’/ y= y = 0
a ab’ b b / y = 1
Off x = 0 On
b’
On
Inputs: b (bit)Outputs: x (bit)
b On x = 1 x = 1 x = 1