X
XSterna
Guest
Hi,
I am having a problem with my generics parameters when simulating my
design.
I have created an entity with 2 generics parameters with default
values. When I modify those values in the VHDL source and re-simulate
the entity, the generics parameters keep the same values than
previously.
Here a bit of code to illustrate it. This is the part of my generic
declaration :
generic(
Nbits : integer := 8; -- Number of bits require for the counter
M : integer := 180 -- Counter Modulo
);
If I simulate the component, I will have M=180.
If I change the value to 190 for example, if I compile the "new"
source and then simulate it, I still have M=180.
I found on the web a command to change the value of M ( vsim -GM=190 )
but I would like to know how to make my changes taking into account by
ModelSim directly.
I wonder I have maybe a misunderstanding of the generics but I am
totally clueless on how to solve this problem !
If someone could help me, it would be great !
Regards,
Xavier
I am having a problem with my generics parameters when simulating my
design.
I have created an entity with 2 generics parameters with default
values. When I modify those values in the VHDL source and re-simulate
the entity, the generics parameters keep the same values than
previously.
Here a bit of code to illustrate it. This is the part of my generic
declaration :
generic(
Nbits : integer := 8; -- Number of bits require for the counter
M : integer := 180 -- Counter Modulo
);
If I simulate the component, I will have M=180.
If I change the value to 190 for example, if I compile the "new"
source and then simulate it, I still have M=180.
I found on the web a command to change the value of M ( vsim -GM=190 )
but I would like to know how to make my changes taking into account by
ModelSim directly.
I wonder I have maybe a misunderstanding of the generics but I am
totally clueless on how to solve this problem !
If someone could help me, it would be great !
Regards,
Xavier