Remove deprecated assignments
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -81,12 +81,12 @@ class TB:
|
||||
self.dut.rx_rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
self.dut.tx_rst <= 1
|
||||
self.dut.rx_rst <= 1
|
||||
self.dut.tx_rst.value = 1
|
||||
self.dut.rx_rst.value = 1
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
self.dut.tx_rst <= 0
|
||||
self.dut.rx_rst <= 0
|
||||
self.dut.tx_rst.value = 0
|
||||
self.dut.rx_rst.value = 0
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
await RisingEdge(self.dut.tx_clk)
|
||||
|
||||
|
||||
@@ -61,10 +61,10 @@ class TB:
|
||||
self.dut.rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 1
|
||||
self.dut.rst.value = 1
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 0
|
||||
self.dut.rst.value = 0
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
|
||||
@@ -85,7 +85,7 @@ class TB:
|
||||
clock_edge_event = RisingEdge(self.dut.clk)
|
||||
|
||||
for val in self._enable_generator:
|
||||
self.dut.gmii_clk_en <= val
|
||||
self.dut.gmii_clk_en.value = val
|
||||
await clock_edge_event
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ async def run_test(dut, payload_lengths=None, payload_data=None, ifg=12, enable_
|
||||
tb = TB(dut)
|
||||
|
||||
tb.source.ifg = ifg
|
||||
tb.dut.gmii_mii_sel <= mii_sel
|
||||
tb.dut.gmii_mii_sel.value = mii_sel
|
||||
|
||||
if enable_gen is not None:
|
||||
tb.set_enable_generator(enable_gen())
|
||||
|
||||
@@ -64,10 +64,10 @@ class TB:
|
||||
self.dut.phy_rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 1
|
||||
self.dut.phy_rst.value = 1
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 0
|
||||
self.dut.phy_rst.value = 0
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
|
||||
|
||||
@@ -60,10 +60,10 @@ class TB:
|
||||
self.dut.rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 1
|
||||
self.dut.rst.value = 1
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 0
|
||||
self.dut.rst.value = 0
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
|
||||
@@ -84,7 +84,7 @@ class TB:
|
||||
clock_edge_event = RisingEdge(self.dut.clk)
|
||||
|
||||
for val in self._enable_generator:
|
||||
self.dut.mii_clk_en <= val
|
||||
self.dut.mii_clk_en.value = val
|
||||
await clock_edge_event
|
||||
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ class TB:
|
||||
self.dut.phy_rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 1
|
||||
self.dut.phy_rst.value = 1
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 0
|
||||
self.dut.phy_rst.value = 0
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ class TB:
|
||||
self.dut.rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 1
|
||||
self.dut.rst.value = 1
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 0
|
||||
self.dut.rst.value = 0
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ class TB:
|
||||
self.dut.rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 1
|
||||
self.dut.rst.value = 1
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 0
|
||||
self.dut.rst.value = 0
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
|
||||
@@ -83,7 +83,7 @@ class TB:
|
||||
clock_edge_event = RisingEdge(self.dut.clk)
|
||||
|
||||
for val in self._enable_generator:
|
||||
self.dut.rgmii_clk_en <= val
|
||||
self.dut.rgmii_clk_en.value = val
|
||||
await clock_edge_event
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ async def run_test(dut, payload_lengths=None, payload_data=None, ifg=12, enable_
|
||||
tb = TB(dut)
|
||||
|
||||
tb.source.ifg = ifg
|
||||
tb.dut.rgmii_mii_sel <= mii_sel
|
||||
tb.dut.rgmii_mii_sel.value = mii_sel
|
||||
|
||||
if enable_gen is not None:
|
||||
tb.set_enable_generator(enable_gen())
|
||||
|
||||
@@ -68,10 +68,10 @@ class TB:
|
||||
self.dut.phy_rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 1
|
||||
self.dut.phy_rst.value = 1
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
self.dut.phy_rst <= 0
|
||||
self.dut.phy_rst.value = 0
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
await RisingEdge(self.dut.phy_tx_clk)
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ class TB:
|
||||
self.dut.rst.setimmediatevalue(0)
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 1
|
||||
self.dut.rst.value = 1
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
self.dut.rst <= 0
|
||||
self.dut.rst.value = 0
|
||||
await RisingEdge(self.dut.clk)
|
||||
await RisingEdge(self.dut.clk)
|
||||
|
||||
@@ -83,7 +83,7 @@ class TB:
|
||||
clock_edge_event = RisingEdge(self.dut.clk)
|
||||
|
||||
for val in self._enable_generator:
|
||||
self.dut.xgmii_clk_en <= val
|
||||
self.dut.xgmii_clk_en.value = val
|
||||
await clock_edge_event
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user