H
hssig
Hi,
I want to write a testbench to test a module with generic(s).
The unit under test:
component gen_mod
generic( gA : natural := 3)
port( ....);
end component;
Now in my testbench I define an array of constants, for example:
type type_ctable is array(natural range <>) of natural;
constant cGenTable : type_ctable(0 to 7) := (3,4,5,6,7,8,9.10);
The instantiation of the UUT:
UUT: gen_mod
generic map( gA => cGenTable(0))
port map( ...);
Now my question is how to perform a bundle of simulation runs to test
the complete array of constants without having to adjust the generic
map manually, then recompile and restart the simulation.
Thank you for your opinion.
Cheers,
hssig
I want to write a testbench to test a module with generic(s).
The unit under test:
component gen_mod
generic( gA : natural := 3)
port( ....);
end component;
Now in my testbench I define an array of constants, for example:
type type_ctable is array(natural range <>) of natural;
constant cGenTable : type_ctable(0 to 7) := (3,4,5,6,7,8,9.10);
The instantiation of the UUT:
UUT: gen_mod
generic map( gA => cGenTable(0))
port map( ...);
Now my question is how to perform a bundle of simulation runs to test
the complete array of constants without having to adjust the generic
map manually, then recompile and restart the simulation.
Thank you for your opinion.
Cheers,
hssig