You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
575 B
28 lines
575 B
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);
|
|
}
|
|
}
|
|
|
|
}
|
|
|