cores/clock/xilinx: Add power down support.

This commit is contained in:
Florent Kermarrec 2021-05-19 22:31:35 +02:00
parent cbb75b852e
commit 55344b4c14
5 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class XilinxClocking(Module, AutoCSR):
def __init__(self, vco_margin=0):
self.vco_margin = vco_margin
self.reset = Signal()
self.power_down = Signal()
self.locked = Signal()
self.clkin_freq = None
self.vcxo_freq = None

View File

@ -37,6 +37,7 @@ class S6PLL(XilinxClocking):
p_BANDWIDTH = "OPTIMIZED",
p_COMPENSATION = "INTERNAL",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.

View File

@ -34,6 +34,7 @@ class S7PLL(XilinxClocking):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.
@ -81,6 +82,7 @@ class S7MMCM(XilinxClocking):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.

View File

@ -39,6 +39,7 @@ class USPLL(XilinxClocking):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.
@ -84,6 +85,7 @@ class USMMCM(XilinxClocking):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.

View File

@ -39,6 +39,7 @@ class USPPLL(XilinxClocking):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.
@ -84,6 +85,7 @@ class USPMMCM(XilinxClocking):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,
# VCO.