J
jan.kindt@gmail.com
Guest
Hi,
I've got a Testbench and design that looks more or less like the
following :
TB_case1.vhd
--- TB.vhd
--- Gatelevelnetlist.v
--- EEPROMVector.v
--- EEPROMVector.v
--- Ram.v
in the file EEPROMVector0.v, there is a param definition : param
PreloadVectorFile="vector.hex";
in the file RAM.v, there is an likewise param : param
InitRamFile="ram.hex";
Since I have two instantiations of the EEPROMVector in the gatelevel
netlist (called Vector0 and Vector1), I want to override the
parameter. I do not want to override using defparam in the gatelevel
netlist as this would force me to re-edit the netlist each time there
is a new netlist delivered. How can I do this ?
Likewise, how can I change the Ram initialisation parameter ?
I tried two things :
1. NCELAB lib_sim.TBE_TB_case1:TBA_TB_case1 +defparam
TBE_TB_case1.TB_inst.Gatelevelnetlist_inst.Vector0.PreloadVectorFile="Vector0.hex" ...and
so on
NCELAB complains about not finding the thing in the libraries
2. I created a file ParamOverrides.v with the same defparams in it.
compiled it and added the file to the elaborator... about the same
error about not finding it in the hierarchy : Hierarchical name
component lookup failed
can someone explain me how to do it right ?
I've got a Testbench and design that looks more or less like the
following :
TB_case1.vhd
--- TB.vhd
--- Gatelevelnetlist.v
--- EEPROMVector.v
--- EEPROMVector.v
--- Ram.v
in the file EEPROMVector0.v, there is a param definition : param
PreloadVectorFile="vector.hex";
in the file RAM.v, there is an likewise param : param
InitRamFile="ram.hex";
Since I have two instantiations of the EEPROMVector in the gatelevel
netlist (called Vector0 and Vector1), I want to override the
parameter. I do not want to override using defparam in the gatelevel
netlist as this would force me to re-edit the netlist each time there
is a new netlist delivered. How can I do this ?
Likewise, how can I change the Ram initialisation parameter ?
I tried two things :
1. NCELAB lib_sim.TBE_TB_case1:TBA_TB_case1 +defparam
TBE_TB_case1.TB_inst.Gatelevelnetlist_inst.Vector0.PreloadVectorFile="Vector0.hex" ...and
so on
NCELAB complains about not finding the thing in the libraries
2. I created a file ParamOverrides.v with the same defparams in it.
compiled it and added the file to the elaborator... about the same
error about not finding it in the hierarchy : Hierarchical name
component lookup failed
can someone explain me how to do it right ?