未验证 提交 330595df 编写于 作者: J Jiawei Lin 提交者: GitHub

Connect rtc_tick to clint (#822)

上级 29a0599e
......@@ -377,6 +377,12 @@ class XSTopWithoutDMA()(implicit p: Parameters) extends BaseXSSoc()
l3_reset_gen.suggestName("l3_reset_gen")
l3cache.module.reset := l3_reset_gen.io.out
}
// TODO: wrap this in a module
val freq = 100
val cnt = RegInit(freq.U)
val tick = cnt === 0.U
cnt := Mux(tick, freq.U, cnt - 1.U)
clint.module.io.rtcTick := tick
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册