The control unit it is a digital circuit that governs operations and handles all control signals within a computer's processor. It allows the logic unit, memory, and input and output peripherals to know how to replicate the commands received from a program. So it routes all input and output flow, looks up code for program operations, and directs other units by sending timing and control signals..
A control unit acts by admitting input data, which it transforms into control signals and which are subsequently transmitted to the central processor. The processor instructs the different devices what operations to perform.
This unit is the component of the processor that acts as your brain, because it generates the instructions for almost all operations and ensures that they are executed correctly..
Examples of devices that use control units are the central processing unit (CPU) and the graphics processing unit (GPU).
Article index
To execute an action, the CPU control unit must produce the necessary control signal in the proper sequence. There are two approaches that are used to generate these control signals in the correct sequence.
The control unit is made up of logic gates, flip-flops, digital circuits, encoders and decoders, which are wired in an established way..
It can be considered as a state apparatus, which varies from state to state in each clock cycle, depending on the content of the instruction register and external inputs..
The output of this state apparatus are the control signals. The sequence of operations carried out by this machine is determined by the wiring of the logic elements. For this reason it is called "integrated".
The design is based on a specific architecture. When changes to the instruction set are required, changes must be made to the wiring and circuit.
This is the basis for the reduced instruction set computing (RISC) architecture, which has only a small number of instructions..
Control signals are essential to direct the execution of operations. They are disseminated by expressly designed logic circuits, in which the signal generation method cannot be modified without a physical change in the circuit structure..
The control signals to carry out an operation must be broadcast not at a single point in time, but over the entire period of time corresponding to the instruction execution cycle..
The opcode of an instruction includes the basic information to broadcast the control signal.
The opcode is decoded in the instruction decoder. This is constituted by a set of decoders that decode the different fields of the operation code of the instruction.
The instruction decoder allows the control unit to enter the first state linked to the execution of the new operation, which lasts as long as the timing signals and other input signals remain unchanged..
A change in any of the above signals prompts the status of the control unit to change.
As a result, some lines coming out of the instruction decoder acquire values in the signal. These lines are coupled to the control signal generator device for the different units of the computer..
By repeating the organization of these phases, the appropriate ordering of internal states is structured in the control unit..
When a new instruction arrives at the control unit, the embedded units are in the initial state to retrieve the new instruction.
The essential difference of this approach with respect to the integrated unit is the existence of a control warehouse, which is used to store the microprograms that include the coded control signals essential for the execution of an operation..
The operation code of the instruction will not be decoded to immediately create a control signal, but the address of a microprogram that is stored in the control store will be indicated.
That is, the control signals attached to the instructions are stored in special memory cells as replaceable firmware..
The microprogrammed control unit is slower than the built-in unit due to the time it takes to restore the operations found in the memory unit.
It is the responsibility of the control unit to inform the input and output devices, the main memory and the logical-arithmetic unit of the computer how to replicate the operations that are issued to the processor..
Gets program operations into memory and takes them to the processor register. Depending on what this register includes, the control unit creates a signal that monitors the performance of these operations.
Depending on the type of operation you enter the control unit, you could change the number and order of the sequential steps generated to select and configure the parts of the CPU that will be used to achieve the objective of the operation, whether it is move, modify or store data.
This process of decoding operations is performed again when the counter is incremented to the next saved address of the program. From that address the new operation is entered into the control unit, and so on until the end of the program.
The functions carried out by a control unit will be subject to the type of CPU, due to the existing disparities in the structure between the different brands. The following diagram illustrates how the instructions in a program are processed.
- Handles multiple tasks such as finding and retrieving instructions, decoding, managing execution, and storing results.
- Receives external instructions or commands which it converts into a sequence of control signals.
- Interpret the instructions.
- Controls the sequential execution of instructions.
- Coordinates the sequence of data movements in, out, and between the many processor sub-units.
- Regulates and controls the synchronization of the execution units, such as the arithmetic logical unit, and the stores and data registers contained in the processor.
- Sends and receives control signals to other computing devices.
- Directs and controls the flow of data through the different areas of the computer.
Yet No Comments