Skip to content

Commit fafa7e2

Browse files
committed
backing sram sized incorrectly
1 parent 4462d49 commit fafa7e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/scala/radiance/memory/AliasingTLRAM.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AliasingTLRAM(sizeInKB: Int,
2828
)))
2929

3030
lazy val module = new LazyModuleImp(this) {
31-
val backingSRAM = SRAM.masked(size = sizeInKB << 10, tpe = Vec(widthInBytes, UInt(8.W)), 0, 0, 1)
31+
val backingSRAM = SRAM.masked(size = (sizeInKB << 10 / widthInBytes), tpe = Vec(widthInBytes, UInt(8.W)), 0, 0, 1)
3232
val port = backingSRAM.readwritePorts.head
3333
val mask = (sizeInKB << 10) - 1
3434

0 commit comments

Comments
 (0)