Differences between blocking and Non-blocking statements in
Verilog?

Answer Posted / amit malik

cp mistake in 1st one.
-----------------------------------

Blocking statements are executed on after another
represented by '='

Ex. lets take two variables
reg A:0;
reg B:1;
initial
begin
A = B;
B = A;
end

Ans
A = 1
B = 1

Non Blocking
instructions are executed concurrently
represented by '<='

Ex. lets take two variables
reg A:0;
reg B:1;
initial
begin
A <= B;
B <= A;
end

Ans
A = 1
B = 0

Is This Answer Correct ?    66 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the use of defpararm?

662


Why do we gradually increase the size of inverters in buffer design? Why not give the output of a circuit to one large inverter?

825


Write a program to explain the comparator?

685


Mention what are the different gates where Boolean logic are applicable?

673


what is the difference between the TTL chips and CMOS chips?

579






What was your role in the silicon evaluation or product ramp? What tools did you use?

1862


What are the different design constraints occur in the synthesis phase?

693


What are the different design techniques required to create a layout for digital circuits?

604


Explain how Verilog is different to normal programming language?

684


How does Vbe and Ic change with temperature?

2961


what is a sequential circuit?

612


Explain the Charge Sharing problem while sampling data from a Bus?

2107


What is the function of tie-high and tie-low cells?

625


Tell me how MOSFET works.

1939


Approximately, what were the sizes of your transistors in the SRAM cell? How did you arrive at those sizes?

697