User-defined Physical Type Support in Modelsim Waveform?

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;
-- ----------------------------------------------------------------------
 
Colin Marquardt wrote:

could somebody with access to ModelSim tell me whether it supports
displaying user-defined physical types in its waveform window?
Yes it does.
You would have to change default resolution to see ps, fs.

ns /test_units/a /test_units/b
delta
0 +0 {-10000000 uv} {-9223372036854775807 ns}
0 +1 {3 uv} {0 ns}
10 +1 {3000 uv} {0 ns}
20 +1 {8000000 uv} {3 ms}
30 +1 {-8000000 uv} {3 ms}

-- Mike Treseler


can you see the value changes for
both signals "a" and "b"?
yes
If "a" works, can you choose the unit it is displayed in, or does it
always use the base unit (uV)?
uV sticks, time autoranges.

-- Mike Treseler
 
Mike Treseler <mike_treseler@comcast.net> writes:

Colin Marquardt wrote:

could somebody with access to ModelSim tell me whether it supports
displaying user-defined physical types in its waveform window?

Yes it does.
[...]

Thanks very much Mike, for this and also all the other interesting
posts.

Cheers,
Colin
 

Welcome to EDABoard.com

Sponsor

Back
Top