Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

blocking and non-blocking statements in verilog?

Status
Not open for further replies.

want2LearnVlsi

Newbie level 6
Joined
Jan 9, 2008
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
blocking and non blocking in verilog

Hi,

Can anybody explain the concepts of Blocking and Non-blocking statements in Verilog? Or any good book/paper explaining these clearly..?
I just started learning Verilog and I am getting confused when to use these statements.
Thanks in advance.

KSSR
 

verilog blocking statements examples

A classical paper discussing the topic in detail:
 

verilog non blocking

The paper posted above is really useful....
again you can check "verilog FAQ" book in the forum it also spelled nice differences ...
 

verilog blocking vs non-blocking

Hi All,

Thanks for the replies.
I will go thru the mentioned documents.

KSSR
 

To get more insight on blocking and non blocking visit following link

**broken link removed**
 

best book is verilog by j bhasker its has clear example and snug paper
 

A very basic example:
Blocking statement: Sequential
A = 0 and B=1 then
A=B //A = 1
B=A //B = 1

Nonblocking statement:
A=0 and B=1 then
A=B //A=1
B=A //B=0

Hope this helps..
 

A quick explanation from the useage point of view...guess it would be useful!

1> Use of non-blocking statements:
Use it only within SEQUENTIAL 'always' blocks (eg - if the sensitivity list contains a clock signal). A blocking statement here can cause Verilog race conditions.

2> Use of blocking st:
Use blocking assignments for combinational 'always' blocks.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top