aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Verismith/Verilog/CodeGen.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Verismith/Verilog/CodeGen.hs b/src/Verismith/Verilog/CodeGen.hs
index 7f5dd46..62102c3 100644
--- a/src/Verismith/Verilog/CodeGen.hs
+++ b/src/Verismith/Verilog/CodeGen.hs
@@ -60,7 +60,7 @@ moduleDecl (ModDecl i outP inP items ps) =
modI = vsep $ moduleItem <$> items
outIn = outP ++ inP
params [] = ""
- params (p : pps) = hcat ["#", paramList (p :| pps)]
+ params (p : pps) = hcat ["#(", paramList (p :| pps), ")"]
moduleDecl (ModDeclAnn a m) = sep [hsep ["/*", pretty $ show a, "*/"], moduleDecl m]
-- | Generates a parameter list. Can only be called with a 'NonEmpty' list.