private final Pin addrPin, dataPin;
private CoreMicroInstructionMemory memory;
private final MicroInstructionMemoryDefinition definition;
-
+
public ModelMicroInstructionMemory(LogicModelModifiable model, MicroInstructionMemoryDefinition definition, String name)
{
- super(model, 200, 100, name, "MPM", false);
+ super(model, 120, 150, name, "MPM", false);
this.definition = definition;
- addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, width / 2, 0));
- addPin(dataPin = new Pin(model, this, "D", definition.getMicroInstructionDefinition().sizeInBits(), PinUsage.OUTPUT, 0, 30));
+ addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, getWidth(), 30));
+ addPin(dataPin = new Pin(model, this, "D", definition.getMicroInstructionDefinition().sizeInBits(), PinUsage.OUTPUT, getWidth(),
+ 50));
init();
}
{
return definition;
}
-
+
public Pin getAddressPin()
{
return addrPin;
{
return memory;
}
-
+
public void setCoreModelBinding(CoreMicroInstructionMemory memory)
{
this.memory = memory;