Skip to content

Commit

Permalink
fix case when offset is odd and size is even (apache#3643)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaluisjose authored and jroesch committed Jul 28, 2019
1 parent c9ac0c2 commit aacd35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/chisel/src/main/scala/core/LoadUop.scala
Expand Up @@ -76,7 +76,7 @@ class LoadUop(debug: Boolean = false)(implicit p: Parameters) extends Module {
val xcnt = Reg(chiselTypeOf(io.vme_rd.cmd.bits.len))
val xlen = Reg(chiselTypeOf(io.vme_rd.cmd.bits.len))
val xrem = Reg(chiselTypeOf(dec.xsize))
val xsize = dec.xsize(0) + (dec.xsize >> log2Ceil(numUop)) - 1.U
val xsize = (dec.xsize >> log2Ceil(numUop)) + dec.xsize(0) + (dec.sram_offset % 2.U) - 1.U
val xmax = (1 << mp.lenBits).U
val xmax_bytes = ((1 << mp.lenBits)*mp.dataBits/8).U

Expand Down

0 comments on commit aacd35a

Please sign in to comment.