- Fixed ResetNSpec

This commit is contained in:
chick
2020-09-28 15:34:36 -07:00
parent 0430403920
commit f51156bf1f
2 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,8 @@ object ResetN extends Pass {
"Can only invert reset on a module with reset!")
// Rename "reset" to "reset_n"
val portsx = mod.ports map {
case Port(info, "reset", Input, Bool) => Port(info, "reset_n", Input, Bool)
case Port(info, "reset", Input, Bool) =>
Port(info, "reset_n", Input, Bool)
case other => other
}
val newReset = DefNode(NoInfo, "reset", DoPrim(Not, Seq(Reference("reset_n", Bool)), Seq.empty, Bool))