Blocking and non-blocking assignments in Verilog
Explain blocking and non-blocking assignments in Verilog and which one is preferred in Sequential circuits?
Expert
A blocking assignment is one wherein the statements are sequentially executed, i.e. first statement is executed & variable is assigned a value then second is executed and so forth. A non blocking assignment is one wherein statements occur concurrently. Only non-blocking assignments must be employed in sequential circuit.
e.g
initial
begin
a=b; //blocking
c<=a; //nonblocking
d=c; //blocking
end
In this instance firstly the value of b is assigned to a & this value is assigned to c simply after execution of first statement. The second & the third statements are executed simultaneously, that means value a is assigned to c and previous value if c is assigned to d.
Who won the 1896 election and why did they win?
Normal 0 false false
What were the guiding principles of CORE and Martin Luther King Jr. on which the Montgomery bus Boycott was based?
18,76,764
1937470 Asked
3,689
Active Tutors
1445248
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!