N
Nancy
Guest
I am a newbie user of VHDL-AMS, and am trying to log quantities of a
module buried deep within the chip hierarchy at the chip testbench
level.
Here's the syntax I'm using in the entity, analog_ctrl_stim, to log
the quantity ain7_v inside of analog_ctrl_stim. It resides in the
hierarchy under :tb_ucxx:xtc_ucxx:xanalog_ctrl_stim.
entity analog_ctrl_stim is
port (
terminal AIN7 : electrical;
);
end analog_ctrl_stim;
architecture behav of analog_ctrl_stim is
quantity ain7_v across ain7_i through AIN7;
begin
test : process
begin
report "ain7 voltage = " & real'image(ain7_v); --- This works ok
end behav
Now, can I also log a quantity in a different part of the chip
hierarchy- for instance, :tb_ucxx:xucxx:xconv:xdac:v_dac1out. I have
been unable to find working syntax to log quantities in other parts of
the hierarchy at the analog_ctrl_stim level.
report "v_dac1out voltage = " &
real'imagetb_ucxx:xucxx:xconv:xdac:v_dac1out'reference); --- This
doesn't work
report "v_dac1out voltage = " &
real'image(":tb_ucxx:xucxx:xconv:xdac:v_dac1out"'reference); --- This
doesn't work either
Thanks for any help you all can provide. Perhaps this is just not
legal to do....but I have no clue.
module buried deep within the chip hierarchy at the chip testbench
level.
Here's the syntax I'm using in the entity, analog_ctrl_stim, to log
the quantity ain7_v inside of analog_ctrl_stim. It resides in the
hierarchy under :tb_ucxx:xtc_ucxx:xanalog_ctrl_stim.
entity analog_ctrl_stim is
port (
terminal AIN7 : electrical;
);
end analog_ctrl_stim;
architecture behav of analog_ctrl_stim is
quantity ain7_v across ain7_i through AIN7;
begin
test : process
begin
report "ain7 voltage = " & real'image(ain7_v); --- This works ok
end behav
Now, can I also log a quantity in a different part of the chip
hierarchy- for instance, :tb_ucxx:xucxx:xconv:xdac:v_dac1out. I have
been unable to find working syntax to log quantities in other parts of
the hierarchy at the analog_ctrl_stim level.
report "v_dac1out voltage = " &
real'imagetb_ucxx:xucxx:xconv:xdac:v_dac1out'reference); --- This
doesn't work
report "v_dac1out voltage = " &
real'image(":tb_ucxx:xucxx:xconv:xdac:v_dac1out"'reference); --- This
doesn't work either
Thanks for any help you all can provide. Perhaps this is just not
legal to do....but I have no clue.