A
Andy Luotto
Guest
I am designing a verification environment with parameters, e.g.
entity cordic_tb is
generic(
pipe : integer;
datawidth : integer;
anglewidth : integer
);
end cordic_tb;
architecture beh of cordic_tb is ...
and i would like to design configurations of the same test bench with
different generics, something like
configuration c_cordic_v7_nom of cordic_tb is
for beh
-- generic map(
-- pipe => 5
-- datawidth =>11
-- anglewidth =>16
-- );
for i_cordic: cordic
use configuration bblocks_lib.cordic_v7_configuration;
end for;
.....
can i place the generic map (clike that ommented out) to control the
generics of the top (and not just the sub modules generics)?
i know i can pass those parameters as simulator arguments (e.g. ncelab
anglewidth=16 ...), still i'd like to handle this in the HDL to make
simualtor independent
thanks
entity cordic_tb is
generic(
pipe : integer;
datawidth : integer;
anglewidth : integer
);
end cordic_tb;
architecture beh of cordic_tb is ...
and i would like to design configurations of the same test bench with
different generics, something like
configuration c_cordic_v7_nom of cordic_tb is
for beh
-- generic map(
-- pipe => 5
-- datawidth =>11
-- anglewidth =>16
-- );
for i_cordic: cordic
use configuration bblocks_lib.cordic_v7_configuration;
end for;
.....
can i place the generic map (clike that ommented out) to control the
generics of the top (and not just the sub modules generics)?
i know i can pass those parameters as simulator arguments (e.g. ncelab
anglewidth=16 ...), still i'd like to handle this in the HDL to make
simualtor independent
thanks