From 7afd6ddbce7efbded4c37f8abd69e0fb7e5f2983 Mon Sep 17 00:00:00 2001 From: Fabian Stemmler Date: Sun, 25 Aug 2019 17:31:13 +0200 Subject: [PATCH] Fixed WordAddressableMemoryTest Adjusted for new WordAddressableMemoryComponent constructor, which expects a MainMemoryDefinition --- .../machine/standard/memory/WordAddressableMemoryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net.mograsim.machine/test/net/mograsim/machine/standard/memory/WordAddressableMemoryTest.java b/net.mograsim.machine/test/net/mograsim/machine/standard/memory/WordAddressableMemoryTest.java index 74aeb3e2..1fb59d0e 100644 --- a/net.mograsim.machine/test/net/mograsim/machine/standard/memory/WordAddressableMemoryTest.java +++ b/net.mograsim.machine/test/net/mograsim/machine/standard/memory/WordAddressableMemoryTest.java @@ -12,6 +12,7 @@ import net.mograsim.logic.core.types.Bit; import net.mograsim.logic.core.types.BitVector; import net.mograsim.logic.core.wires.Wire; import net.mograsim.logic.core.wires.Wire.ReadWriteEnd; +import net.mograsim.machine.DefaultMainMemoryDefinition; class WordAddressableMemoryTest { @@ -27,7 +28,7 @@ class WordAddressableMemoryTest { ReadWriteEnd dataI = data.createReadWriteEnd(); ReadWriteEnd addressI = address.createReadWriteEnd(); - WordAddressableMemoryComponent memory = new WordAddressableMemoryComponent(t, 4, 4096L, Long.MAX_VALUE, data.createReadWriteEnd(), + WordAddressableMemoryComponent memory = new WordAddressableMemoryComponent(t, 4, new DefaultMainMemoryDefinition(64, 16, 4096L, Long.MAX_VALUE), data.createReadWriteEnd(), rW.createReadOnlyEnd(), address.createReadOnlyEnd()); Random r = new Random(); -- 2.17.1