private void executeOneInst(){
        
        if (controlPanel.runType != 5) {
            
            controlPanel.setPipelineColor(pipenum+1, Color.RED);
            try {
                Thread.sleep(100);
            } catch (InterruptedException ex) {
                Logger.getLogger(PipelinedInstruction.class.getName()).log(Level.SEVERE, null, ex);
            }
            controlPanel.setPipelineColor(pipenum+1, Color.GREEN);
        }
                
        isStarted = true;
        isRunning = true;
        isFinished = false;

        instructionNum++;
        String sMsg = String.format("Instruction-%s is in FETCH Stage\n", instructionNum);
        controlPanel.jMessages.append(sMsg);
        IF();
        
        sMsg = String.format("Instruction-%s is in DECODE Stage\n", instructionNum);
        controlPanel.jMessages.append(sMsg);
        ID();
        
        sMsg = String.format("Instruction-%s is in EXECUTION Stage\n", instructionNum);
        controlPanel.jMessages.append(sMsg);
        EXE();
       
        pause(END);
        isFinished = true;
        isRunning = false;
        
       
   
    }