UGC NET CS Computer Architecture: Unit 2 Revision and PYQ Map
Revise Computer Architecture as one connected chain. Use exact worked values, diagnostic prompts and a block-by-block PYQ map to find the concept that needs more practice.
KnowledgeGate Team
Exam prep & CS education

Data representation, gates, CPU organisation, pipelining, cache and I/O are often revised as separate chapters. That can leave you able to solve an isolated conversion but unable to spot the dependency driving a longer architecture question. Use one dependency chain for UGC NET Unit 2, with exact worked values and a block-by-block PYQ map to expose the weak link through stable concepts.
Revise Unit 2 as one six-block dependency chain
Follow data representation -> digital logic -> CPU organisation -> pipelining -> memory hierarchy -> I/O organisation. Bits carry values; logic transforms them. The datapath and control unit execute instructions; a pipeline overlaps their stages. Cache and main memory feed the datapath; I/O moves data among devices, memory and CPU.
Block | Must recall | Diagnostic prompt |
|---|---|---|
Representation | Signed range and overflow | Decode an 8-bit result |
Logic | Boolean simplification | Reduce a minterm set |
CPU | Registers, addressing and instruction cycle | Trace one LOAD-ADD-STORE sequence |
Pipeline | Stages, hazards and cycles | Count stalls and flushes |
Memory | Tag, index, offset and AMAT | Map two addresses |
I/O | Polling, interrupts and DMA | Compare CPU involvement for one block |
The earlier Computer Architecture and Organisation complete guide owns the broad subject overview, while the Computer Organization Semester Guide owns a semester-wide value trace. The KnowledgeGate learning hub is the wider route. The sequence here follows concept dependencies, from bit patterns to device transfers.
Start with the bit pattern, then prove the logic expression
In 8-bit two's complement, +13 = 00001101. Invert the bits to get 11110010, then add 1, so -13 = 11110011. Now add +6 = 00000110:
11110011 + 00000110 = 11111001
To decode the negative result, invert 11111001 to 00000110 and add 1, giving magnitude 7. The result is -7. There is no signed overflow because the addends have opposite signs. By contrast, 01111111 + 00000001 = 10000000 represents 127 + 1, which exceeds the 8-bit signed range -128 to 127, so it overflows.
Now minimise F(A,B,C) = Sigma m(1,2,3,5,7). Group m1,m3,m5,m7 to obtain C. Pair m2,m3 to obtain A'B. Therefore, F = C + A'B. Check two rows: for A=0,B=1,C=0, F=0+1=1; for A=1,B=1,C=0, F=0+0=0.
Representation determines the input codes, while the Boolean function determines the circuit output. Carry out and signed overflow are distinct, and K-map adjacency wraps across opposite edges.
Trace one LOAD-ADD-STORE path through the CPU
Fix the initial state: PC = 0x0200, R2 = 0x1000, R4 = 5, M[0x1010] = 37, with every instruction occupying 4 bytes.
At 0x0200, LOAD R1, 16(R2) uses base-displacement addressing. Its effective address is 0x1000 + 0x0010 = 0x1010, so R1 becomes 37 and the sequential PC becomes 0x0204. At 0x0204, ADD R3, R1, R4 gives R3 = 37 + 5 = 42, then advances the PC to 0x0208. At 0x0208, STORE R3, 20(R2) calculates 0x1000 + 0x0014 = 0x1014, writes 42 to M[0x1014], and leaves the next sequential PC at 0x020C.
The PC supplies each instruction address, and the instruction register holds the fetched instruction. The control unit selects register reads, ALU work and memory action. The ALU computes 0x1010, 42 and 0x1014; the register file holds R1, R2, R3 and R4. Notice that 16(R2) forms an address from a base and displacement; the 16 contributes to address calculation rather than serving as an ALU operand. The CPU organization basics sibling uses a different 16-bit accumulator machine for a full register-transfer walkthrough; this trace keeps the fixed base-displacement path tied to the UGC NET revision chain.
Count pipeline cycles only after marking hazards
Assume a five-stage IF-ID-EX-MEM-WB pipeline, one cycle per stage, full forwarding, a one-cycle load-use stall, and a taken branch resolved at the end of EX with a two-cycle wrong-path penalty. The six useful instructions are I1 LW R1,0(R2); I2 ADD R3,R1,R4; I3 SUB R5,R6,R7; I4 BEQ R5,R0,L, taken; target I5 AND R8,R9,R10; and target I6 OR R11,R12,R13.
With k=5 stages and n=6 useful instructions, ideal completion time is k + n - 1 = 5 + 6 - 1 = 10 cycles. Add one cycle for the I1 -> I2 load-use hazard and two cycles for the taken I4 branch: 10 + 1 + 2 = 13 cycles. Against the stated non-pipelined baseline of 6 x 5 = 30 cycles, speedup is 30 / 13 = 2.31, rounded to two decimals.

