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=82b10d3818a7a8498ec4574cdf5d223afe6826e5;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 a32cb6fe..2621dc78 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();