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.

Confusion about blocking and nonblocking assignment?

Status
Not open for further replies.

jason7361

Newbie level 4
Newbie level 4
Joined
Apr 14, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,317
Hi! I have confusion about blocking and nonblocking assignment in the Verilog,
can anyone answer the following question for me?

A = 1;
B = 0;
C <= A;
B = C;
#5 D = B;
#5 D = C;
A <= D;

I am not sure the code above is valid, but if it is valid, what's the value of A,B,C,D at different time?

Thank you.
 

The code is not valid, because you can't mix both assignment types for the same signal.

I noticed, that the link for the popular cummings paper on non-blocking assignments has expired. Here's a copy:
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top