From 960c2723ab5a2526994ba19dc1b1a37ae31e1ae7 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Thu, 17 Nov 2016 11:06:05 -0800 Subject: [PATCH] [tl2] MemoryOpCategories: use def to supply Cat'd consts --- src/main/scala/uncore/tilelink2/Metadata.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/uncore/tilelink2/Metadata.scala b/src/main/scala/uncore/tilelink2/Metadata.scala index f7aeab25..54167f9c 100644 --- a/src/main/scala/uncore/tilelink2/Metadata.scala +++ b/src/main/scala/uncore/tilelink2/Metadata.scala @@ -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))