From 34984802b20d627f567a349db13aa01520d2d56a Mon Sep 17 00:00:00 2001 From: Abraham Gonzalez Date: Tue, 5 Nov 2019 14:16:53 -0800 Subject: [PATCH] enforce re is disabled when we is enabled --- macros/src/main/scala/MacroCompiler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/main/scala/MacroCompiler.scala b/macros/src/main/scala/MacroCompiler.scala index c51e7845..09b86c87 100644 --- a/macros/src/main/scala/MacroCompiler.scala +++ b/macros/src/main/scala/MacroCompiler.scala @@ -495,7 +495,7 @@ class MacroCompilerPass(mems: Option[Seq[Macro]], case (Some(PolarizedPort(mem, _)), Some(PolarizedPort(lib, lib_polarity))) => stmts += connectPorts(andAddrMatch(WRef(mem)), lib, lib_polarity) case (None, Some(PolarizedPort(lib, lib_polarity))) => - stmts += connectPorts(andAddrMatch(not(memWriteEnable)), lib, lib_polarity) + stmts += connectPorts(andAddrMatch(and(not(memWriteEnable), memChipEnable)), lib, lib_polarity) } /* Palmer: This is actually the memory compiler: it figures out how to