when two signals in the sensitivity list switching at the same time, problem.

Status
Not open for further replies.

blueinsky

Newbie level 2
Joined
Mar 31, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,299
Hi, I'm new in verification. Here's the problem I need some help.
When two signals in the sensitivity list switching at the same time. It seems the simulator
would still consider one switched after another.
And if we have error detection in this block, sometimes it may trigger the error reporting
without a real error.
For example:

always @(*)
if (a)
if (b)
error;

when a:1->0 and b:0->1 at the same time, sometimes the error event will be triggered,
because the simulator may think that a switched after b (if I understand if correctly).
but this is not an error to us in the real world. Of coures more complicated combinational
logic would be involved in most of the time.
Since, I found myself having this problem regularly, I'm wondering is there an universal
and convenient way to solve it?
Many thanks.
 

In simulation, you will see the correct result, I means no wrong error and no missing error.
In VHDL you could see the delta cycle, and see error at wrong value but at the end of the time step, the result will be correct.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…