Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekcyjna committed Oct 1, 2023
1 parent b87149b commit 691529c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/transactions/test_transaction_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ def process():
with self.run_simulation(m) as sim:
sim.add_sync_process(process)


class MemoryReproduce(TestCaseWithSimulator):
class DUT(Elaboratable):
def __init__(self):
pass

def elaborate(self, platform):
m=Module()
self.mem = Memory(width = 8, depth = 8)
m = Module()
self.mem = Memory(width=8, depth=8)
m.submodules.read_port = self.read_port = self.mem.read_port()
m.submodules.write_port = self.write_port = self.mem.write_port()
return m
Expand Down Expand Up @@ -169,8 +170,6 @@ def process():
sim.add_sync_process(process)




class TestMemoryBank(TestCaseWithSimulator):
test_conf = [(9, 3, 3, 3, 14), (16, 1, 1, 3, 15), (16, 1, 1, 1, 16), (12, 3, 1, 1, 17)]

Expand Down Expand Up @@ -228,7 +227,7 @@ def reader_resp():
d = read_req_queue.popleft()
print("read_resp", d)
yield from m.read_resp.call()
#self.assertEqual((yield from m.read_resp.call()), {"data": d})
# self.assertEqual((yield from m.read_resp.call()), {"data": d})
yield from random_wait(reader_resp_rand)

def internal_reader_resp():
Expand Down

0 comments on commit 691529c

Please sign in to comment.