我正在学习Chisel3.
我对这些代码有一些疑问.
val myVec = Wire(Vec(5, SInt(width = 23))) // Vector of 5 23-bit signed integers.
Run Code Online (Sandbox Code Playgroud)
我想如果我声明一个向量,我需要写"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
}
Run Code Online (Sandbox Code Playgroud)
它突然冲到我的脸上,所以我想知道我什么时候使用"电线"?
提前致谢.
chisel ×1