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.

example of using blocking assignment in verilog

Status
Not open for further replies.

yuenkit

Advanced Member level 4
Joined
Jan 20, 2005
Messages
107
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,298
Activity points
1,047
Hi,

i normally use non-blocking assignment in my design and use blocking assignment in my testbench.

I wonder, under what situation do we use blocking assignment in design (to be synthesized)? Can you give example to illustrate your point? thank you!
 

Rule of thumb:
non-blocking: used in sequential circuit
blocking: used in combinatorial circuit

It doesn't matter if it's testbench or synthesizable RTL code. Just follow this rule.
 

thnx,

But even in a sequential block, the circuit is basically combo logic + flipflop, so it's hard to separate out sequential logic and combo logic.

can some one shows me the code snippet of using blocking assignment (for synthesis purpose, not for testbench)?

even in fsm coding, i've come across some examples which are completely written using non-blocking. Although myself prefer using non-blocking assignment.
 

that THUMB rules goes well !! is there any other possiblity for using blocking statements in squential design
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top