22be93eef08d3c5f904e6db0d17d2bd62293f8d3
[Mograsim.git] / plugins / net.mograsim.machine / src / net / mograsim / machine / StandardMainMemoryDefinition.java
1 package net.mograsim.machine;
2
3 class StandardMainMemoryDefinition extends StandardMemoryDefinition implements MainMemoryDefinition
4 {
5         private final int cellWidth;
6
7         StandardMainMemoryDefinition(int memoryAddressBits, int cellWidth, long minimalAddress, long maximalAddress)
8         {
9                 super(memoryAddressBits, minimalAddress, maximalAddress);
10                 this.cellWidth = cellWidth;
11         }
12
13         @Override
14         public int getCellWidth()
15         {
16                 return cellWidth;
17         }
18 }