5.1.4 · D3 · HinglishInstruction Set Architecture (ISA)

Worked examplesRegister file organization

2,805 words13 min read↑ Read in English

5.1.4 · D3 · Hardware › Instruction Set Architecture (ISA) › Register file organization

Shuru karne se pehle, un chaar symbols ko plain words mein dobara samajh lete hain jo baar baar use honge:

Ek cost fact jis par hum har jagah rely karte hain:


Scenario matrix

Har register-file numeric question inhi boxes mein se kisi ek mein aati hai. Is page ka kaam hai har row ko cover karna.

# Case class Kya tricky banata hai Example jo isko hit karta hai
A exact power of 2 hai clean Ex 1
B power of 2 nahi hai upar round karna padta hai (ceiling) Ex 2
C Degenerate: address bits Ex 3
D Total stored state , ports count nahi hote Ex 4
E Superscalar port scaling area ratio Ex 5
F Limiting case: bahut saare ports cost kitni tezi se badhti hai Ex 6
G Read-during-write timing old vs new value, koi arithmetic trap nahi Ex 7
H Real-world word problem English ko mein translate karo Ex 8
I Exam twist: instruction encoding budget ko opcode bits ke saath mix karna Ex 9
J R0 degenerate storage ek register store karta hai kuch nahi Ex 10

Prerequisite building blocks Multiplexers and Decoders aur Datapath and ALU mein hain; timing row Pipeline Hazards par lean karti hai.


Worked Examples

Cell A — clean power of two

Cell B — power of two nahi (ceiling trap)

Cell C — degenerate single register

Cell D — total stored state (ports count nahi hote)

Cell E — superscalar port scaling

Figure — Register file organization

Cell F — limiting case (kitni tezi se badhta hai?)

Figure — Register file organization

Cell G — read-during-write timing

Cell H — real-world word problem

Cell I — exam twist: instruction encoding budget

Cell J — R0 degenerate storage


Active Recall

Recall Har trap kaun se matrix cell mein hai?
  1. 40 registers → address bits? ::: Cell B (ceiling): .
  2. Kya 3rd read port total stored bits change karta hai? ::: Nahi — Cell D: state sirf hai.
  3. 4-issue vs 1-issue area factor? ::: Cell F: , from .
  4. Same-cycle read jab register write ho raha ho? ::: Cell G: policy-dependent; forwarding new value deta hai.
  5. 64 registers opcode space kyun hurt karte hain? ::: Cell I: badhkar 6 ho jaata hai, teen fields 18 bits cost karte hain, kam opcode bits bachte hain.

Connections


Address bits to select 1 of 40 registers?
bits.
Do read/write ports register file ke total stored bits change karte hain?
Nahi; stored bits only. Ports area aur speed affect karte hain.
Area factor 1-issue () se 4-issue () file mein jaane par?
larger.
32×32-bit RISC-V file mein kitne storage flip-flops hain, given R0 hardwired hai?
(R0 kuch store nahi karta).
32-bit word mein teen 5-bit register fields ke baad opcode bits kitni bachti hain?
bits.