chisel-cheatsheet icon indicating copy to clipboard operation
chisel-cheatsheet copied to clipboard

Adding Register Vec initialisation

Open Martoni opened this issue 6 years ago • 0 comments

[a copy from chisel repository issue]

Type of issue: documentation

Impact: no functional change

Development Phase: request

Other information Is it possible to add Vec initialization ?

For example, here a vec initialization of a register file of 31 UInt registers of 32bits width.

val regfile = RegInit(VecInit(Seq.fill(31)(0.U(32.W))))

Martoni avatar Jun 17 '19 19:06 Martoni