Add call to superclass init

This commit is contained in:
Alex Forencich
2020-12-24 15:14:11 -08:00
parent 318f48785a
commit a3df4ed1f9
2 changed files with 4 additions and 0 deletions

View File

@@ -293,6 +293,8 @@ class MiiPhy:
self.tx_clk = tx_clk self.tx_clk = tx_clk
self.rx_clk = rx_clk self.rx_clk = rx_clk
super().__init__(*args, **kwargs)
self.tx = MiiSink(txd, tx_er, tx_en, tx_clk, reset) self.tx = MiiSink(txd, tx_er, tx_en, tx_clk, reset)
self.rx = MiiSource(rxd, rx_er, rx_dv, rx_clk, reset) self.rx = MiiSource(rxd, rx_er, rx_dv, rx_clk, reset)

View File

@@ -319,6 +319,8 @@ class RgmiiPhy:
self.tx_clk = tx_clk self.tx_clk = tx_clk
self.rx_clk = rx_clk self.rx_clk = rx_clk
super().__init__(*args, **kwargs)
self.tx = RgmiiSink(txd, tx_ctl, tx_clk, reset) self.tx = RgmiiSink(txd, tx_ctl, tx_clk, reset)
self.rx = RgmiiSource(rxd, rx_ctl, rx_clk, reset) self.rx = RgmiiSource(rxd, rx_ctl, rx_clk, reset)