Memory image generator and checker
Copy these two from the ROM's attribute table. That is 256 words of 8 bits.
v2.0 raw 11 22 33 44 37 42 4d 58 aa bb
Decoded words (first 64)
| Address | Value |
|---|---|
| 0x00 | 11 |
| 0x01 | 22 |
| 0x02 | 33 |
| 0x03 | 44 |
| 0x04 | 37 |
| 0x05 | 42 |
| 0x06 | 4d |
| 0x07 | 58 |
| 0x08 | aa |
| 0x09 | bb |
| 0x0a | 00 |
| 0x0b | 00 |
| 0x0c | 00 |
| 0x0d | 00 |
| 0x0e | 00 |
| 0x0f | 00 |
| 0x10 | 00 |
| 0x11 | 00 |
| 0x12 | 00 |
| 0x13 | 00 |
| 0x14 | 00 |
| 0x15 | 00 |
| 0x16 | 00 |
| 0x17 | 00 |
| 0x18 | 00 |
| 0x19 | 00 |
| 0x1a | 00 |
| 0x1b | 00 |
| 0x1c | 00 |
| 0x1d | 00 |
| 0x1e | 00 |
| 0x1f | 00 |
| 0x20 | 00 |
| 0x21 | 00 |
| 0x22 | 00 |
| 0x23 | 00 |
| 0x24 | 00 |
| 0x25 | 00 |
| 0x26 | 00 |
| 0x27 | 00 |
| 0x28 | 00 |
| 0x29 | 00 |
| 0x2a | 00 |
| 0x2b | 00 |
| 0x2c | 00 |
| 0x2d | 00 |
| 0x2e | 00 |
| 0x2f | 00 |
| 0x30 | 00 |
| 0x31 | 00 |
| 0x32 | 00 |
| 0x33 | 00 |
| 0x34 | 00 |
| 0x35 | 00 |
| 0x36 | 00 |
| 0x37 | 00 |
| 0x38 | 00 |
| 0x39 | 00 |
| 0x3a | 00 |
| 0x3b | 00 |
| 0x3c | 00 |
| 0x3d | 00 |
| 0x3e | 00 |
| 0x3f | 00 |
Nothing you type leaves your browser.
The formats Logisim accepts
The first four rows are the formats this tool writes. All four loaded in our tests (F14). The others are formats the window may offer; we did not test them.
v2.0 raw
11 22 33 44 55 66 77 88
99 aa bb cc dd ee ff 0
v2.0 raw
4*aa 2*bb cc
v3.0 hex words plain
11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 00
v3.0 hex words addressed
0: 11 22 33 44
8: 99 aa
v3.0 hex bytes plain
1122334455667788
Why your ROM is empty or wrong
11 22 33 44
Hex file header not recognized0x11 0x22 0x33
Hex file header not recognizedv2.0 raw
11 22 zz 44
Line 2: "zz" is not valid hex data.v2.0 raw
100 22
(no message)Words wider than 8 bits
Set Data Bit Width to the word size and write one hex word per entry (for example 32 bits, eight hex digits). The generator accepts 1 to 64 bits. We tested a 32-bit ROM file and a 64-bit one read back correctly; we did not test endianness of the bytes format in the window.
Addressed means word addresses
In v3.0 hex words addressed, 8: 99 aa puts 99 at word 8, not at byte 8, and skipped words become 0 (F14).
The ROM reads zeros in a command-line truth table
--load is ignored by --tty table when the circuit has no halt pin, because the table is computed before memories are loaded (F13). Use a clocked circuit with a halt pin, or store the contents in the file with the ROM download above (F12).
Load the file in Logisim
In the window, right-click the ROM or RAM and choose Load Image. We did not capture that dialog. On the command line, put the circuit first, then the option (F16):
java -jar logisim-evolution-5.0.0-all.jar --tty halt cpu.circ --load program.txt
For command-line use see command line; for the component see ROM and RAM. ROM contents are saved inside the .circ file; RAM contents loaded in the window are not saved with it.
What the tool does not do yet
CSV, binary files and the 7-segment preset are not in this version, and nor are the addressed bytes format and the endian variants. Intel HEX and S-record files are not read.