Skip to content

Commit

Permalink
cores/clock/xilinx: Add power down support.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed May 19, 2021
1 parent cbb75b8 commit 55344b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions litex/soc/cores/clock/xilinx_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions litex/soc/cores/clock/xilinx_s6.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def do_finalize(self):
p_BANDWIDTH = "OPTIMIZED",
p_COMPENSATION = "INTERNAL",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down
2 changes: 2 additions & 0 deletions litex/soc/cores/clock/xilinx_s7.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def do_finalize(self):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down Expand Up @@ -81,6 +82,7 @@ def do_finalize(self):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down
2 changes: 2 additions & 0 deletions litex/soc/cores/clock/xilinx_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def do_finalize(self):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down Expand Up @@ -84,6 +85,7 @@ def do_finalize(self):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down
2 changes: 2 additions & 0 deletions litex/soc/cores/clock/xilinx_usp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def do_finalize(self):
# Global.
p_STARTUP_WAIT = "FALSE",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down Expand Up @@ -84,6 +85,7 @@ def do_finalize(self):
# Global.
p_BANDWIDTH = "OPTIMIZED",
i_RST = self.reset,
i_PWRDWN = self.power_down,
o_LOCKED = self.locked,

# VCO.
Expand Down

0 comments on commit 55344b4

Please sign in to comment.