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.

Don't care value during simulation

Status
Not open for further replies.

sebas

Junior Member level 2
Joined
Oct 7, 2009
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,468
Hi,

What happens to "X" - don't care values during simulation? To understand what I'm saying here's an example:
in a testbench there's the following statement:
Code:
we   = 1'hx;
then, lines after there's the following test:
Code:
 if (we) // do something//
(there's no else branch). What's the result of the if (we) test? is we interpreted as 0? what if we had an else branch also?

Thanks
 

Good question, I'd like to hear the answer, too. My guess is "if" branch will NOT be taken, but that's totally a speculation on my part.
 

The if branch will not be taken, since 'X' does not evaluate to '1'.

But, you could always make a quick testbench to test such things out for yourself. ;)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top