From eef617c88f4a0ba3d2e4f8963fc33b0750270850 Mon Sep 17 00:00:00 2001 From: Rachit Nigam Date: Fri, 8 Mar 2024 12:13:31 -0500 Subject: [PATCH] fix syntax --- src/main/scala/backends/calyx/Backend.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/backends/calyx/Backend.scala b/src/main/scala/backends/calyx/Backend.scala index 4b717f14..6606025d 100644 --- a/src/main/scala/backends/calyx/Backend.scala +++ b/src/main/scala/backends/calyx/Backend.scala @@ -653,7 +653,7 @@ private class CalyxBackendHelper { val isParam = (typ == ParameterVar) val (writeEnPort, donePort, accessPort, contentEnPort) = - if (isParam) { + if isParam then { ( ThisPort(CompVar(s"${id}_write_en")), ThisPort(CompVar(s"${id}_done")), @@ -700,7 +700,7 @@ private class CalyxBackendHelper { EmitOutput( accessPort, Some(donePort), - contentEnStruct ++ (indexing ++ (if (rhsInfo.isDefined) writeEnStruct else List())), + contentEnStruct ++ (indexing ++ (if rhsInfo.isDefined then writeEnStruct else List())), delay, Some((donePort, delay)) )