Skip to content

Commit

Permalink
Merge pull request #1816 from motec-research/test_csr_status_issue
Browse files Browse the repository at this point in the history
test_csr: test cases to demonstrate a CSRStatus() issue
  • Loading branch information
enjoy-digital authored Oct 27, 2023
2 parents c44b906 + 203726b commit ff271b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,17 @@ def generator(dut):
self.assertEqual((yield dut._storage.fields.foo), 0xa)
self.assertEqual((yield dut._storage.fields.bar), 0x5a)
self.assertEqual((yield dut._storage.storage), 0x5a000a)
self.assertEqual((yield from dut._storage.read()), 0x5a000a)
yield
yield
self.assertEqual((yield dut._status.fields.foo), 0xa)
self.assertEqual((yield dut._status.fields.bar), 0x5a)
try:
self.assertEqual((yield dut._status.status), 0x5a000a)
self.assertEqual((yield from dut._status.read()), 0x5a000a)
except self.failureException as exc:
print("Skipping:" + repr(exc))
raise self.skipTest("skip known failure") from None

class DUT(Module):
def __init__(self):
Expand Down

0 comments on commit ff271b0

Please sign in to comment.