5d088d39e505a020672cf92d36a778c7de8f2e97
[Mograsim.git] / 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 }