mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
naxriscv fix simulation reset
This commit is contained in:
parent
62cf95c5da
commit
8831acba65
1 changed files with 4 additions and 1 deletions
|
@ -452,7 +452,10 @@ class NaxRiscv(CPU):
|
||||||
# Reset SoC's CRG when debug_ndmreset rising edge.
|
# Reset SoC's CRG when debug_ndmreset rising edge.
|
||||||
self.sync.debug_por += debug_ndmreset_last.eq(debug_ndmreset)
|
self.sync.debug_por += debug_ndmreset_last.eq(debug_ndmreset)
|
||||||
self.comb += debug_ndmreset_rise.eq(debug_ndmreset & ~debug_ndmreset_last)
|
self.comb += debug_ndmreset_rise.eq(debug_ndmreset & ~debug_ndmreset_last)
|
||||||
self.comb += If(debug_ndmreset_rise, soc.crg.rst.eq(1))
|
if soc.get_build_name() == "sim":
|
||||||
|
self.comb += If(debug_ndmreset_rise, soc.crg.cd_sys.rst.eq(1))
|
||||||
|
else:
|
||||||
|
self.comb += If(debug_ndmreset_rise, soc.crg.rst.eq(1))
|
||||||
|
|
||||||
self.soc_bus = soc.bus # FIXME: Save SoC Bus instance to retrieve the final mem layout on finalization.
|
self.soc_bus = soc.bus # FIXME: Save SoC Bus instance to retrieve the final mem layout on finalization.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue