(d) Only the first z will have the new x
and y values. This is because the second assignment is non-blocking and
executes at once, resulting in the past values of x and y being written
to z.
Task 2:
2ns clock code:
2ns clock simulation:
Task 3:
Six bit even/odd code:
Six bit even/odd simulation:
Task 4:
(a) Sequence detected of state diagram: 1101
(b) State diagram, truth table, and logic expressions for 1010 sequence detector:
Code for 1010 sequence detector:
1010 seuqence detector demonstration: