mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/reset: Change the way crg_rst is set to allow possible multiple assignation in the code.
This allows user's cores to also exercise the CRG rst with code similar to: self.comb += If(<rst_condition>, self.crg.rst.eq(1))
This commit is contained in:
parent
7fcecf437a
commit
8ade60a55d
1 changed files with 1 additions and 1 deletions
|
@ -1000,7 +1000,7 @@ class SoC(Module):
|
|||
if hasattr(self, "ctrl") and hasattr(self, "crg"):
|
||||
crg_rst = getattr(self.crg, "rst", None)
|
||||
if isinstance(crg_rst, Signal):
|
||||
self.comb += crg_rst.eq(getattr(self.ctrl, "soc_rst", 0))
|
||||
self.comb += If(getattr(self.ctrl, "soc_rst", 0), crg_rst.eq(1))
|
||||
|
||||
# SoC CSR bridge ---------------------------------------------------------------------------
|
||||
# FIXME: for now, use registered CSR bridge when SDRAM is present; find the best compromise.
|
||||
|
|
Loading…
Reference in a new issue