package processor.pipeline; import processor.Processor; public class OperandFetch { Processor containingProcessor; IF_OF_LatchType IF_OF_Latch; OF_EX_LatchType OF_EX_Latch; public OperandFetch(Processor containingProcessor, IF_OF_LatchType iF_OF_Latch, OF_EX_LatchType oF_EX_Latch) { this.containingProcessor = containingProcessor; this.IF_OF_Latch = iF_OF_Latch; this.OF_EX_Latch = oF_EX_Latch; } public void performOF() { if(IF_OF_Latch.isOF_enable()) { //TODO IF_OF_Latch.setOF_enable(false); OF_EX_Latch.setEX_enable(true); } } }