From fd83d20857f2a28d24623ce4d51416cd7d3dc8b0 Mon Sep 17 00:00:00 2001 From: Ken McMillan Date: Tue, 17 May 2016 17:13:48 -0700 Subject: [PATCH] Use a def instead of a lazy val in ManagerCoherenceAgent. Prevents C++ emulator from randomizing inputs in unit testing. Closes #44 --- uncore/src/main/scala/uncore.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncore/src/main/scala/uncore.scala b/uncore/src/main/scala/uncore.scala index e64ad083..98eba33f 100644 --- a/uncore/src/main/scala/uncore.scala +++ b/uncore/src/main/scala/uncore.scala @@ -133,7 +133,7 @@ abstract class ManagerCoherenceAgent(implicit p: Parameters) extends CoherenceAg with HasCoherenceAgentWiringHelpers { val io = new ManagerTLIO def innerTL = io.inner - lazy val outerTL = TileLinkIOWrapper(io.outer)(p.alterPartial({case TLId => p(OuterTLId)})) + def outerTL = TileLinkIOWrapper(io.outer)(p.alterPartial({case TLId => p(OuterTLId)})) def incoherent = io.incoherent }