Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4-2. The following is an example of mixed use of blocking and nonblocking assign

ID: 3681054 • Letter: 4

Question

4-2. The following is an example of mixed use of blocking and nonblocking assignments: an example of mixed uae of blocking and nonblocking aa aignmenta module blocking-nonblocking-mixed; reg a, b, c, d, e; blocking aaaignmenta initial begin a #3 1'b0 #41 bi b d #7 1'b1 #8 1'b0 end endmodule (a) At what simulation time is each statement executed? (b) Interchange the blocking and nonblocking operators and redo part (a). (c) Replace All nonblocking ent with blocking assignments and redo pa (a) a (d) Replace all blocking assignment with nonblocking assignments and redo part (a)

Explanation / Answer

Answers:

a)

a=#3 1'b0;
b<=#4 1'b1;
c<=#6 1'b0;
d=#7 1'b1;
e=#8 1'b0;

The simulator assigns 0 to a at time 3
The simulator assigns 1 to b at time 4
The simulator assigns 0 to c at time 6
The simulator assigns 1 to d at time 10
The simulator assigns 0 to e at time 18

b)

a<=#3 1'b0;
b=#4 1'b1;
c=#6 1'b0;
d<=#7 1'b1;
e<=#8 1'b0;

The simulator assigns 0 to a at time 3
The simulator assigns 1 to b at time 4
The simulator assigns 0 to c at time 10
The simulator assigns 1 to d at time 7
The simulator assigns 0 to e at time 8

c)

a=#3 1'b0;
b=#4 1'b1;
c=#6 1'b0;
d=#7 1'b1;
e=#8 1'b0;

The simulator assigns 0 to a at time 3
The simulator assigns 1 to b at time 7
The simulator assigns 0 to c at time 13
The simulator assigns 1 to d at time 20
The simulator assigns 0 to e at time 28


d)

a<=#3 1'b0;
b<=#4 1'b1;
c<=#6 1'b0;
d<=#7 1'b1;
e<=#8 1'b0;


The simulator assigns 0 to a at time 3
The simulator assigns 1 to b at time 4
The simulator assigns 0 to c at time 6
The simulator assigns 1 to d at time 7
The simulator assigns 0 to e at time 8

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote