aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJack Koenig2019-11-05 09:39:50 -0800
committermergify[bot]2019-11-05 17:39:50 +0000
commit5f59427f13b06ad2ad01e4b9b35a7c210f21a5f2 (patch)
treea2270a654d969f6404d0a367584b16f8172f7233 /src/main
parentd4087a93f17612a6015eafc90a513dfd24b49f54 (diff)
Move CheckResets after CheckCombLoops (#1224)
Recursive literal lookup needs to be guarded against combinational loops Added a test-case to illustrate the issue when CheckResets is run before CheckCombLoops
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/firrtl/LoweringCompilers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/LoweringCompilers.scala b/src/main/scala/firrtl/LoweringCompilers.scala
index 75645319..0d9b971b 100644
--- a/src/main/scala/firrtl/LoweringCompilers.scala
+++ b/src/main/scala/firrtl/LoweringCompilers.scala
@@ -71,7 +71,6 @@ class HighFirrtlToMiddleFirrtl extends CoreTransform {
passes.ResolveKinds,
passes.InferTypes,
passes.CheckTypes,
- new checks.CheckResets,
passes.ResolveFlows,
new passes.InferWidths,
passes.CheckWidths,
@@ -97,6 +96,7 @@ class MiddleFirrtlToLowFirrtl extends CoreTransform {
passes.Legalize,
new firrtl.transforms.RemoveReset,
new firrtl.transforms.CheckCombLoops,
+ new checks.CheckResets,
new firrtl.transforms.RemoveWires)
}