diff --git a/naps/cores/stream/stream _memory_test.py b/naps/cores/stream/stream_memory_test.py similarity index 91% rename from naps/cores/stream/stream _memory_test.py rename to naps/cores/stream/stream_memory_test.py index 23f27d8..1e156d3 100644 --- a/naps/cores/stream/stream _memory_test.py +++ b/naps/cores/stream/stream_memory_test.py @@ -13,7 +13,7 @@ def test_hello_world(self): m = Module() address_stream = PacketizedStream(8) - mem = Memory(width=32, depth=128, init=[i + 2 for i in range(128)]) + mem = m.submodules.memory = Memory(width=32, depth=128, init=[i + 2 for i in range(128)]) reader = m.submodules.reader = StreamMemoryReader(address_stream, mem) def write_process(): @@ -36,4 +36,4 @@ def test_output_stream_contract(self): input_stream = PacketizedStream(8) mem = Memory(width=32, depth=128, init=[i + 2 for i in range(128)]) dut = StreamMemoryReader(input_stream, mem) - verify_stream_output_contract(dut, support_modules=(LegalStreamSource(input_stream),)) + verify_stream_output_contract(dut, support_modules=(LegalStreamSource(input_stream), mem))