diff options
| author | Kevin Laeufer | 2020-08-07 10:33:29 -0700 |
|---|---|---|
| committer | GitHub | 2020-08-07 17:33:29 +0000 |
| commit | a6d53c9df25dba7da9d923faff9bf3c32f71b2d9 (patch) | |
| tree | dfc1be376e257c117af1a2b7508311224a591702 /src/main | |
| parent | e44cb05e178be55d686326fc894e5ce22c8cb2d0 (diff) | |
ExpandWhens: VerificationStatements should be part of the simlist (#1829)
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/firrtl/passes/ExpandWhens.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/ExpandWhens.scala b/src/main/scala/firrtl/passes/ExpandWhens.scala index 3c1ff675..4384aca7 100644 --- a/src/main/scala/firrtl/passes/ExpandWhens.scala +++ b/src/main/scala/firrtl/passes/ExpandWhens.scala @@ -133,7 +133,9 @@ object ExpandWhens extends Pass { case sx: Stop => simlist += (if (weq(p, one)) sx else Stop(sx.info, sx.ret, sx.clk, AND(p, sx.en))) EmptyStmt - case sx: Verification => if (weq(p, one)) sx else sx.copy(en = AND(p, sx.en)) + case sx: Verification => + simlist += (if (weq(p, one)) sx else sx.copy(en = AND(p, sx.en))) + EmptyStmt // Expand conditionally, see comments below case sx: Conditionally => /* 1) Recurse into conseq and alt with empty netlist, updated defaults, updated predicate |
