Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When an instruction is sent to a CPU, that may take multiple clock cycles to complete, when does the CPU know that the instruction has finished and can start processing the next one? I'm mostly interested in RISC architectures for the simplicity, since CISC may contain complex microcode.

share|improve this question
    
I think your confused by how instructions work. An instruction can't take multiple clock cycles. Now a series of instructions that make up a method is something else entirely. As for tracking the progress that's what the cache is for –  Ramhound Mar 9 at 1:13
    
Many RISC systems doesn't have multi-cycles instructions. Not having to keep track of multi-cycles instructions are part of what makes them much simpler than CISC. –  Lie Ryan Mar 9 at 1:16
    
Today's machines (even single core) are normally executing several instructions at once. You should look for resources on computer architecture (there sure are lots of lecture notes and other resources of the net). –  vonbrand Mar 9 at 2:47
1  
@Ramhound Of course an instruction can take multiple clock cycles. Multiplies typically take longer than adds, for example. –  David Schwartz Mar 9 at 2:54

1 Answer 1

up vote 1 down vote accepted

Typically, for simple CPUs that are not superscalar and don't have sophisticated pre-fetch or pipeline logic, this is done by an actual circuit connection. When an instruction is retired, a wire from the retire logic to the fetch unit triggers the fetching of the next instruction.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.