In this assignment, you will build a register file with four 4-bit registers. This register file will reapper along with your ALU from the previous assignment later in the semester when we construct an entire processor datapath in Logisim.
Download the starter file
registers.circ and complete all of your implementation in this file.
Please do not move or rename any input and output pins in the starter file—this makes it difficult for us to test your implementation.
In the “4-bit register” subcircuit, build a four-bit register from four D flip-flops. Use Logisim’s build-in D flip-flop components, which are available in the explorer pane’s “Memory” category. Your four bit register must have the following inputs and outputs:
datainput should be written to the register on a falling clock edge.
Writing to the register should be controlled by the
clock signal with
write_enable connected to the flip-flop’s “Enable” pin
en (on the bottom of the flip-flop). The value from
data should be stored on the falling clock edge, only when
write_enable is high. Logisim defaults to rising-edge flip-flops, so you will need to change this in the flip-flop’s attribute panel.
In the “4x4 register” subcircuit, build a register file consisting of four copies of your “4-bit register” subcircuit. The register file has the following inputs and outputs:
datashould be written to the register specified by the