JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2020 COMPUTER ORGANIZATION Previous Question Paper (October/ November - 2020 - R17)
Answer any five questions
All questions carry equal marks
Main
Simplify the following Boolean function in product-of-sums form by means of a four-variable map. Draw the logic diagram with (a) OR-AND gates (b) NOR gates
Answer
To simplify the function F(w, x, y, z) = Σ(2, 3, 4, 5, 6, 7, 11, 14, 15) in product-of-sums (POS) form, we first identify the zeros of the function, which are the minterms of the complement F'. The zeros are at indices: 0, 1, 8, 9, 10, 12, 13.
Mapping these onto a 4-variable K-map:
| wx \ yz | 00 | 01 | 10 | 11 |
|---|---|---|---|---|
| 00 | 0 | 0 | 1 | 1 |
| 01 | 0 | 0 | 0 | 0 |
| 10 | 0 | 0 | 1 | 1 |
| 11 | 1 | 1 | 0 | 0 |
Grouping the zeros (F'):
- Group 1 (corners): m0, m2, m8, m10 (simplified to y'z')
- Group 2: m0, m1, m4, m5 (simplified to w'y)
- Group 3: m8, m9, m12, m13 (simplified to wy')
- Group 4: m12, m14 (simplified to wxy')
The complement function is F' = y'z' + w'y + wy' + wxy'. Applying De Morgan's theorem to find F in POS form:
(a) The OR-AND logic diagram consists of four OR gates feeding into a single AND gate. The inputs to the OR gates are (y, z), (w, y'), (w', y), and (w', x', y) respectively.
(b) The NOR-NOR logic diagram is constructed by replacing each OR gate with a NOR gate and the final AND gate with a NOR gate, while inverting the inputs to the final NOR gate. This results in a two-level NOR gate structure equivalent to the POS expression.
With help of a detailed example, illustrate the effects of different cache mapping techniques.
Answer
Cache mapping techniques determine how memory blocks are placed into cache lines. To illustrate these, consider a system with a main memory of 16 blocks (0-15) and a cache of 4 lines (0-3).
1. Direct Mapping: Each memory block maps to a specific cache line using the formula: Cache Line = Block Address mod (Number of Cache Lines). For example, blocks 0, 4, 8, and 12 all map to cache line 0. This is simple and fast but leads to high conflict misses if two frequently used blocks map to the same line.
2. Associative Mapping: Any memory block can be placed in any cache line. The cache controller searches all lines simultaneously using a tag comparison. For our example, block 5 could reside in line 0, 1, 2, or 3. This eliminates conflict misses but requires expensive comparator hardware for every cache line.
3. Set-Associative Mapping: The cache is divided into sets, each containing multiple lines. A block maps to a specific set (using modulo arithmetic) but can reside in any line within that set. In a 2-way set-associative cache, our 4 lines form 2 sets (Set 0: lines 0,1; Set 1: lines 2,3). Block 4 maps to Set 0 (4 mod 2 = 0) and can occupy either line 0 or 1. This provides a balance between the low cost of direct mapping and the flexibility of associative mapping, significantly reducing conflict misses.
| Technique | Mapping Flexibility | Hardware Complexity | Conflict Misses |
|---|---|---|---|
| Direct | Fixed (1 line) | Low | High |
| Associative | Any line | High | None |
| Set-Associative | Any line in set | Moderate | Low |
Describe the architecture of 8086 and explain the need of code segment and extra segment.
Answer
Sign in to view the complete answer paper.
What is the difference between isolated I/O and memory mapped I/O? What are the advantages and disadvantages of each?
Answer
Sign in to view the complete answer paper.
Compare centralized and distributed inter processor arbitration logic for multi processor systems.
Answer
Sign in to view the complete answer paper.
Construct a 5-to-32-line decoder with four 3-to-8 line decoders with enable and one 2-to-4-line decoder. Explain your circuit functionality.
Answer
Sign in to view the complete answer paper.
How many 128 × 8 RAM chips are needed to provide a memory capacity of 2048 bytes.
Answer
Sign in to view the complete answer paper.
How many lines of the address bus must be used to access 2048 bytes of memory? How many of these lines will be common to all chips?
Answer
Sign in to view the complete answer paper.
Write an assembly language program using subroutine to display factorial of a given number. Trace your program for input ‘4’.
Answer
Sign in to view the complete answer paper.