WordAddressableMemory will now ignore non-binary BitVectors
authorFabian Stemmler <stemmler@in.tum.de>
Tue, 17 Sep 2019 20:57:40 +0000 (22:57 +0200)
committerFabian Stemmler <stemmler@in.tum.de>
Tue, 17 Sep 2019 20:57:40 +0000 (22:57 +0200)
plugins/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java

index 4a54ad9..e8ce245 100644 (file)
@@ -20,6 +20,13 @@ public class WordAddressableMemory extends GenericMemory<BitVector> implements M
                this.definition = definition;
        }
 
+       @Override
+       public void setCell(long address, BitVector data)
+       {
+               if (data.isBinary())
+                       super.setCell(address, data);
+       }
+
        @Override
        public BitVector getCell(long address)
        {