From: Fabian Stemmler Date: Sun, 25 Aug 2019 15:31:13 +0000 (+0200) Subject: Fixed WordAddressableMemoryTest X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=7afd6ddbce7efbded4c37f8abd69e0fb7e5f2983;hp=7959f310ed60567201e37f1dc2eb1dc370763cff;p=Mograsim.git Fixed WordAddressableMemoryTest Adjusted for new WordAddressableMemoryComponent constructor, which expects a MainMemoryDefinition --- 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();