## Arithmetic PipelineArithmetic Pipelines are mostly used in high-speed computers. They are used to implement floating-point operations, multiplication of fixed-point numbers, and similar computations encountered in scientific problems. To understand the concepts of arithmetic pipeline in a more convenient way, let us consider an example of a pipeline unit for floating-point addition and subtraction. The inputs to the floating-point adder pipeline are two normalized floating-point binary numbers defined as: X = A * 2 Where The combined operation of floating-point addition and subtraction is divided into four segments. Each segment contains the corresponding suboperation to be performed in the given pipeline. The suboperations that are shown in the four segments are: - Compare the exponents by subtraction.
- Align the mantissas.
- Add or subtract the mantissas.
- Normalize the result.
We will discuss each suboperation in a more detailed manner later in this section. The following block diagram represents the suboperations performed in each segment of the pipeline. ## Note: Registers are placed after each suboperation to store the intermediate results.## 1. Compare exponents by subtraction:The exponents are compared by subtracting them to determine their difference. The larger exponent is chosen as the exponent of the result. The difference of the exponents, i.e., ## 2. Align the mantissas:The mantissa associated with the smaller exponent is shifted according to the difference of exponents determined in segment one. X = 0.9504 * 10 ## 3. Add mantissas:The two mantissas are added in segment three. Z = X + Y = 1.0324 * 10 ## 4. Normalize the result:After normalization, the result is written as: Z = 0.1324 * 10 Next TopicInstruction Pipeline |