Finished MPROM support. Fixes #10
[Mograsim.git] / plugins / net.mograsim.machine / src / net / mograsim / machine / standard / memory / StandardBitVectorMemoryDefinition.java
1 package net.mograsim.machine.standard.memory;
2
3 import net.mograsim.machine.BitVectorMemoryDefinition;
4 import net.mograsim.machine.StandardMemoryDefinition;
5
6 public class StandardBitVectorMemoryDefinition extends StandardMemoryDefinition implements BitVectorMemoryDefinition
7 {
8         private final int cellWidth;
9
10         public StandardBitVectorMemoryDefinition(int memoryAddressBits, int cellWidth, long minimalAddress, long maximalAddress)
11         {
12                 super(memoryAddressBits, minimalAddress, maximalAddress);
13                 this.cellWidth = cellWidth;
14         }
15
16         @Override
17         public int getCellWidth()
18         {
19                 return cellWidth;
20         }
21 }