liteeth_gen: get Wishbone Platform's IOs with Interface.get_ios.

This commit is contained in:
Florent Kermarrec 2020-08-22 21:21:38 +02:00
parent 0705b35399
commit f275af8297
1 changed files with 1 additions and 15 deletions

View File

@ -118,21 +118,6 @@ _io = [
Subsignal("tx_data", Pins(4)) 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
("udp_sink", 0, ("udp_sink", 0,
Subsignal("valid", Pins(1)), Subsignal("valid", Pins(1)),
@ -236,6 +221,7 @@ class MACCore(PHYCore):
# Wishbone Interface ----------------------------------------------------------------------- # Wishbone Interface -----------------------------------------------------------------------
wb_bus = wishbone.Interface() wb_bus = wishbone.Interface()
self.add_wb_master(wb_bus) 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") self.comb += wb_bus.connect_to_pads(self.platform.request("wishbone"), mode="slave")
# Interrupt Interface ---------------------------------------------------------------------- # Interrupt Interface ----------------------------------------------------------------------