Chisel3: Partial assignment to a multi-bit slice of a Vector IO
It is possible to make a partial assignment to a vector IO as follows: import chisel3._ class example_1 extends Module { val io = IO(new Bundle { val in1 = Input(Vec(4, Bool()) val out1 = Output(Vec(4, Bool()) }) for (I <- 0 to 3){ io.out1(I) := io.in1(I) } } Is it possible to make a partial assignment to a multi-bit slice of a vector. The following code doesn't work import chisel3._ class example_1 extends Module { val io = IO(new Bundle { val in1 = Input(Vec(4, Bool()) val out1 = Output(Vec(4, Bool()) }) for (I <- 0 to 1){ io.out1((I*2)+2-1, I*2) := io.in1((I*2)+2-1, I*2) } } One would