1
0
Fork 0

[tl2] MemoryOpCategories: use def to supply Cat'd consts

This commit is contained in:
Henry Cook 2016-11-17 11:06:05 -08:00
parent 179c93db42
commit 960c2723ab
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ object ClientStates {
}
object MemoryOpCategories extends MemoryOpConstants {
val wr = Cat(Bool(true), Bool(true)) // Op actually writes
val wi = Cat(Bool(false), Bool(true)) // Future op will write
val rd = Cat(Bool(false), Bool(false)) // Op only reads
def wr = Cat(Bool(true), Bool(true)) // Op actually writes
def wi = Cat(Bool(false), Bool(true)) // Future op will write
def rd = Cat(Bool(false), Bool(false)) // Op only reads
def categorize(cmd: UInt): UInt = {
val cat = Cat(isWrite(cmd), isWriteIntent(cmd))