The MIPS Register File
- Well, sort of.
- I will use 8 bit data, not 32 or 64, but this will scale easily
- I will use 4 registers, not 32, but this will scale.
- I will only have one read value, not two....
- Foundation grab four registers.
- Output
- We need a MUX to select between the four registers.
- We will control this with a DIP switch, but it could be the value coming out of the IR.
- Wire this up.
- Input is more of a problem.
- But not much more.
- A common input data line.
- A decoder to select the register
- A "clock" or "Save" line to raise when we are ready to save data in a register.
- And the clock with the output of the decoder.
- Additionally a Clear switch.
-
- And the source code