Menu

Theme

Component reference · Reference · CHECKED ON 5.0.0

The Logisim RAM: wiring, data bus modes and what changed in 5.0.0

The default RAM in Logisim-evolution 5.0.0 has an address input, a data input and a separate data output. In our test it stored the data at the address on a rising clock edge while Store was 1, and read it back on a rising edge while Load was 1. Data bus implementation switches between separate buses with latched output, one bidirectional bus, and separate buses with controlled output.
FOR
CPU builders and architecture students
CHECKED
11 Nov 2026
Checked against Logisim-evolution 5.0.0 on 1 machines
On this page

Wire a RAM in five steps

  1. Place a RAM from the Memory library.
  2. Connect the address (A), the data input (DI) and the data output (DO).
  3. Connect Store and Load: they are separate pins in the default mode.
  4. Connect a clock to the clock pin.
  5. Write, then read: Store = 1 with a rising edge, then Load = 1 with a rising edge.
RAM ports with the tooltips 5.0.0 shows (F44).
AddressinAddress: location accessed in memory
DataoutData: value loaded from address
InputinInput: value to be stored at address
LoadinLoad: if 1, load memory to output
StoreinStore: if 1, store input to memory
ClockinClock: memory value updates on rise from 0 to 1
circ-ram-basic · mainscroll to see all
8888bAa8bDIdiLoadloadStorestoreCLKclkRAMadiloadstoreclkdo8bDOdo
A default RAM with pins A, DI, Load, Store and CLK, and output DO. CC BY 4.0 · SHA-256 ab1772324302
Describe this circuit

Components: Input pin A; Input pin DI; Input pin Load; Input pin Store; Input pin CLK; RAM 1; Output pin DO.

  • Input pin A connects to RAM 1 (net A, a), 8 bits wide.
  • Input pin DI connects to RAM 1 (net DI, di), 8 bits wide.
  • Input pin Load connects to RAM 1 (net Load, load).
  • Input pin Store connects to RAM 1 (net Store, store).
  • Input pin CLK connects to RAM 1 (net CLK, clk).
  • RAM 1 connects to Output pin DO (net do, DO), 8 bits wide.
Fifteen steps in order (the RAM keeps its contents between steps). DO is U (floating) until the first read. The row with Load and Store both 1 shows the new value (0x11) at the output.
#ADILoadStoreCLKDO
0x30xab010U
0x30xab011U
0x30xab000U
0x30x0100U
0x30x01010xab
0x30x01000xab
0x40x01010x0
0x40x00000x0
0x40x00010x0
0x30x01000x0
0x30x01010xab
0x30x111100xab
0x30x111110x11
0x30x111000x11
0x30x01010x11

Download circ-ram-basic.circ.

Choose the data bus mode

The attribute is called Data bus implementation. Its options in 5.0.0 are One bidirectional data bus, Separate data buses with latched output and Separate data buses with controlled output (strings in the 5.0.0 table, F73). Classic 2.7.1 called it Data Interface, with One synchronous load/store port, One asynchronous load/store port and Separate load and store ports (strings in the 2.7.1 jar).

  • Latched output (the mode we tested): the output keeps the last loaded value.
  • Bidirectional bus: one data port for reading and writing. Stop other drivers while the RAM drives, using controlled buffers.
  • Controlled output: according to the project notes, new in 5.0.0, the output floats when the load control is off, so several RAMs can share a bus. We did not test it.

Stop the RAM from writing

In our test writes happened only on a rising edge with Store at 1. Keep Store at 0 when you do not want to write, and do not gate the clock with AND logic (Clock and simulation). We did not test floating Store, the Trigger options or the Read behavior attribute.

Line enables: a 5.0.0 change reported by the project

Contents: start, clear, load and save

Right-click a RAM for Edit Contents, Clear Contents, Load Image and Save Image. From the command line, --load fills a RAM or ROM and --save writes a RAM (see command line). Image formats and their errors are explained on ROM and loading memory contents.

Bigger memories and dual port

The Memory library also has a Dual Port RAM. We did not test it, or the address-width limits, so this page gives no figures for them.

Common mistakes

  • Store or Load wired to the clock instead of a control signal.
  • Load left at 0, so the output never shows a value.
  • A shared bus without tri-state: red wire, E (wire colours).
  • Expecting an unwritten address to be anything but 0.

Version differences

Feature2.7.15.0.0
Bus attribute name2.7.1: yesData Interface5.0.0: yesData bus implementation
Default RAM ports2.7.1: yes6 ports, bidirectional data5.0.0: yes6 ports, separate data in and out
Controlled-output mode2.7.1: nonot in 2.7.15.0.0: untestedper the project notes

See also all components.

Frequently asked questions

How do I read and write a Logisim RAM?

Put the address on A and the data on the input. Set Store to 1 and give a rising clock edge to write. Set Load to 1 and give a rising edge to read. In our test the output was floating until the first read and held its value afterwards (F67).

How do I stop the RAM from writing?

Keep Store at 0. A write needs Store = 1 and a rising edge in our test. Do not gate the clock.

What is the difference between the data bus modes?

Separate buses use one input and one output. The bidirectional mode uses one shared data port. The controlled-output mode is new in 5.0.0 according to the project notes. We tested only the default mode.

What value does an unwritten address read?

0, in our test (F67).

Why does my RAM have no chip select?

The 5.0.0 default RAM has six ports with no chip-select name in our port data. Use Load and Store, or select the RAM with a decoder.

Sources

  1. RAM sequence test on Logisim-evolution 5.0.0, logisim.dev lab data: test-data/lab5-2026-11-11-components2/vectors/ram.vec.txt, src/content/circuits/circ-ram-basic

Try: , , ,