In design, the top level module A has two instantiation of another module B
module A (....);
B (.C(C1)...) inst1;
B (.C(C2)...) inst2;
The module B has some parameter which I would like to assign from the testbench using generate block.
//Testbench
module test_top ();
A (....) A1;
generate
for (genvar k = 0; k<2; k++) begin
defparam A1.instk.C = 0;
end
endgenerate
The compilation on NCSIM is causing error on defparam statement. where by it is unable to get the path of the instance. May be it is because of the generate statement. Is it legal to use defparam inside genertate block ?