From f275af82976ae87dffe46137351e1502334a1538 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 22 Aug 2020 21:21:38 +0200 Subject: [PATCH] liteeth_gen: get Wishbone Platform's IOs with Interface.get_ios. --- liteeth/gen.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index 9db3398..0e59b80 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -118,21 +118,6 @@ _io = [ Subsignal("tx_data", Pins(4)) ), - # Wishbone - ("wishbone", 0, - Subsignal("adr", Pins(30)), - Subsignal("dat_r", Pins(32)), - Subsignal("dat_w", Pins(32)), - Subsignal("sel", Pins(4)), - Subsignal("cyc", Pins(1)), - Subsignal("stb", Pins(1)), - Subsignal("ack", Pins(1)), - Subsignal("we", Pins(1)), - Subsignal("cti", Pins(3)), - Subsignal("bte", Pins(2)), - Subsignal("err", Pins(1)) - ), - # UDP ("udp_sink", 0, Subsignal("valid", Pins(1)), @@ -236,6 +221,7 @@ class MACCore(PHYCore): # Wishbone Interface ----------------------------------------------------------------------- wb_bus = wishbone.Interface() self.add_wb_master(wb_bus) + platform.add_extension(wb_bus.get_ios("wishbone")) self.comb += wb_bus.connect_to_pads(self.platform.request("wishbone"), mode="slave") # Interrupt Interface ----------------------------------------------------------------------