Assignment - CO - Module I
Assignment - CO - Module I
Assignment
1. A software developer is designing a new program that requires frequent access to both
instructions and data during its execution.
How does the Von Neumann architecture facilitate the seamless integration of instructions
and data in a way that enables efficient program execution? Provide specific examples to
illustrate its advantage in programming.
4. Differentiate
i. Multiplexer and Demultiplexer
ii. Binary adder and CLA
iii. Memory read and Memory write
iv. Full Adder and Full Subtractor
5. Imagine a customer adds multiple items to their shopping cart. How would you use
a stack to manage the cart items efficiently, ensuring that the last item added is the
first one removed when the customer proceeds to checkout? Explain PUSH and
POP operations. Convert the following arithmetic expression into reverse polish
notation (RPN) and show the stack operations for evaluating it.
a) 7 * 5 + (5 + 6) + (4 * 6 + 2)
b) 5 + 10 * 6 + (3 + 5) + 7 * (6 + 2)
c) 8 * 3 + (4 + 8) + (4 * 7 + 2) + 2 + 3
d) (A + B) * C - (D - E) * (F + G)
e) (((110/ (30-8))*50)+5)-((15/(10-5))*2)
(10+3)[2∗3+(3∗9/3)]
f)
6−3+(4∗3)
7. How do eight processor registers of 4-bit each utilize a common bus architecture to
transfer its binary content to the bus? Design the configuration with proper labeling.
(i) R1 ← R2 + R3
(ii) R4 ← R4
(iii) R5 ← R5 – 1
(iv) R6 ← Shl R1
(v) R7 ← Input
9. Design a combinational logic to add and subtract two 4-bit binary numbers. Also,
design a logic to indicate the overflow condition.
10. Write a program to evaluate the following arithmetic statement by using three, two,
one and zero address instructions:
(i) A-B+(C+D)/E+F/G+(J*K)
(ii) (A*B+C)+D/E+F*G+I*J