aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/Verilog/CodeGen.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/VeriFuzz/Verilog/CodeGen.hs')
-rw-r--r--src/VeriFuzz/Verilog/CodeGen.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VeriFuzz/Verilog/CodeGen.hs b/src/VeriFuzz/Verilog/CodeGen.hs
index 8dc74a0..acbf15b 100644
--- a/src/VeriFuzz/Verilog/CodeGen.hs
+++ b/src/VeriFuzz/Verilog/CodeGen.hs
@@ -59,13 +59,13 @@ genModuleDecl :: ModDecl -> Text
genModuleDecl mod =
"module " <> mod ^. moduleId . getIdentifier
<> ports <> ";\n"
- <> modItems
+ <> modI
<> "endmodule\n"
where
ports
| noIn && noOut = ""
| otherwise = "(" <> comma (genModPort <$> outIn) <> ")"
- modItems = fold $ genModuleItem <$> mod ^. moduleItems
+ modI = fold $ genModuleItem <$> mod ^. modItems
noOut = null $ mod ^. modOutPorts
noIn = null $ mod ^. modInPorts
outIn = (mod ^. modOutPorts) ++ (mod ^. modInPorts)