CA CourseFile Assignment
CA CourseFile Assignment
Course File
Session 2018-19
Semester: 5th
3 Course Plan
5 Course Outcomes
9 Assignments/Quizzes
11 University papers
Course Outcomes
Upon successful completion of the course, the students will be able to:
CO2 3 3 3 3
CO3 3 2 3
CO4 2 3 2
CO5 3 3
PSO1: Ability to use the concepts of computing to design various applications of engineering
PSO2: To apply mathematical and analytical skills for solving the complex and critical problems of computer science and
engineering
PSO3: Provide effective and efficient work strategies towards development of smart nation
Course topics (as per syllabus and out of Syllabus (if any)), their objectives and duration (Plan)
UNIT Objectives Target Duration Readings Lecture taken
on
POs (Hours) (DATE)
Course reference notes (any handouts, written notes, ppts, links of web pages or documents)
Mid-term Question paper and its solution
Mid-term marks list
Assignment Questions, its solution and marks
Practical evaluation marks on each practical day (only for lab.) NA
Internal viva marks with assessment type (lab file, internal viva marks, continuous evaluation marks, written
exam etc.) NA
CO2: (4 marks)
Q.3 Derive the speed up formula for a pipeline system of K stage. What will be the maximum
speedup possible?
Q.4 Explain Control word and differentiate RICS and CISC characteristics.
CO3: (4 marks)
Q.5 Explain Booth Multiplication algorithm and draw proper flowchart.
Q.6 How floating point number`s Addition and Subtraction done. Explain with flowchart.
______________________________________________________________________________________________________________________________
Solution
Ans.1:
A bus system can be constructed with three-state gates instead of multiplexers. A three-state
gate is a digital circuit that exhibits three states. Two of the states are signals equivalent to
logic 1 and 0 as in a conventional gate. The third state is a high-impedance state. The high-
impedance state behaves like an open circuit, which means that the output is disconnected
and does not have a logic significance. Three-state gates may perform any conventional logic,
such as AND or NAND. However, the one most commonly used in the design of a bus system
is the buffer gate.
The two selection lines S1 and S0 are connected to the selection inputs of all four
multiplexers. The selection lines choose the four bits of one register and transfer them into
the four-line common bus. When S1S0 = 00, the 0 data inputs of all four multiplexers are
selected and applied to the outputs that form the bus. This causes the bus lines to receive
the content of register A since the outputs of this register are connected to the 0 data inputs
of the multiplexers. Similarly, register B is selected if S1S0 = 01, and so on. Table 4-2 shows
the register that is selected by the bus for each of the four possible binary value of the
selection lines.
Ans 2:
The arithmetic microoperations listed in Table 4-3 can be implemented in one composite
arithmetic circuit. The basic component of an arithmetic circuit is the parallel adder. By
controlling the data inputs to the adder, it is possible to obtain different types of arithmetic
operations.
When S1S0 = 00, the value of B is applied to the Y inputs of the adder. If Cin = O, the output D
= A + B . If Cin = 1, output D = A + B + l. Both cases perform the add microoperation with or
without adding the input carry. When S1S0 = 01, the complement of B is applied to the Y
inputs of the adder. If Cin = 1, then D = A + B + 1. This produces A pius the 2's complement
of B, which is equivalent to a subtraction of A - B. When Cm = 0, then D = A + B . This is
equivalent to a subtract with borrow, that is, A - B - 1. When S1S0 = 10, the inputs from B are
neglected, and instead, all O's are inserted into the Y inputs. The output becomes D = A + 0 +
Cm· This gives D = A when Cm = 0 and D = A + 1 when Cin = 1. In the first case we have a
direct transfer from input A to output D. In the second case, the value of A is incremented by
1. When S1So = 11, all 1' s are inserted into the Y inputs of the adder to produce the
decrement operation D = A - 1 when Cm = 0. This is because a number with all 1's is equal to
the 2's complement of 1 (the 2's complement of binary 0001 is 1111). Adding a number A to
the 2's complement of 1 produces F = A + 2's complement of 1 = A - 1. When Cin = 1, then D =
A - 1 + 1 = A, which causes a direct transfer from input A to output D. Note that the
microoperation D = A is generated twice, so there are only seven distinct microoperations in
the arithmetic circuit.
Ans 3:
Next consider a nonpipeline unit that performs the same operation and takes a time equal to
t. to complete each task. The total time required for n tasks is nt n. The speedup of a pipeline
processing over an equivalent nonpipeline processing is defined by the ratio.
As the number of tasks increases, n becomes much larger than k - 1, and k + n - 1 approaches
the value of n. Under this condition, the speedup becomes
If we assume that the time it takes to process a task is the same in the pipeline and non
pipeline circuits, we will have t, = kt,. Including this assumption, the speedup reduces to
Ans 4:
RISC Characteristics
The concept of RISC architecture involves an attempt to reduce execution time by simplifying
the instruction set of the computer. The major characteristics of a RISC processor are:
1. Relatively few instructions
2. Relatively few addressing modes
3. Memory access limited to load and store instructions
4. All operations done within the registers of the CPU
5. Fixed-length, easily decoded instruction format
6. Single-cycle instruction execution
7. Hardwired rather than microprogrammed control
Ans 5:
Booth algorithm gives a procedure for multiplying binary integers in signed-2's complement
representation. It operates on the fact that strings of O's in the multiplier require no addition
but just shifting, and a string of 1's in the multiplier from bit weight 2' to weight 2m can be
treated as 2'+1 - 2m. For example, the binary number 001 110 ( + 14) has a string of 1's from
23 to 21 (k = 3, m = 1). The number can be represented as 2k+ l - 2m = 24 - 21 = 16 -2 = 14.
Therefore, the multiplication M x 14, where M is the multiplicand and 14 the multiplier, can
be done as M x 24 - M X 21 • Thus the product can be obtained by shifting the binary
multiplicand M four times to the left and subtracting M shifted left once.
Ans 6:
Addition and Subtraction
During addition or subtraction, the two floating-point operands are in AC and BR . The sum or
difference is formed in the AC . The algorithm can be divided into four consecutive parts:
1. Check for zeros.
2. Align the mantissas.
3. Add or subtract the mantissas.
4. Normalize the result.
A floating-point number that is zero cannot be normalized. If this number is used during the
computation, the result may also be zero. Instead of checking for zeros during the
normalization process we check for zeros at the beginning and terminate the process if
necessary. The alignment of the mantissas must be carried out prior to their operation. After
the mantissas are added or subtracted, the result may be unnormalized. The normalization
procedure ensures that the result is normalized prior to its transfer to memory.
ASSIGNMENTS
ASSIGNMENT 1
Q.1Explain Arithmetic micro-operations design a 4-bit arithmetic circuit with Diagram and Function table
Q.2Explain the architecture for General Register Organization with 7 registers and input & output along with
an ALU. Draw proper diagram.
Q.3Write shorts notes on-
(a) Flynn Classification (b) Von Newman Architecture
(c) Computer Registers
ASSIGNMENT 2
Q.1Explain Arithmetic Logic Shift Unit circuit with Diagram and Function table.
Q.2Explain the architecture for General Register Organization with 7 registers and input & output along with
an ALU. Explain control word and draw proper diagram.
Q.3Explain the concept of Pipeline and derived formula for Speedup for a k-stage pipeline.
ASSIGNMENT 3
Q.1Explain Arithmetic micro-operations design a 4-bit arithmetic circuit with Diagram and Function table
Q.2Explain the architecture for General Register Organization with 7 registers and input & output along with
an ALU. Draw proper diagram.
Q.3Write shorts notes on-
ASSIGNMENT 4
Q.1Explain the Booth Multiplication algorithm for multiplication of 2`S complement data with proper flow
chart.
Q.2What is Virtual memory? Explain with suitable example.
Q.3Write shorts notes on-
(a) Carry Look ahead adder (b) ROM and RAM Chip
(c) Associative Memory (d) Pipelining Speedup