我使用的凿子版本是 3.2.2。当我尝试在 Bundle 类中创建成员 Vec 时,代码就像,
class myIOBundle extends GenericParameterizedBundle {
val en = Vec(4, Output(Bool()))
val aa = Input(Vec(4, Bool())) // Used in Debug.scala of rocket-chip
}
然后我实现这个Bundle类并将它传递给一个Module类的IO,代码就像,
class myModuleClass extends Module{
val io = IO(new myIOBundle)
...
}
然后我得到错误说:
[error] chisel3.package$RebindingException: Attempted reassignment of binding to UInt<3>(4)
但是我在火箭代码的 Debug.scala 中看到了 Vec 的相同用法。由于火箭使用的是凿子 3.4.3,这个错误是否出现在旧凿子版本中,而不是凿子 3.4.3 中?