public ModelWordAddressableMemory(LogicModelModifiable model, MainMemoryDefinition definition, String name)
{
- super(model, 100, 300, name, "RAM", false);
+ super(model, 120, 150, name, "RAM", false);
this.definition = definition;
- addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, width, 20));
- addPin(dataPin = new Pin(model, this, "D", definition.getCellWidth(), PinUsage.TRISTATE, width, 50));
- addPin(rWPin = new Pin(model, this, "RW", 1, PinUsage.INPUT, width, 80));
+ addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, getWidth(), 30));
+ addPin(dataPin = new Pin(model, this, "D", definition.getCellWidth(), PinUsage.TRISTATE, getWidth(), 50));
+ addPin(rWPin = new Pin(model, this, "RW", 1, PinUsage.INPUT, getWidth(), 70));
init();
}