I am trying to use ncelab -generic option to pass a generic parameter with value at run time. I0 have been successfull in passing the vaue to a string parameter using the following command:
But when I am using -defparam option I am successfull in passing value to natural parameter but passing value to string parameter is not happening. I want both works to be done with one option either -defparam or -generic.
Have you got any idea what mistake I am making in doing this? Thanx.
Option -generic is used for VHDL sources, option -defparam for Verilog sources.
Try use use opotion -gpg, that assign the specified value to all VHDL generics and Verilog parameters with the given name.
Example:
Thanx a lot friend. It worked by using -gpg. I have one more doubt, can we pass value to a parameter of array type by using this option?
I have tried to pass value to an array of integer, but it didn't worked.
I have given default value to parameter at entity level and at instantiation level. Yes, in help they havn't given any example of -gpg usage for passing value to a parameter of an array type.
While using -gpg option I observed a new problem that if I am using parameterized interface while using -gpg tool is reporting an Internal exception error. Following is the error reported by tool:
ncelab: *F,INTERR: INTERNAL EXCEPTION
-----------------------------------------------------------------
The tool has encountered an unexpected condition and must exit.
Contact Cadence Design Systems customer support about this
problem and provide enough information to help us reproduce it,
including the logfile that contains this error message.
TOOL: ncelab 09.20-s038
HOSTNAME: emmchma056
OPERATING SYSTEM: Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686
MESSAGE: xst_immediate_scope - default
-----------------------------------------------------------------
csi-ncelab - CSI TRIAL: Cadence Support Investigation, sending details to ncelab.err
csi-ncelab - CSI TRIAL: investigation complete, send ncelab.err to Cadence Support
If I am using -gpg without using parameterized interface it is working fine.
One more thing after observing this problem I retried using -defparam option, value of parameter at testbench top is set but the value propagated to the RTL is the default value of parameter.
Can you please help?