a newbie question about modelsim and testbenches

Y

Yttrium

Guest
well, this is my first big VHDL/FPGA project (i already done some small
one's) and i was just wondering if the ModelSim Simulator gives me a

"# ** Warning: There is an 'U'|'X'|'W'|'Z'|'-' in an arithmetic operand, the
result will be 'X'(es).
# Time: 5875 ns Iteration: 2 Instance: /testbench/uut"

warning should i really pay attention to it or not? because when i look at
the signals there's nothing wrong with what they're doing and the module's
simulation is perfect! usually i try to solve as many warning as possible
but i get this one from time to time and never pay attention to this one!

thanx for replying,

greetings,

Yttrium
 
"Yttrium" <Yttrium@pandora.be> wrote in message
news:gcuob.116897$KA3.5170314@phobos.telenet-ops.be...

"# ** Warning: There is an 'U'|'X'|'W'|'Z'|'-' in an arithmetic
operand, the result will be 'X'(es).
# Time: 5875 ns Iteration: 2 Instance: /testbench/uut"

warning should i really pay attention to it or not? because when i look at
the signals there's nothing wrong with what they're doing and the module's
simulation is perfect! usually i try to solve as many warning as possible
but i get this one from time to time and never pay attention to this one!
It is common to get this error in VHDL designs at start-up
(time 0 ns) before the system is reset. In this case, the
error is usually harmless.

If it occurs at any later time in simulation, as your error
seems to indicate, it is more likely to be serious. You
should track down exactly where it comes from, and check
for yourself that it reflects normal and harmless behaviour
of some uninitialised register.

Consider this:
signal value: unsigned(7 downto 0);
...
if value = 0 then ....

Now, if "value" contains X in simulation, the comparison will be
false and nothing will happen. But in the real hardware, the
uninitialised "value" MIGHT contain zero by chance - and then
the condition would be true, and something different would
happen. Are you happy to ignore that kind of issue ????

If you really want to get rid of these warnings, you can do it
in ModelSim. Look at menu item Simulate/Simulation_Options;
under the Defaults tab you will find a check box
"Suppress warnings from IEEE Numeric Std packages".
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * Perl * Tcl/Tk * Verification * Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail: jonathan.bromley@doulos.com
Fax: +44 (0)1425 471573 Web: http://www.doulos.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 

Welcome to EDABoard.com

Sponsor

Back
Top