Hi,
I have a scenario where I have multiple memory banks and each of these banks have a signal indexed by the bank #(mem_xlpe) which needs to be assigned with a value of 1 from my sequence. Instead of explicitly defining the signals for every project I though of using a for loop and $sformat to generate signal hierarchy and then assigning it with the value of interest. But the issue here is, through string lpe_path gets assigned with the right hierarchy, the value is not applied to the actual interface signal. Any thought on how this can be achieved?
for (int idx = 0; idx<`NUM_LMEM_BANKS; idx++) begin
$sformat(lpe_path, “m_env.vif.mem_%0dlpe”,idx);
lpe_path = 1’b1;
end
Thanks,
Rick