r/logisim • • Sep 22 '26

Simple 4 bit CPU

Post image
317 Upvotes

This is the first CPU that I have built of this caliber. Specs are: 3 general purpose registers, 256 bytes of ram, 256 bytes of program memory, 8 bit program counter, 8 bit memory pointer, 5 bit OP code with 23 instructions, and overflow, carry and zero flags. This took me roughly 50 hours in total over the course of a month to put together. Overall I am very proud of myself. What are some simple programs that I should write for it?


r/logisim • • Jun 05 '26

Made my first 8-bit ALU in Logisim! Next steps: designing the rest of the CPU and then building it IRL on breadboards!

Post image
285 Upvotes

[group 4b][variant 4b]

0x0_ = MISC

OpcodeNameDescription
0x00NOPNo operation
0x01HLTHalt CPU execution
0x02INTTrigger software interrupt
0x03CLCClear carry flag
0x04SECSet carry flag
0x05CLIClear interrupt enable flag (disable interrupts)
0x06STISet interrupt enable flag (enable interrupts)

0x1_ = MOV

OpcodeOperandsDescription
0x10reg, regCopy value from register to register
0x11reg, [mem]Load value from memory address into register
0x12[mem], regStore register value to memory address
0x13reg, #immLoad immediate value into register
0x14[mem], [mem]Copy value from memory address to memory address
0x15[mem], #immStore immediate value to memory address
0x16reg, [reg]Load value from address held in register (pointer read)
0x17[reg], regStore register value to address held in register (pointer write)

0x2_ = ALU

OpcodeNameDescription
0x20ADDAdd register to accumulator
0x21ADCAdd register to accumulator with carry
0x22SUBSubtract register from accumulator
0x23SBBSubtract register from accumulator with borrow
0x24ANDBitwise AND with accumulator
0x25ORBitwise OR with accumulator
0x26XORBitwise XOR with accumulator
0x27NOTBitwise NOT of accumulator
0x28CMPCompare (subtract without storing result, sets flags only)
0x29INCIncrement register by 1
0x2ADECDecrement register by 1
0x2BSHLShift left, MSB goes to carry, LSB set to 0
0x2CSHRShift right, LSB goes to carry, MSB set to 0
0x2DROLRotate left through carry, MSB goes to carry, carry goes to LSB
0x2ERORRotate right through carry, LSB goes to carry, carry goes to MSB

0x3_ = JUMP

OpcodeNameDescription
0x30JMPUnconditional jump to address
0x31JZJump if zero flag set
0x32JNZJump if zero flag clear
0x33JCJump if carry flag set
0x34JNCJump if carry flag clear
0x35JSJump if sign flag set (result negative)
0x36JOJump if overflow flag set

0x4_ = STACK/CALL

OpcodeNameDescription
0x40PUSHPush register onto stack, decrement SP
0x41POPPop value from stack into register, increment SP
0x42CALLPush PC onto stack, jump to address
0x43RETPop PC from stack, return to caller
0x44IRETPop PC and flags from stack, return from interrupt handler

Github repo with all docs and files: https://github.com/mrFavoslav/8bit-cpu-MESAx8
The 8-bit ALU might not work perfectly at the moment. I recently moved some parts of the design around, so there's a good chance a few wires got messed up or misaligned in the process. Any feedback or bug catching is highly appreciated!

I'll be posting my progress here and on https://www.favoslav.cz/blog/


r/logisim • • Dec 21 '25

I need help ! Building 8-bit cpu

Post image
233 Upvotes

So hey am computer science student and in the winter vacation i decided to build8-bit computer like smlal that can do simple stuff and then i wanted to use assembly language to code program in it (simple game or program) but i couldn't find a good tutorial i have this tutorial but he build everything from logic gates no sub components so can someone guide in right direction here is my ALU i build yesterday (dunno if it even work correctly)


r/logisim • • 7d ago

day 1 of building a GPU (32 bit )

Thumbnail
gallery
225 Upvotes

so today i finally started work on a 32 bit GPU i started with a single core multiple thread architecture built a 32 bit adder and made it in such a way it can perform the same calculation 32 times but i have one problem how do i even shrink the rectangle which forms when i take it as a circuit block like it shows about 97 inputs and 32 outputs if anyone can tell how do i shrink it also i have a few handmade notes i made them before i tried it out in logisim


r/logisim • • Feb 03 '26

(finished working ) 32 bit proccessor

91 Upvotes

Hello everyone,
This is a processor design project built using Logisim to explore computer architecture at the hardware level.


r/logisim • • Feb 17 '26

Bitcoin miner in logisim evolution

Post image
72 Upvotes

r/logisim • • Apr 03 '26

My 8 bit calculator that with works with base-10

Post image
70 Upvotes

The thing sucks and there is a ton of unnecessary wiring, but i'm proud of it, :).


r/logisim • • Aug 15 '25

Finished (working) 8-bit CPU design on Logisim

65 Upvotes

After 15+ days of painful debugging it's finally done. The initial design was based off by 'But how do it know' book by J. Clark Scott and an Udemy serie by Ross McGowan.

However after the first few easy topics i went and designed the rest of it to my liking including ALU,RAM,Clock signal generator,Hardwired Control unit and loading and pending mode FSM devices.

Since my RAM writes were asynchronous it was extremely painful to port the contents of prebuilt RAM onto my (internal) RAM. I had to create 2 FSMs for managing the process.

The CPU supports ALU operations,Data operation,Loading and writing from/to RAM,Register jump, Jump operation,Conditional jump operation,Clear flag operation.


