Menu

Theme

Component reference · Component · CHECKED ON 5.0.0

Registers in Logisim: register, shift register and a register file you can build

The Register stores a Data Bits-wide value on each clock trigger, but only while its enable input is 1, and its clear input sets it to 0 at once. The Shift Register moves a value one stage per clock. Logisim-evolution has no register-file part in the Memory library: build one from registers, a decoder for the write enables and one multiplexer per read port. Ours passed a 23-step test.
FOR
Students building a datapath or CPU · Logisim-evolution 5.0.0
CHECKED
11 Nov 2026
Checked against Logisim-evolution 5.0.0 on 1 machines
On this page

Register

Ports on the 5.0.0 part, from its help text (F44):

Register ports
Data (input)The value stored on a clock trigger.
ClockThe value updates on this trigger.
EnableWhen 0, clock triggers are ineffective.
ClearWhen 1, the value is set to 0 asynchronously.
OutputThe register's current value.

Attributes: Data Bits, Trigger, Label, and a setting to show it in the Registers tab; we did not open the Properties panel for this part, so we give no more.

Our run of an 8-bit register, one row per step of the test (F101):

8-bit Register test vector
00xa5100x0
10xa5100xa5
00x3c000xa5
10x3c000xa5
00x3c000xa5
00x3c100xa5
10x3c100x3c
00x3c100x3c
00x3c110x0
00x3c100x0

Download the register and its vector.

Shift Register

The Shift Register part has these ports in its help text: Input (value shifted into the first stage), Shift (shifting is disabled when 0), Clock, Clear (resets all stages to 0 asynchronously), Output (the last stage), and Load (when 1, with Shift at 0, all stages load from the parallel inputs). With Parallel Load on, each stage also has its own input and output. We have not run the part, so we show no table. To build a shift register yourself, chain D flip-flops: see Flip-flops. A bidirectional one can use the TTL 74194, see the TTL library when available.

Build a register file

A register file has several registers, one write port and usually two read ports. Logisim-evolution has no such part in the Memory library. Ours: 4 registers of 8 bits.

circ-regfile-4x8 · mainscroll to see all
282288CLKclkWEwe2bWAwa8bWDwd2bRAra2bRBrbDecoderwaween0en1en2en3RegisterR0wdclken00q0RegisterR1wdclken10q1RegisterR2wdclken20q2RegisterR3wdclken30q3q0q1q2q3raqa8bQAqaq0q1q2q3rbqb8bQBqb
A 4 by 8 register file: a decoder turns the write address and write enable into one enable per register, and two multiplexers pick the registers for read ports A and B. CC BY 4.0 · SHA-256 738e25a484be
Describe this circuit

Components: Input pin CLK; Input pin WE; Input pin WA; Input pin WD; Input pin RA; Input pin RB; Decoder 1; Register R0; Constant 1; Register R1; Constant 2; Register R2; Constant 3; Register R3; Constant 4; Multiplexer 1; Output pin QA; Multiplexer 2; Output pin QB.

  • Input pin CLK connects to Register R0, Register R1, Register R2, Register R3 (net CLK, clk).
  • Input pin WE connects to Decoder 1 (net WE, we).
  • Input pin WA connects to Decoder 1 (net WA, wa), 2 bits wide.
  • Input pin WD connects to Register R0, Register R1, Register R2, Register R3 (net WD, wd), 8 bits wide.
  • Input pin RA connects to Multiplexer 1 (net RA, ra), 2 bits wide.
  • Input pin RB connects to Multiplexer 2 (net RB, rb), 2 bits wide.
  • Decoder 1 connects to Register R0 (net en0).
  • Decoder 1 connects to Register R1 (net en1).
  • Decoder 1 connects to Register R2 (net en2).
  • Decoder 1 connects to Register R3 (net en3).
  • Register R0 connects to Multiplexer 1, Multiplexer 2 (net q0), 8 bits wide.
  • Register R0 connects to Constant 1.
  • Register R1 connects to Multiplexer 1, Multiplexer 2 (net q1), 8 bits wide.
  • Register R1 connects to Constant 2.
  • Register R2 connects to Multiplexer 1, Multiplexer 2 (net q2), 8 bits wide.
  • Register R2 connects to Constant 3.
  • Register R3 connects to Multiplexer 1, Multiplexer 2 (net q3), 8 bits wide.
  • Register R3 connects to Constant 4.
  • Multiplexer 1 connects to Output pin QA (net qa, QA), 8 bits wide.
  • Multiplexer 2 connects to Output pin QB (net qb, QB), 8 bits wide.
  1. Place four 8-bit registers

    Wire the same write-data bus to all four data inputs and the same clock to all four clock inputs.

    Check: Each shows Data Bits 8.

  2. Make the write enables

    Use a 2-bit Decoder with its Enable input wired to the write-enable signal and its select to the write address. Wire each decoder output to one register’s Enable. Do not gate the clock; use the enable.

    Check: Exactly one register enable is 1 when write enable is 1.

  3. Add the read ports

    Two 4:1 Multiplexers of width 8, each with the four register outputs as inputs and its own read address as select.

    Check: Changing a read address changes the output at once.

  4. Tie off the clears

    We wired each register’s Clear to a constant 0.

    Check: No input is left floating.

Our sequential test wrote 0x11, 0x22, 0x33 and 0x44 to registers 0 to 3, pulsed the clock with write enable 0 and saw no change, read every register on both ports, and wrote 0xAB to register 2 (F101). It passed all 23 steps.

Download the register file and its vector. See Multiplexers and decoders for those parts.

Common mistakes

  • Gating the clock instead of using enable. Feed every register the same clock and control writing with the enable input.
  • Different clocks in one datapath. Registers that should update together need the same clock.
  • Width mismatch. A register and its bus must have the same Data Bits, or the wire turns orange; see wire colours.
  • Expecting Clear to wait for the clock. It acts at once (F101).
  • Reading right at the edge. The output changes just after a rising edge, so a read in the same step sees the new value.

Frequently asked questions

How do I use a register in Logisim?

Place a Register from the Memory library, set Data Bits, wire the data input, a clock, and the enable. On each rising edge with enable at 1 it stores the data, and its output shows the stored value (F101).

What does the enable (WE) input on a register do?

When it is 0, clock edges are ignored and the register keeps its value. In our test an unconnected enable acted as 1 (F101).

How do I make a shift register in Logisim?

Use the Shift Register part from the Memory library, or chain flip-flops. We did not test the part itself; the section below gives its ports from its help text.

How do I build a register file in Logisim?

Four registers, a decoder whose enable is the write-enable signal and whose outputs drive each register's enable, and two multiplexers for the read ports. Our 4 by 8 version is a download and passed its test.

Why does my register not store the value?

Check that the enable is 1, that the clock actually ticks, and that the clock edge matches the Trigger setting. See the clock guide.

Is there a built-in register file in Logisim-evolution?

Not in the Memory library. A TTL part, the 74670, is a 4 by 4 register file; we did not test it.

Sources

  1. Logisim-evolution user guide: Register, Shift Register, Logisim-evolution project, accessed 9 Nov 2026
  2. Port names and tooltips of Register and Shift Register in 5.0.0, logisim.dev lab data: test-data/lab2-2026-11-09-components/component-port-names-le500.tsv
  3. Register and register file runs, logisim.dev lab data: test-data/FINDINGS.md F101; lab/circgen/build_register.py

Try: , , ,