soc_zynq: use zynq fabric reset as sys reset
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 12 Jul 2019 07:52:40 +0000 (09:52 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 12 Jul 2019 07:52:50 +0000 (09:52 +0200)
litex/soc/integration/soc_zynq.py

index f8b1784f4c43fabc2dd0420991896ac23ac5dbaf..a5451b25136f0686b0b963748140b7a207fcef57 100644 (file)
@@ -32,6 +32,7 @@ class SoCZynq(SoCCore):
         SoCCore.__init__(self, platform, clk_freq, cpu_type=None, shadow_base=0x00000000, **kwargs)
 
         # PS7 (Minimal) ----------------------------------------------------------------------------
+        fclk_reset0_n = Signal()
         ps7_ddram_pads = platform.request("ps7_ddram")
         self.ps7_params = dict(
             # clk/rst
@@ -70,9 +71,11 @@ class SoCZynq(SoCCore):
             # usb0
             i_USB0_VBUS_PWRFAULT=0,
 
-            # fabric clk
+            # fabric clk/rst
             o_FCLK_CLK0=ClockSignal("sys"),
+            o_FCLK_RESET0_N=fclk_reset0_n
         )
+        self.comb += ResetSignal("sys").eq(~fclk_reset0_n)
         platform.add_ip(os.path.join("ip", ps7_name + ".xci"))
 
     # GP0 ------------------------------------------------------------------------------------------