r/logisim • • 6d ago

DAY 3 OF BUILDING A GPU(32bit) FROM SCRATCH AND I HAVE AN UPDATEE

Thumbnail
gallery
54 Upvotes

i finally built the basic rasterizer pipeline and linked it with the SIMT module i built earlier so now it takes the vertices from the simt module and parses it to the rasterizer so the rasterizer can figure out the color and the dimensions :D i built the rasterizer in C and the SIMT in verilog


r/logisim • • Feb 13 '22

A 32-bit RISC-V based computer built from scratch in Logisim.

Post image
43 Upvotes

r/logisim • • Feb 15 '26

it's like watching a child grow 🥹

38 Upvotes

r/logisim • • Dec 20 '20

My Mandelbrot Circuit works!

Thumbnail
gallery
37 Upvotes

r/logisim • • Apr 11 '20

If you are at rage and want to say something bad, I would reccomend looking at those wonderful mathematical patterns, i was able to create in LOGISIM-evolution. It's really calming.

Post image
32 Upvotes

r/logisim • • Jun 21 '23

1 bit full adder made using Transistors

Post image
31 Upvotes

r/logisim • • Jul 07 '25

16 Bit Computer in Logisim with 3D Graphics

Thumbnail
youtube.com
27 Upvotes

I've built this 16 bit cpu with 64K of addressable memory. It is connected to multiple devices to help it run more quickly and take input from the user. One of those devices is a gpu with the ability to draw rectangles, lines, and rasterize triangles in three dimensional space.

Alongside the logisim project is a programming language with a php based compiler. This programming language is largely influenced by C with if statements, while loops, pointer arithmetic and in-line assembly.

I've put together a demo of the project in the video above and posted a link to the GitHub project.
Let me know if you think this kinda thing is interesting or have any questions on how it works.

https://github.com/TheDanielPBerry/Logisim-CPU-and-Compiler/tree/main


r/logisim • • Jan 11 '21

"Digital" - a Logisim alternative

27 Upvotes

It occurred to me that I haven't seen a lot of discussion here about Helmut Neemann's Digital project, which is a credible and useful alternative to Logisim:

https://github.com/hneemann/Digital

He goes into some explanation of the motivation for it and the differences on that page. I really would suggest that anyone still using Logisim at least give it a look.


r/logisim • • Oct 25 '21

I implemented risc-v in logisim. Here it is running a Fibonacci program written in C

25 Upvotes

r/logisim • • Sep 10 '22

My Logisim RISC-V Computer executing Dijkstra's Shunting Yard algorithm written in C to evaluate single digit arithmetic expressions.

24 Upvotes

r/logisim • • 3d ago

Help Needed!

Thumbnail
gallery
23 Upvotes

I just wanted to make a simple 4-bit number adder by joining 4 1-bit ones, but the wiring in this app is rrally confusing. I don't understand the blue wires here, and tried everything to make them work


r/logisim • • Oct 22 '26

Logisim alternatives?

23 Upvotes

Logisim absolutely refuses to open on my laptop, so I've been looking for alternatives that work equally well. Logisim.app on web doesn't have a lot of functionalities, and I've been on a hunt for alternatives like 'digital' that don't have the tools I want.

Anyone who could help? It would be so appreciated.


r/logisim • • Dec 20 '25

Why isn't my 8-bit ALU not working

Post image
23 Upvotes

Operations
ADD (All good)

Sub
(Negative result (V flag is on)
Signed Overflow (V flag is Off when it should be On)
Borrow , (V flag is On when it should be Off)

AND

mixed bits (Wrong output , C flag On when it should be off)
All ones (Correct output , C flag On when it should be off)
Result is zero(Wrong output , N light up , Z not light up)
Complementary bits(Wrong output , N light up , Z did not light up)

OR (All good)

XOR
Mixed bits( Wrong output , C and N on)
Same values = zero ( Wrong output , C and N on)
Inverted values (Wrong , N flag off)
XOR with zero = same ( Good , no error)

SHL
Doesn't shift bit

SHR
Wiring error (I think)


r/logisim • • Sep 19 '25

What am I doing wrong?

Post image
23 Upvotes

I'm learning about rom, ram, computer architecture etc as a hobby

This rom have 8 bit values. They're structured to have it's first 3 bits as a command indicator, and the last 5 as parameter for that command.

The first command I tried to implement, is one for jumping to the indicated address on the rom.

But when I connect the command bar (right side of the diagram) to the address bar of the rom (left side of the rom, text on image) the circuit turns red indicating recursiveness

If I replace the command bar -> mux connection for a button -> mux, it works. (indicated by text on the image)

How can I send this signal?

Thanks


r/logisim • • Jul 02 '26

Help with this

Post image
21 Upvotes

What exactly is wrong with the input A? I am new to logisim and it would be really helpful ig some one guides me out of this. i was building 8 bit ALU (yeah iam very VERY beginner) and A is a 8 bit pin. But when i connected it to the previously made Full adder circuit, it just does not take it in or what ever this is called.


r/logisim • • Oct 16 '24 Take My Silver

I designed an 8-bit computer, called it the acx-8 structure

21 Upvotes

r/logisim • • Oct 18 '26

i have a problem with a 3 bit full adder i build

Thumbnail
gallery
20 Upvotes

i have a problem with a 3 bit full adder i build, it dont add the bit from the right side plus de carry in, instead of displaying 10 its 00 and i cant figure why its failing, its from a game called LOGIC ARROWS