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 assigment

Status
Not open for further replies.

madalin1990

Full Member level 2
Full Member level 2
Joined
Apr 4, 2012
Messages
124
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
2,090
Mixing blocking and non-blocking assigments in an always block will result in an error. Am i right?
 

Yes, Synopsys tools will report a syntax error. Assigning a non-blocking and a blocking assignment to the same variable is generally quite bad style because it increases the possibilities of races, glitches. As Per Synplify documentation, you can't use blocking and nonblocking for the same register. So perhaps you can mix them in the same process as long as you don't for the same reg.
 

If you use blocking and non blocking for the same signal then it will give error. Use of blocking for the same signal all over the code will not give error, same in the case of non-blocking.
You can use both blocking and non- blocking for two different signals is allowed
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top