【发布时间】:2016-11-26 08:22:02
【问题描述】:
我正在学习 Chisel3。
我对代码有一些疑问。
val myVec = Wire(Vec(5, SInt(width = 23))) // Vector of 5 23-bit signed integers.
我想如果我声明一个向量,我需要写“Wire”,但是当我看到这些代码时我错了。
class BigBundle extends Bundle {
val myVec = Vec(5, SInt(width = 23)) // Vector of 5 23-bit signed integers.
val flag = Bool()
// Previously defined bundle.
val f = new MyFloat
}
它突然打在我脸上,所以我想知道我什么时候使用“Wire”?
提前致谢。
【问题讨论】:
标签: chisel