1
0

syncregs: Make Reset catcher use the synchronizer primitive

This commit is contained in:
Megan Wachs
2017-08-24 17:26:38 -07:00
parent c78ee9f0e4
commit 3461cb47cc
2 changed files with 2 additions and 7 deletions

View File

@ -15,12 +15,7 @@ class ResetCatchAndSync (sync: Int = 3) extends Module {
val sync_reset = Bool(OUTPUT)
}
val reset_n_catch_reg = Module (new AsyncResetRegVec(sync, 0))
reset_n_catch_reg.io.en := Bool(true)
reset_n_catch_reg.io.d := Cat(Bool(true), reset_n_catch_reg.io.q >> 1)
io.sync_reset := ~reset_n_catch_reg.io.q(0)
io.sync_reset := ~AsyncResetSynchronizerShiftReg(Bool(true), sync)
}