vexiiriscv: Now use pll.locked for debug reset

This commit is contained in:
Dolu1990 2024-09-03 07:58:24 +02:00
parent 19b3f24d9f
commit 3de5832b9c
1 changed files with 3 additions and 3 deletions

View File

@ -514,10 +514,10 @@ class VexiiRiscv(CPU):
if soc.get_build_name() == "sim": if soc.get_build_name() == "sim":
self.comb += If(debug_ndmreset_rise, soc.crg.cd_sys.rst.eq(1)) self.comb += If(debug_ndmreset_rise, soc.crg.cd_sys.rst.eq(1))
else: else:
if hasattr(soc.crg, "rst"): if hasattr(soc.crg.pll, "locked"):
self.comb += If(debug_ndmreset, soc.crg.pll.locked.eq(0))
elif hasattr(soc.crg, "rst"):
self.comb += If(debug_ndmreset_rise, soc.crg.rst.eq(1)) self.comb += If(debug_ndmreset_rise, soc.crg.rst.eq(1))
elif hasattr(soc.crg.pll, "reset"):
self.comb += If(debug_ndmreset_rise, soc.crg.pll.reset.eq(1))
else: else:
raise Exception("Pll has no reset ?") raise Exception("Pll has no reset ?")