File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
main/scala/dfhdl/compiler/stages Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,7 @@ case object ToED extends Stage:
260
260
clkCfg != None && (dclREGList.nonEmpty || processBlockAllMembers.nonEmpty && domainIsPureSequential)
261
261
262
262
if (hasSeqProcess)
263
- val dclREGsHaveRst = dclREGList.exists(_.hasNonBubbleInit)
264
- if (rstCfg != None && dclREGsHaveRst)
263
+ if (rstCfg != None )
265
264
val RstCfg .Explicit (mode = mode) = rstCfg : @ unchecked
266
265
mode match
267
266
case RstCfg .Mode .Sync =>
Original file line number Diff line number Diff line change @@ -188,7 +188,10 @@ class ToEDSpec extends StageSpec(stageCreatesUnrefAnons = true):
188
188
| r := x + r
189
189
| y_din := r
190
190
| process(clk):
191
- | if (clk.actual.rising) y :== y_din
191
+ | if (clk.actual.rising)
192
+ | if (rst.actual == 1) {}
193
+ | else y :== y_din
194
+ | end if
192
195
|end ID
193
196
|
194
197
|class IDTop extends EDDesign:
@@ -868,7 +871,10 @@ class ToEDSpec extends StageSpec(stageCreatesUnrefAnons = true):
868
871
| val rst = Rst_default <> IN
869
872
| val child = FooChild()
870
873
| process(clk):
871
- | if (clk.actual.rising) println(s"${child.y}")
874
+ | if (clk.actual.rising)
875
+ | if (rst.actual == 1) {}
876
+ | else println(s"${child.y}")
877
+ | end if
872
878
|end Foo""" .stripMargin
873
879
)
874
880
}
You can’t perform that action at this time.
0 commit comments