I'm trying to keep the Val name of a signal in the generated Verilog. The Val is a dynamically selected element from a chisel Vector(Vec). Below is my test case code:
val myVec = Reg(Vec(10,UInt(32.W)))
val selected = myVec(io.sel).suggestedName("selected")
I can see in the generated verilog the Mux that takes the selcted element from myVec. However, it has a random name _T something. suggestName() didn't help. I've also tried @chiselName without any improvement.
The reason I want this signal to have a meaningful name is for debug purposes(functionally it is correct)