pull out prefetch commands from isRead
This commit is contained in:
parent
3e6dc35809
commit
6bd4f93f8c
@ -63,7 +63,8 @@ trait MemoryOpConstants {
|
|||||||
val M_XA_MAXU = Bits("b1111", 4);
|
val M_XA_MAXU = Bits("b1111", 4);
|
||||||
|
|
||||||
def isAMO(cmd: Bits) = cmd(3)
|
def isAMO(cmd: Bits) = cmd(3)
|
||||||
def isRead(cmd: Bits) = cmd === M_XRD || cmd === M_PFR || cmd === M_PFW || isAMO(cmd)
|
def isPrefetch(cmd: Bits) = cmd === M_PFR || cmd === M_PFW
|
||||||
|
def isRead(cmd: Bits) = cmd === M_XRD || isAMO(cmd)
|
||||||
def isWrite(cmd: Bits) = cmd === M_XWR || isAMO(cmd)
|
def isWrite(cmd: Bits) = cmd === M_XWR || isAMO(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user