diff --git a/squishy/gateware/core/pll.py b/squishy/gateware/core/pll.py index 700cf229..e6d6934c 100644 --- a/squishy/gateware/core/pll.py +++ b/squishy/gateware/core/pll.py @@ -98,7 +98,7 @@ def elaborate(self, platform) -> Module: o_CLKOP = pll_clk, i_CLKFB = pll_clk, - i_ENCLKOP = Const(1), + i_ENCLKOP = Const(0), o_LOCK = self.pll_locked, i_RST = Const(0), diff --git a/squishy/gateware/platform/rev2.py b/squishy/gateware/platform/rev2.py index ad2b2d09..d7035497 100644 --- a/squishy/gateware/platform/rev2.py +++ b/squishy/gateware/platform/rev2.py @@ -53,14 +53,14 @@ class SquishyRev2(SquishyPlatform, ECP5Platform): clock_domain_generator = ECP5ClockDomainGenerator - # generated with `ecppll -i 16 -o 400 -f /dev/stdout` + # generated with `ecppll -i 100 -o 400 -f /dev/stdout` pll_config = { 'freq' : 4e8, - 'ifreq' : 16, + 'ifreq' : 100, 'ofreq' : 400, 'clki_div' : 1, 'clkop_div': 1, - 'clkfb_div': 25, + 'clkfb_div': 4, } flash = {