Skip to content

Commit ec4d628

Browse files
johnymil-chipflowrobtaylor
authored andcommitted
removing clk divider checkers
1 parent f53f0dc commit ec4d628

File tree

3 files changed

+1348
-10
lines changed

3 files changed

+1348
-10
lines changed

pyuvm_verif/testbench_spi.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,12 @@ async def body(self):
213213
seqr = ConfigDB().get(None, "", "SEQR")
214214
spiwr0 = SpiSeq("spiwr0", 0x0, 0x3f, 1)
215215
await spiwr0.start(seqr)
216-
for i in (0,1,2,62,255):
217-
data1 = int(i)
218-
spiwr1 = SpiSeq("spiwr1", 0x4, data1, 1)
219-
await spiwr1.start(seqr)
220-
data2 = random.randint(0, 255)
221-
spiwr2 = SpiSeq("spiwr2", 0xb, data2, 1)
222-
await spiwr2.start(seqr)
216+
data1 = random.randint(0, 255)
217+
spiwr1 = SpiSeq("spiwr1", 0x4, data1, 1)
218+
await spiwr1.start(seqr)
219+
data2 = random.randint(0, 255)
220+
spiwr2 = SpiSeq("spiwr2", 0xb, data2, 1)
221+
await spiwr2.start(seqr)
223222

224223
class Driver(uvm_driver):
225224
def build_phase(self):
@@ -355,9 +354,9 @@ def build_phase(self):
355354
uvm_factory().set_type_override_by_type(TestSeq, TestRdSeq)
356355
super().build_phase()
357356

358-
"""@pyuvm.test()
357+
@pyuvm.test()
359358
class ClkdividerTest(BasicTest):
360359

361360
def build_phase(self):
362361
uvm_factory().set_type_override_by_type(TestSeq, TestClkdivSeq)
363-
super().build_phase()"""
362+
super().build_phase()

pyuvm_verif/utils_spi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ async def clkdiv_assert_bfm(self):
178178
while True:
179179
await RisingEdge(self.dut.clk_test)
180180
wstb = get_int(self.dut.wstb)
181-
rstb = get_int(self.dut.rstb)
182181
if wstb == 1:
183182
await FallingEdge(self.dut.clk_test)
184183
result = get_int(self.dut.wdata)

0 commit comments

Comments
 (0)