C
Colin Marquardt
Guest
Hi,
could somebody with access to ModelSim tell me whether it supports
displaying user-defined physical types in its waveform window?
I'm including a testcase here - can you see the value changes for
both signals "a" and "b"? If "a" doesn't work, does at least "b"?
If "a" works, can you choose the unit it is displayed in, or does it
always use the base unit (uV)?
Thanks in advance,
Colin
-- ----------------------------------------------------------------------
entity test is
end test;
architecture rtl of test is
type voltage is range -10*1000*1000 to 10*1000*1000
units
uV;
mV = 1000 uV;
V = 1000 mV;
end units voltage;
signal a: voltage;
signal b: time;
begin
process
begin
a <= 3 uV;
b <= 3 fs;
wait for 10 ns;
a <= 3 mV;
b <= 3 ps;
wait for 10 ns;
a <= 8 V;
b <= 3 ms;
wait for 10 ns;
a <= -8 V;
wait for 10 ns;
wait;
end process;
end rtl;
-- ----------------------------------------------------------------------
could somebody with access to ModelSim tell me whether it supports
displaying user-defined physical types in its waveform window?
I'm including a testcase here - can you see the value changes for
both signals "a" and "b"? If "a" doesn't work, does at least "b"?
If "a" works, can you choose the unit it is displayed in, or does it
always use the base unit (uV)?
Thanks in advance,
Colin
-- ----------------------------------------------------------------------
entity test is
end test;
architecture rtl of test is
type voltage is range -10*1000*1000 to 10*1000*1000
units
uV;
mV = 1000 uV;
V = 1000 mV;
end units voltage;
signal a: voltage;
signal b: time;
begin
process
begin
a <= 3 uV;
b <= 3 fs;
wait for 10 ns;
a <= 3 mV;
b <= 3 ps;
wait for 10 ns;
a <= 8 V;
b <= 3 ms;
wait for 10 ns;
a <= -8 V;
wait for 10 ns;
wait;
end process;
end rtl;
-- ----------------------------------------------------------------------