1
0

tilelink2 Metadata: cannot assert data good when !valid

This commit is contained in:
Wesley W. Terpstra 2016-11-18 17:16:12 -08:00
parent be8121eeaf
commit 03bca77b33

View File

@ -26,7 +26,7 @@ object MemoryOpCategories extends MemoryOpConstants {
def categorize(cmd: UInt): UInt = { def categorize(cmd: UInt): UInt = {
val cat = Cat(isWrite(cmd), isWriteIntent(cmd)) val cat = Cat(isWrite(cmd), isWriteIntent(cmd))
assert(cat.isOneOf(wr,wi,rd), "Could not categorize command.") //assert(cat.isOneOf(wr,wi,rd), "Could not categorize command.")
cat cat
} }
} }
@ -77,7 +77,7 @@ class ClientMetadata extends Bundle {
import TLPermissions._ import TLPermissions._
import ClientStates._ import ClientStates._
val c = categorize(cmd) val c = categorize(cmd)
assert(c === rd || param === toT, "Client was expecting trunk permissions.") //assert(c === rd || param === toT, "Client was expecting trunk permissions.")
MuxLookup(Cat(c, param), Nothing, Seq( MuxLookup(Cat(c, param), Nothing, Seq(
//(effect param) -> (next) //(effect param) -> (next)
Cat(rd, toB) -> Branch, Cat(rd, toB) -> Branch,