You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some testbench with following declarative part:
architecturetestoftb_writebissignal clk : std_logic:='1';
signal ck : checker_t := init;
signal iface : interface_t := init;
constant ADDR : unsigned(31downto0) :=x"00000000";
constant DATA : data_array_t := (
x"01234567", x"89ABCDEF", x"DAEDBEEF", x"F0F0F0F0"
);
signal written_data : data_array_t(0to3);
signal write_done : boolean:=false;
begin
The data_arary_t is defined in a separate package as type data_array_t is array (natural range <>) of std_logic_vector(31 downto 0);. In the output .fst file I cannot find ADDR, DATA, and written_data. ADDR and DATA are constants so their absence is not a big deal. However, the written_data is a signal and it would be really nice to have a possibility to display it on a waveform.
The text was updated successfully, but these errors were encountered:
--dump-arrays
Include memories and nested arrays in the waveform data. This is
disabled by default as it can have significant performance, mem‐
ory, and disk space overhead.
It indeed works. However, I observe some weird behavior.
type data_array_t isarray (naturalrange<>) ofstd_logic_vector(31downto0);
type mock_completer_t isrecord-- Configuration elements
prefix : string; -- Optional prefix used in report messages.-- Internal elements
memory : data_array_t;
-- Statistics elements
read_count : natural; -- Number of read transfers.
write_count : natural; -- Number of write transfers.endrecord;
function init (memory_size: natural; prefix: string:="apb: mock completer: ") return mock_completer_t isvariable mc : mock_completer_t(prefix(0to prefix'length-1), memory(0to memory_size -1));
begin
mc.prefix := prefix;
return mc;
endfunction;
signal mc : mock_completer_t := init(memory_size =>8);
I would expect the mc.memory array to have 8 elements. However, the gtkwave shows 256 elements.
I have some testbench with following declarative part:
The
data_arary_t
is defined in a separate package astype data_array_t is array (natural range <>) of std_logic_vector(31 downto 0);
. In the output .fst file I cannot findADDR
,DATA
, andwritten_data
.ADDR
andDATA
are constants so their absence is not a big deal. However, thewritten_data
is a signal and it would be really nice to have a possibility to display it on a waveform.The text was updated successfully, but these errors were encountered: