Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Problem regarding defparam and generate loop

Hi everyone,

I am trying to override a parameter hierarchically by calling

defparam Inst0.FSM[0].Inst.IMem_def.MEM_INIT_FILE = "someString";

The hierarchy is Top -> Inst0 -> FSM[x].Inst -> IMem_def

So within the Inst0 module there is a generate statement for multiple instantiations.

Quartus comes up with an error saying:

"FSM[0].Inst" instantiated with unknown parameter "Inst.IMem_def.MEM_INIT_FILE"

Interestingly though it works when I call the defparam from within Inst0 like this:

defparam FSM[0].Inst.IMem_def.MEM_INIT_FILE = "someString";

Also it doesn't have the problem for instances that are not in the generate loop.

Any clues? Different hierarchy delimiters? I am puzzled?

Thanks,

Raphael
No RepliesBe the first to reply