Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试构建一个 64 位寄存器,其中可以为每个触发器分别配置写使能信号。使用RegEnable对象,
var test = RegEnable(UInt(5),Bool(true)) test(UInt(0),Bool(false))
寄存器可以作为一个整体启用/禁用,但是可以控制每个触发器吗?
我们建议使用 Reg(Vec) 或 Reg(Bundle),而不是部分分配。