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.

what is difference begin~end && non blocking assignment and begin~end &&blocking?

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,101
what is difference begin~end && non blocking assignment and begin~end &&blocking?

Hi.

I am curious about what is difference begin~end && non blocking assignment and begin~end &&blocking assignment?
Is this same?

My simulation result is the same but I'm not sure.
 

Re: what is difference begin~end && non blocking assignment and begin~end &&blocking?

Hi.

I am curious about what is difference begin~end && non blocking assignment and begin~end &&blocking assignment?
Is this same?

My simulation result is the same but I'm not sure.

Blocking logically assigns the value immediately. If you use a blocking assignment to assign "A" and then use A on the next line it will have the new value. If you had used the non-blocking assignment A would have it's old value until the next clock cycle (assuming it's synchronous logic).

Using non-blocking assignments is safer in some respects because it often better represents how the hardware actually works. Using blocking assignments is fine if you understand what it's doing and how it's going to synthesize.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top