Hi,
For example,
I have some 3 registers. (Reg1, Reg2, Reg3).
these are available in
1)top.dut.abc.module1.Reg1
2)top.dut.abc.module1.Reg2
3)top.dut.abc.module2.Reg3
Currently i am doing,
cfg.configure(this, “top.dut.abc.module1”)
cfg.build();
XYZ.add_hdl_path_slice(“Reg1”, 0, 2);
XYZ.add_hdl_path_slice(“Reg2”, 2, 2);
For Reg3 i need to give full path to configure and build.
gff.configure(this, “top.dut.abc.module2”)
gff.build();
PQR.add_hdl_path_slice(“Reg3”, 6.6);
My question is, Is there any way to reduce this code like,
cfg.configure(this,“top.dut.abc”)
cfg.build();
So that it has to search for the registers, and take full path like,
top.dut.abc.module1
top.dut.abc.module2
Instead of configure, can we use get_hdl_path or add_hdl_path? so that no need to configure two times.
If any method is there please let me know.
Thanks & Regards,
Giridhar.K