force top.DUT.submodule_top_inst.some_input[index] = 0;
The compiler does not like the use of “index”.
In my case index is a 40 bits wide.
How do I resolve this problem without writing a lot of lines of code.
Thanks!
force top.DUT.submodule_top_inst.some_input[index] = 0;
The compiler does not like the use of “index”.
In my case index is a 40 bits wide.
How do I resolve this problem without writing a lot of lines of code.
Thanks!
In reply to new_to_uvm:
verilog force force top.DUT.submodule_top_inst.some_input = normal_value & ~(40'b1 << index);
verilog event force_trigger; for(genvar ii;ii<40;ii++); always @(force_trigger) force top.DUT.submodule_top_inst.some_input[ii] = 0;