diff --git a/litex_boards/platforms/pano_logic_g2.py b/litex_boards/platforms/pano_logic_g2.py old mode 100644 new mode 100755 index 3f83ce1..76260bc --- a/litex_boards/platforms/pano_logic_g2.py +++ b/litex_boards/platforms/pano_logic_g2.py @@ -97,6 +97,10 @@ _io = [ Subsignal("cke", Pins("D2"), IOStandard("SSTL18_II")), Subsignal("odt", Pins("J6"), IOStandard("SSTL18_II")), ), + # Ethernet phy reset (clk125 is 25 Mhz instead of 125 Mhz if reset is active) + # See https://github.com/tomverbeure/panologic-g2#fpga-external-clocking-architecture + ("gmii_rst_n", 0, Pins("R11"), IOStandard("LVCMOS33")), + ] # Platform ----------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/pano_logic_g2.py b/litex_boards/targets/pano_logic_g2.py index 6c179b1..44f4a5b 100755 --- a/litex_boards/targets/pano_logic_g2.py +++ b/litex_boards/targets/pano_logic_g2.py @@ -46,6 +46,12 @@ class BaseSoC(SoCCore): sys_clk_freq = sys_clk_freq) self.add_csr("leds") + # Take Ethernet Phy out of reset for SYSCLK of 125 Mhz + gmii_rst_n = platform.request("gmii_rst_n") + self.comb += [ + gmii_rst_n.eq(1) + ] + # Build -------------------------------------------------------------------------------------------- def main():