From 4bc79cefd8a7aa3e0fb13855e028ed43f734d7f8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 24 Sep 2019 12:53:06 +0200 Subject: [PATCH] examples/targets/core: update --- examples/targets/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/targets/core.py b/examples/targets/core.py index fe58959..d27e485 100644 --- a/examples/targets/core.py +++ b/examples/targets/core.py @@ -37,7 +37,7 @@ _io = [ Subsignal("rst_n", Pins(1)), Subsignal("mdio", Pins(1)), Subsignal("mdc", Pins(1)), - Subsignal("dv", Pins(1)), + Subsignal("rx_dv", Pins(1)), Subsignal("rx_er", Pins(1)), Subsignal("rx_data", Pins(4)), Subsignal("tx_en", Pins(4)), @@ -71,7 +71,7 @@ _io = [ Subsignal("int_n", Pins(1)), Subsignal("mdio", Pins(1)), Subsignal("mdc", Pins(1)), - Subsignal("dv", Pins(1)), + Subsignal("rx_dv", Pins(1)), Subsignal("rx_er", Pins(1)), Subsignal("rx_data", Pins(8)), Subsignal("tx_en", Pins(1)), @@ -210,8 +210,8 @@ class MACCore(PHYCore): def __init__(self, interface): self.wishbone = interface - self.add_cpu_or_bridge(_WishboneBridge(self.platform.request("wishbone"))) - self.add_wb_master(self.cpu_or_bridge.wishbone) + self.add_cpu(_WishboneBridge(self.platform.request("wishbone"))) + self.add_wb_master(self.cpu.wishbone) class UDPCore(PHYCore): @@ -267,7 +267,7 @@ def main(): parser.add_argument("--ip_address", default="192.168.1.50", help="IP address") args = parser.parse_args() - if args.core == "mac": + if args.core == "wishbone": soc = MACCore(phy=args.phy, clk_freq=100*1000000) elif args.core == "udp": soc = UDPCore(phy=args.phy, clk_freq=100*10000000,