Skip to content

Commit

Permalink
mvout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeahK committed Sep 30, 2024
1 parent cce3fd7 commit e18ff7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/gemmini/LoopMatmul.scala
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ class LoopMatmulStC(block_size: Int, coreMaxAddrBits: Int, iterator_bitwidth: In
val acc_addr_start = /*(BigInt(1) << 31).U | (req.full_c << 29.U).asUInt |*/ req.addr_start

val dram_offset = Mux(req.full_c, (i * req.dram_stride + j) * block_size.U * (acc_w/8).U,
(i * req.dram_stride + j) * block_size.U * (input_w/8).U)
Mux(req.no_block_mvout, (i * req.max_j + j) * block_size.U * block_size.U * (input_w/8).U, (i * req.dram_stride + j) * block_size.U * (input_w/8).U))
val dram_addr = req.dram_addr + LoopMatmul.castDramOffset(dram_offset)
val sp_addr = acc_addr_start + (i * req.max_j + j) * block_size.U
val blocks = Mux(j + max_blocks <= req.max_j, max_blocks, req.max_j-j)
Expand Down

0 comments on commit e18ff7e

Please sign in to comment.