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

Draw the timing diagram for a SRAM Read. What happens if we delay the enabling of Clock signal?

679


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

3220


Explain what is Verilog?

644


Explain about 6-T XOR gate?

741


Explain the operation considering a two processor computer system with a cache for each processor.

2354






If an/ap = 0.5, an/ap = 1, an/ap = 3, for 3 inverters draw the transfer characteristics?

2017


How can you construct both PMOS and NMOS on a single substrate?

4491


What products have you designed which have entered high volume production?

1972


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

800


Explain the working of Insights of an inverter ?

718


How about voltage source?

1839


Explain how logical gates are controlled by Boolean logic?

636


What does the above code synthesize to?

2029


What are the various regions of operation of mosfet? How are those regions used?

597


How does a Bandgap Voltage reference work?

3253