bug fix for nbdcache s2_data
This commit is contained in:
parent
b55c38cdc7
commit
8eb64205f5
@ -817,7 +817,7 @@ class HellaCache extends L1HellaCacheModule {
|
|||||||
val regs = Vec.fill(rowWords){Reg(Bits(width = encDataBits))}
|
val regs = Vec.fill(rowWords){Reg(Bits(width = encDataBits))}
|
||||||
val en1 = s1_clk_en && s1_tag_eq_way(w)
|
val en1 = s1_clk_en && s1_tag_eq_way(w)
|
||||||
for (i <- 0 until regs.size) {
|
for (i <- 0 until regs.size) {
|
||||||
val en = en1 && (Bool(i == 0 || !doNarrowRead) || s1_writeback)
|
val en = en1 && ((Bool(i == 0) || !Bool(doNarrowRead)) || s1_writeback)
|
||||||
when (en) { regs(i) := data.io.resp(w) >> encDataBits*i }
|
when (en) { regs(i) := data.io.resp(w) >> encDataBits*i }
|
||||||
}
|
}
|
||||||
s2_data(w) := regs.toBits
|
s2_data(w) := regs.toBits
|
||||||
|
Loading…
Reference in New Issue
Block a user