CoreModelParameters params = new CoreModelParameters();
params.gateProcessTime = 50;
+ params.hardcodedComponentProcessTime = params.gateProcessTime * 5;
params.wireTravelTime = 10;
mainMemory = new AssignableMainMemory(new WordAddressableMemory(am2900MachineDefinition.getMainMemoryDefinition()));
instMemory = new AssignableMicroInstructionMemory(
{
CoreModelParameters params = new CoreModelParameters();
params.gateProcessTime = 50;
+ params.hardcodedComponentProcessTime = params.gateProcessTime * 5;
params.wireTravelTime = 10;
executeVisualisation(setupLogicModel, params, beforeRun);
}
{
public int wireTravelTime;
public int gateProcessTime;
+ public int hardcodedComponentProcessTime;
}
\ No newline at end of file
if (pin.usage != PinUsage.INPUT)
{
// TODO do this prettier
- CoreWire pseudoWire = new CoreWire(timeline, wire.width, params.gateProcessTime);
+ CoreWire pseudoWire = new CoreWire(timeline, wire.width, params.hardcodedComponentProcessTime);
CoreWire.fuse(wire, pseudoWire);
readWriteEnds.put(pin.name, pseudoWire.createReadWriteEnd());
}
LogicModelModifiable model = new LogicModelModifiable();
CoreModelParameters params = new CoreModelParameters();
params.gateProcessTime = 50;
+ params.hardcodedComponentProcessTime = params.gateProcessTime * 5;
params.wireTravelTime = 10;
ModelManualSwitch rIn = new ModelManualSwitch(model, 1);
// Create core model
CoreModelParameters params = new CoreModelParameters();
params.gateProcessTime = 50;
+ params.hardcodedComponentProcessTime = params.gateProcessTime * 5;
params.wireTravelTime = 10;
timeline = LogicCoreAdapter.convert(logicModel, params);
timelineField.ifPresent(f -> setField(f, timeline));