Skip to content

Commit 403d302

Browse files
authored
Merge pull request #811 from Pinata-Consulting/mock-big-array-gaffes
designs/src/mock-big-array: fix gaffes in Chisel code
2 parents 823da18 + 0717e66 commit 403d302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/designs/src/mock-array-big/src/test/scala/MockArray.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MockArray extends Module {
1919

2020
val io = IO(new Bundle {
2121
val insHorizontal = Input(Vec(2, Vec(width, UInt(singleElementWidth.W))))
22-
val outsHorizontal = Output(Vec(2, Vec(height, UInt(singleElementWidth.W))))
22+
val outsHorizontal = Output(Vec(2, Vec(width, UInt(singleElementWidth.W))))
2323
val insVertical = Input(Vec(2, Vec(height, UInt(singleElementWidth.W))))
2424
val outsVertical = Output(Vec(2, Vec(height, UInt(singleElementWidth.W))))
2525
val lsbs = Output(Vec(width * height, Bool()))
@@ -34,7 +34,7 @@ class MockArray extends Module {
3434
io.outs := io.ins.reverse.map(RegNext(_))
3535
}
3636

37-
val ces = Seq.fill(height)(Seq.fill(height)(Module(new Element())))
37+
val ces = Seq.fill(height)(Seq.fill(width)(Module(new Element())))
3838

3939
io.lsbs := ces.flatten.map(_.io.outs.head(0))
4040

0 commit comments

Comments
 (0)