Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Instruction cycle
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Basic instruction cycle in a computer}}The '''instruction cycle''' (also known as the '''fetch–decode–execute cycle''', or simply the '''fetch–execute cycle''') is the cycle that the [[central processing unit]] (CPU) follows from [[booting|boot-up]] until the computer has shut down in order to process instructions. It is composed of three main stages: the fetch stage, the decode stage, and the execute stage. [[File:Fetch-Decode-Execute Cycle.png|thumb|This is a simple diagram illustrating the individual stages of the fetch-decode-execute cycle. Legend: {{bulleted list |PC – [[Program counter]] |MAR – [[Memory address register]] |MDR – [[Memory buffer register|Memory data register]] |CIR – [[Instruction register|Current instruction register]] |CU – [[Control unit]] |ALU – [[Arithmetic logic unit]] }} ]] In simpler CPUs, the instruction cycle is executed sequentially, each instruction being processed before the next one is started. In most modern CPUs, the instruction cycles are instead executed [[concurrent computing|concurrently]], and often in [[parallel computing|parallel]], through an [[instruction pipeline]]: the next instruction starts being processed before the previous instruction has finished, which is possible because the cycle is broken up into separate steps.<ref>{{cite web |title=Pipelining |url=https://cs.stanford.edu/people/eroberts/courses/soco/projects/risc/pipelining/index.html |author=Crystal Chen, Greg Novick and Kirk Shimano |year=2000 |access-date=2019-06-26}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)