Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitnigam committed Mar 8, 2024
1 parent 345887c commit eef617c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/backends/calyx/Backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down Expand Up @@ -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))
)
Expand Down

0 comments on commit eef617c

Please sign in to comment.