Co-Processor | Computer Architecture
Last Updated :
10 Sep, 2021
Introduction :
If in microprocessor chip, new circuitry can be added with special purpose to perform special tasks or to perform operations on numbers in order to offload the work of the core CPU. The CPU can then work faster.
We may use a conveyor belt to do some extra work while motor is running. So , the motor is more effectively utilized. Similarly, supplementary processor, i.e., a co-processor handles the mathematical part of the work when we run complex applications.
What is a coprocessor ?
- A co-processor is many times referred as a Math Processor. As the coprocessor performs routine mathematical tasks, the core processor is freed up from this computation and its time is saved. By taking specialized processing tasks from core CPU, coprocessor reduces the strain on the main microprocessor, so that it can run at a greater speed.
- A coprocessor can perform special tasks like complex mathematical calculations or graphical display processing. They perform such jobs faster than core CPU. As a result, overall computer speed of the system increases.
- To an ARM processor, we can attach the coprocessors. A coprocessor when added, we need to expand instruction set of Core CPU or add configurable registers, to increase the processing power. The coprocessor interface permits a couple of coprocessor to be connected to the ARM CPU.
How does coprocessor work ?
Coprocessors assists the system in running more efficiently by offloading specific tasks of the CPU. They can be
- Independent type -
It work in an asynchronous manner with the CPU . Whenever it performs any task/ some calculations, that is not synchronized with the CPU. Co-processor can take decisions independently here. CPU can then do its own work without worrying about co-processor's work. Instead of synchronously waiting, CPU that issued the request is freed up to perform another task. - Direct control type -
Direct control type such as floating-point units - controlled by coprocessor's instructions that are CPU instruction set's part. The CPU that initiated the request waits or checks until co-processor completes operation. The coprocessor is not independent here & is governed or controlled by the main CPU. CPU & coprocessor works in synchronization here.
The processor is designed and implemented in manner so that it can send, both data and instructions to several coprocessors. These coprocessors are designed to perform in coordination with the core and are pipelined in the identical manner.
By adding a new set of specialized instructions, coprocessor can expand instruction set . For example, to handle vector floating-point (VFP) operations, a series of specialized instructions can be added to the normal ARM instruction set. When the instruction is decoded and it is encountered as coprocessor instruction, that instruction is passed on to the appropriate coprocessor. However, if the coprocessor isn't present or doesn't find instruction in its instruction set, an undefined instruction exception is thrown by ARM.
Properties of Coprocessor :
- Without primary microprocessor, coprocessor cannot function.
- Main processor has to identify and segregate computationally intensive instructions in a program.
- The instructions which have an intensive amount of calculations are performed by coprocessor.
- The main processor handles all other activities.
Functionalities of a Coprocessor :
- Coprocessors are incapable of retrieving instructions from memory, managing memory, executing instructions(flow control types) directly, performing I/O operations, etc.
- The coprocessor relies on the host (main) processor to retrieve coprocessor instructions and take care of all other operations not related to the coprocessor.
- A coprocessor is not the main processor of the system.
- Coprocessor can perform : Floating point arithmetic operations such as addition, subtraction, multiplication, Calculating the square root of the given number, estimating the logarithmic value of the given number etc. (for float point values) , or signal, string, graphical processing or encryption/decryption etc.
- Coprocessors enable a computer customization , so the clients do not need to pay if they do not require the additional performance.
Example - Intel 8087 Coprocessor :
The Intel 8087 was first math co-processor suited for operations of 16 bit. It was built to be paired with the Intel 8086 Microprocessor. Its main purpose was to decrease time required by the applications to give output (that require high floating point computations).
With introduction of co-processor along with the main processor, it was noticed that performance of the applications improved from 20% to 500%.
8087 coprocessor Performance - About 50 Kilo Floating Point Operations per second(KFLOPS).
Functional Diagram of 8087 Co-Processor
Intel 8087 co-processor supports :
- Integer
- BCD
- Single Precision floating point number
- Double Precision floating-point number
- Extended precision ( 80 bit) floating-point number
The diagram shows the connectivity of a co-processor with 8086 Microprocessor.
Most of the co-processors has - Arithmetic module, Temporary registers and logic module.
Similar Reads
Architecture of 8085 microprocessor
A microprocessor is fabricated on a single integrated circuit (IC) or chip that is used as a central processing unit (CPU).The 8085 microprocessor is an 8-bit microprocessor that was developed by Intel in the mid-1970s. It was widely used in the early days of personal computing and was a popular cho
11 min read
Computer Architecture | Flynn's taxonomy
Parallel computing is a computing where the jobs are broken into discrete parts that can be executed concurrently. Each part is further broken down to a series of instructions. Instructions from each part execute simultaneously on different CPUs. Parallel systems deal with the simultaneous use of mu
4 min read
Pentium Pro Architecture
The Pentium Pro microprocessor belongs to the CISC (Complex Instruction Set Computers) machines. Processor of Pentium Pro family are mostly present in majority of personal computers. The term 'Pentium processor' refers to an Intel x86 family of microprocessors that share a common architecture and in
3 min read
Handler's Classification in Computer Architecture
In 1977, Wolfgang Handler presented a computer architectural classification scheme for determining the degree of parallelism and pipelining built into the computer system hardware. Parallel systems are complicated to the program as compared to the single processor system because parallel system arch
3 min read
Hardware architecture (parallel computing)
Let's discuss about parallel computing and hardware architecture of parallel computing in this post. Note that there are two types of computing but we only learn parallel computing here. As we are going to learn parallel computing for that we should know following terms. Era of computing - The two f
3 min read
Arithmetic Logic Shift Unit in Computer Architecture
Arithmetic Logic Shift Unit (ALSU) is a member of the Arithmetic Logic Unit (ALU) in a computer system. It is a digital circuit that performs logical, arithmetic, and shift operations. Rather than having individual registers calculating the micro operations directly, the computer deploys a number of
2 min read
Cray T3E Architecture
Cray T3E architecture are microprocessor for super-computing system. Cray T3E is a RISC(Reduced Instruction Set Computer) architecture which is very powerful microprocessors. T3E systems contain a large number of processing elements (PE). Each PE consists of a DEC Alpha EV5 RISC microprocessor. Desi
3 min read
ARM processor and its Features
ARM (Advanced RISC Machine) processors are a family of CPUs based on the RISC (Reduced Instruction Set Computing) architecture. Originally developed by Acorn Computers in the 1980s, ARM processors are now designed by Arm Holdings and widely licensed by other companies (like Apple, Qualcomm, Samsung,
6 min read
Characteristics of Computer System
A computer is a fast electronic device that processes raw data, performs arithmetic and logical operations, and produces output. Nowadays, the computer has become a part of our life and can be used in most fields. In a computer, there are various characteristics of computer systems depending on thei
4 min read
Very Long Instruction Word (VLIW) Architecture
The limitations of the Superscalar processor are prominent as the difficulty of scheduling instruction becomes complex. The intrinsic parallelism in the instruction stream, complexity, cost, and the branch instruction issue get resolved by a higher instruction set architecture called the Very Long I
4 min read