Questions: Registers and Register Files

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A CPU pipeline stage needs to read two source registers and write one destination register all within the same clock cycle. Is this possible with a standard register file?

ANo — writes must complete in one cycle and reads in the next; operations cannot overlap
BYes — reads are combinational (no clock edge needed), so both reads and the write can proceed simultaneously within the same cycle
CYes, but only if the reads and write access different physical registers in the file
DNo — register file operations are always serialized to prevent data hazards
Question 2 Multiple Choice

In a register file, how does the write logic ensure that only the targeted register is updated when a write occurs?

AThe write data is broadcast to all registers, and each register compares it to its current value before deciding to update
BA decoder converts the write address to a one-hot enable signal, activating exactly one register's clock input while all others ignore the incoming data
CThe write port serializes the update across all registers in sequence, stopping when the correct address is matched
DA priority encoder selects the highest-address register that has been idle longest
Question 3 True / False

A register file with two read ports requires two independent multiplexer trees so that both source operands can be accessed at the same time.

TTrue
FFalse
Question 4 True / False

Register files are kept small compared to caches primarily because they use slower, denser memory cells that require fewer transistors per bit.

TTrue
FFalse
Question 5 Short Answer

Why are reads from a register file described as 'combinational' while writes require a clock edge, and what practical benefit does this asymmetry provide?

Think about your answer, then reveal below.