Skip to content

Commit

Permalink
gateware: core/platform: Updated PLL settings to use correct input cl…
Browse files Browse the repository at this point in the history
…ock, and fixed typo in the PLL module
  • Loading branch information
lethalbit committed Oct 3, 2024
1 parent 775ee26 commit 6648e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion squishy/gateware/core/pll.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 3 additions & 3 deletions squishy/gateware/platform/rev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 6648e67

Please sign in to comment.