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.

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top