Skip to content

Commit

Permalink
[riscv_mini] Fix cache enable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Mar 11, 2024
1 parent 3d1fb5d commit 1463e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/riscv_mini/riscv_mini/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ class State(m.Enum):

rmeta = meta_mem.read(idx, ren)
rdata = m.concat(*(mem.read(idx, ren) for mem in data_mem))
rdata_buf = m.Register(type(rdata), has_enable=True)()(rdata,
CE=ren_reg)
rdata_buf_reg = m.Register(type(rdata), has_enable=True)()
rdata_buf_reg.CE @= ren_reg

read = m.mux([
m.as_bits(m.mux([
rdata_buf,
rdata_buf.O,
rdata
], ren_reg)),
m.as_bits(refill_buf.O)
Expand Down

0 comments on commit 1463e8b

Please sign in to comment.