来自
top.dut.fe.stk.pma.phy.phy0.pma.dig.lane0.asic_xface.\range_counter_reg[0]
到
top.dut.fe.stk.pma.phy.phy0.pma.dig.lane0.asic_xface.@ {\/range_counter_reg[0]}.Q
尝试使用查找和替换但不起作用
regsub {.\\(.+)} $from {.@ {/\1}.Q}
set from {top.dut.fe.stk.pma.phy.phy0.pma.dig.lane0.asic_xface.\range_counter_reg[0]}
set to [regsub {.\\(.+)} $from {.@ {/\1}.Q}]
puts $from; puts $to
top.dut.fe.stk.pma.phy.phy0.pma.dig.lane0.asic_xface.\range_counter_reg[0]
top.dut.fe.stk.pma.phy.phy0.pma.dig.lane0.asic_xface.@ {/range_counter_reg[0]}.Q