The control unit manages the various components of the computer by reading and decoding program instructions. It transforms instructions into control signals that activate other parts of the computer. A key component is the program counter, which keeps track of the location in memory of the next instruction to be read. The control unit's functions include reading instructions, decoding them, incrementing the program counter, retrieving required data, providing data to the ALU or registers, instructing hardware operations, writing results, and looping to the next instruction. More complex CPUs may use microcode run by a microsequencer to control processing.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
Main Articles: And: CPU Design Control Unit
The control unit manages the various components of the computer by reading and decoding program instructions. It transforms instructions into control signals that activate other parts of the computer. A key component is the program counter, which keeps track of the location in memory of the next instruction to be read. The control unit's functions include reading instructions, decoding them, incrementing the program counter, retrieving required data, providing data to the ALU or registers, instructing hardware operations, writing results, and looping to the next instruction. More complex CPUs may use microcode run by a microsequencer to control processing.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Control unit
Main articles: CPU design and Control unit
Diagram showing how a particular MIPS
architecture instruction would be decoded by the control system The control unit (often called a control system or central controller) manages the computer's various components; it reads and interprets (decodes) the program instructions, transforming them into control signals that activate other parts of the computer.[92] Control systems in advanced computers may change the order of execution of some instructions to improve performance. A key component common to all CPUs is the program counter, a special memory cell (a register) that keeps track of which location in memory the next instruction is to be read from.[93] The control system's function is as follows—note that this is a simplified description, and some of these steps may be performed concurrently or in a different order depending on the type of CPU: 1.Read the code for the next instruction from the cell indicated by the program counter. 2.Decode the numerical code for the instruction into a set of commands or signals for each of the other systems. 3.Increment the program counter so it points to the next instruction. 4.Read whatever data the instruction requires from cells in memory (or perhaps from an input device). The location of this required data is typically stored within the instruction code. 5.Provide the necessary data to an ALU or register. 6.If the instruction requires an ALU or specialized hardware to complete, instruct the hardware to perform the requested operation. 7.Write the result from the ALU back to a memory location or to a register or perhaps an output device. 8.Jump back to step (1). Since the program counter is (conceptually) just another set of memory cells, it can be changed by calculations done in the ALU. Adding 100 to the program counter would cause the next instruction to be read from a place 100 locations further down the program. Instructions that modify the program counter are often known as "jumps" and allow for loops (instructions that are repeated by the computer) and often conditional instruction execution (both examples of control flow). The sequence of operations that the control unit goes through to process an instruction is in itself like a short computer program, and indeed, in some more complex CPU designs, there is another yet smaller computer called a microsequencer, which runs a microcode program that causes all of these events to happen.