Home › Practice › RTL Design › Register busy bits

Register busy bits

EasyRTLsequentialarchitecture

A processor starts several instructions at once. Before one reads a register, it must be sure no earlier instruction is still about to change that register.

Concept first. A scoreboard keeps track of which registers still have a result on the way from an instruction that has been issued (started) but has not finished. Each register has a busy bit. The bit is set when an instruction that writes the register is issued, and cleared when that result is written back. A later instruction may read a register only when its busy bit is clear; otherwise it would read a stale value (a read-after-write hazard). Think about what should happen if the same register is issued to and written back in one cycle.

What to build.

Solve in your browser →

No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.

More in this track

← Load-use hazard detectorWho is most urgent? →