Fix TLB tag check logic when ASIDs are present
This commit is contained in:
parent
c104b57c52
commit
3ee5144923
@ -92,7 +92,7 @@ class TLB(implicit p: Parameters) extends TLBModule()(p) {
|
||||
val r_refill_waddr = Reg(tag_cam.io.write_addr)
|
||||
val r_req = Reg(new TLBReq)
|
||||
|
||||
val lookup_tag = Cat(io.req.bits.asid, io.req.bits.vpn).toUInt
|
||||
val lookup_tag = Cat(io.req.bits.asid, io.req.bits.vpn(vpnBits-1,0)).toUInt
|
||||
tag_cam.io.tag := lookup_tag
|
||||
tag_cam.io.write := state === s_wait && io.ptw.resp.valid
|
||||
tag_cam.io.write_tag := r_refill_tag
|
||||
|
Loading…
Reference in New Issue
Block a user