aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-05-21 18:30:07 +0100
committerYann Herklotz <git@yannherklotz.com>2021-05-21 18:30:07 +0100
commitc098e8c2e2ed1f5defc5811a76109eeed34c4d74 (patch)
treeca5ad1d5192c26bd0770baf4f8aa804e52d98c74
parent3e1f8a25cd6fecc0fe5fd1635183296acd47b95c (diff)
downloadverismith-c098e8c2e2ed1f5defc5811a76109eeed34c4d74.tar.gz
verismith-c098e8c2e2ed1f5defc5811a76109eeed34c4d74.zip
Add simulation support
-rw-r--r--src/Verismith/Tool/Icarus.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Verismith/Tool/Icarus.hs b/src/Verismith/Tool/Icarus.hs
index da387dc..c020b61 100644
--- a/src/Verismith/Tool/Icarus.hs
+++ b/src/Verismith/Tool/Icarus.hs
@@ -188,7 +188,7 @@ tbModule' ids bss top =
fold
[ BlockAssign (Assign "clk" Nothing 0),
BlockAssign (Assign inConcat Nothing 0),
- BlockAssign (Assign inIds Nothing 0)
+ if null ids then mempty else BlockAssign (Assign inIds Nothing 0)
]
<> fold
( ( \r ->