The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 2:27am
Pages: 1
Send Topic Print
issue betwen blocking and no blocking (Read 1095 times)
idriss
Junior Member
**
Offline



Posts: 14

issue betwen blocking and no blocking
Jun 15th, 2009, 8:48am
 
Hi Guys
I would like to know when I use this piece of code:

always @(c40 or d0b or c42 or d1b or c44 or d2b or c46 or d3b or pwrFault)  q_latchp = #tdelay (!pwrFault) ? ~((c40 && d0b) || (c42 && d1b) || (c44 && d2b) || (c46 && d3b)):1'bx;

always @(c40 or d0n or c42 or d1n or c44 or d2n or c46 or d3n or pwrFault)  q_latchn = #tdelay (!pwrFault) ? ~((c40 && d0n) || (c42 && d1n) || (c44 && d2n) || (c46 && d3n)):1'bx;




to model a CSVL kind of mux,I have  the wrong datas but when  I do no blocking code:

always @(c40 or d0b or c42 or d1b or c44 or d2b or c46 or d3b or pwrFault)  q_latchp <= #tdelay (!pwrFault) ? ~((c40 && d0b) || (c42 && d1b) || (c44 && d2b) || (c46 && d3b)):1'bx;

always @(c40 or d0n or c42 or d1n or c44 or d2n or c46 or d3n or pwrFault)  q_latchn <= #tdelay (!pwrFault) ? ~((c40 && d0n) || (c42 && d1n) || (c44 && d2n) || (c46 && d3n)):1'bx;

I have correct outputs
Can someone explain me the differences and where the issue comes from.

Thank you very much
idris
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.