CHISEL 是否只允许更新位向量的一位?我想做类似的事情:
val x = 12
val slot = UInt(0,width=80)
slot(x) := UInt(1)
但编译器给出以下错误:
ambiguous reference to overloaded definition,
[error] both method := in class Bool of type (src: Chisel.Bits)Unit
[error] and method := in class UInt of type (src: Chisel.UInt)Unit
[error] match argument types (Chisel.UInt)
[error] slot(x) := UInt(1)
[error] ^
在 CHISEL 中是否有更好或更合适的方法来做到这一点?