The earlier Data hazards: solutions and worked examples post owns RAW, WAR and WAW classification plus forwarding schedules. Here, one load-use stall and one taken-branch penalty show where pipeline timing fits in the six-block revision chain.
Split a cache address before calculating hit performance
On a 32-bit byte-addressed machine, an 8 KiB = 8192-byte direct-mapped cache with 32-byte blocks has 8192 / 32 = 256 lines. Therefore, offset bits are log2(32) = 5, index bits are log2(256) = 8, and tag bits are 32 - 5 - 8 = 19. The fields are tag[31:13] | index[12:5] | offset[4:0].
For 0x00001234, block number is 0x91, offset is 0x14 = 20, index is 0x91 = 145, and tag is 0x0. For 0x00003234, block number is 0x191, offset is 0x14, index is 0x91, and tag is 0x1. Both compete for line 145 because the indices match and the tags differ.
For performance, assume L1 hit time 1 ns, L1 miss rate 8%, L2 access time 6 ns, L2 local miss rate 25%, and an additional 60 ns main-memory penalty after an L2 miss:
AMAT = 1 + 0.08 x (6 + 0.25 x 60) = 1 + 0.08 x 21 = 2.68 ns
Here, 25% is the local L2 miss rate used inside the L1-miss term.

Compare programmed I/O, interrupts and DMA with one 4 KiB transfer
For a 4096-byte block and 4-byte transfers, an ideal sustained 100,000,000 bytes/s bus needs 4096 / 4 = 1024 transfers. Ignoring arbitration and setup, raw time is 4096 / 100,000,000 seconds, or 40.96 microseconds.
With programmed I/O, the CPU polls and services all 1024 word transfers. An interrupt per 4-byte word also produces 1024 interrupts, showing why granularity matters. With block-mode DMA, the CPU programs source, destination and count once, the controller moves 4096 bytes, and one completion interrupt returns to the CPU. DMA reduces CPU involvement while device and bus speed remain unchanged.
These assumptions isolate CPU involvement from the device transfer rate.
Turn the six blocks into a PYQ map and an error log
Use these diagnostic forms to organise practice by concept.
Block | Common prompt form 1 | Common prompt form 2 |
|---|---|---|
Representation | Convert a signed code | Detect overflow |
Logic | Minimise a function | Identify a gate realisation |
CPU | Calculate an effective address | Trace registers and memory |
Pipeline | Count cycles with a dependency | Apply a branch penalty |
Memory | Derive tag, index and offset | Calculate AMAT |
I/O | Compare CPU involvement | Identify DMA or interrupt behaviour |
Build a 12-question diagnostic, two per block, and score blocks separately: at 0/2, relearn the concept and redo its example; at 1/2, record the exact error and retry after one day; at 2/2, move to a mixed set. KnowledgeGate has over 1,800 published COA questions for broad practice.
Label misses representation error, formula or assumption error, hazard or dependency missed, or arithmetic slip. The the NTA UGC NET Paper 2 course provides structured practice.
Choose tomorrow's Unit 2 block from the error log
Start tomorrow with the lowest diagnostic row, not the most familiar chapter. Rework that block's anchor calculation from memory, then solve one mixed question that crosses it with an adjacent block. If representation and CPU both miss, trace an effective address from the bit pattern before returning to pipeline or cache.
The NTA-UGC-NET Paper 2 course provides a sequenced concept route. Re-run the 12-question diagnostic after the targeted repair and move only the blocks that reach 2/2 into mixed practice.
Keep learning
UGC NET Computer Science Machine Learning Revision Map: Topics, Calculations and Traps
Connect the data-mining and neural-network topics in UGC NET Computer Science through a practical revision map, four worked examples and a focused seven-session schedule.
UGC NET CS vs GATE CS Revision: Match the Question Style
Knowing the same CS concepts is not enough when the retrieval demand changes. Learn to convert one note page into breadth and depth drills, diagnose the weak layer, and plan the next 10 revision hours.
UGC NET Computer Science last 45 days plan: a week-by-week revision and mock phase
A UGC NET Computer Science last 45 days plan, week by week: revision, sectional and full mocks, Paper 1 upkeep and an honest final-week taper before the exam.
UGC NET Computer Science syllabus areas: the Paper 2 subjects and how our courses map to them
UGC NET Computer Science syllabus areas for Paper 2: DBMS, OS, networks, theory of computation, data structures, algorithms, and how our courses map to each.





