Share your repls and programming experiences

← Back to all posts
An 8-bit CPU made of logic gates!
CSharpIsGud (1070)

Here is a mini project, a processor made in an external circuit simulator.
It only supports 4 instructions at the moment, so the only thing it can really do is add two constants together and display it.

Oh no, did @CSharpIsGud finally make a simple project?!

Sadly no, once you take a look at it you will see why I decided to post so early rather than keep working on it longer.

Right now it has a simple program to add 4 + 4 and display it, but you can probably somehow manage to enter your own (the ROM chip) and then have it run that when you toggle the reset input.

I'll make a V2 later on with more instructions and better laid out, since I knew nothing of circuits until now.

(Also you can press F to go into full screen mode)

cjmatthy09 (52)

make sure to toggle Enable Clock or the cpu won't run

miclbratsiankov (1)

I have no clue what this is but seems cool.

zplusfour (916)

this is completely awesome!

programmeruser (615)

Is this even a programming project?
Nice, if you want to learn how to do this you could try nand2tetris or

Whippingdot (678)

well of course microsoft family safety decides to block this out of everything on the internet :(

Also an updoot just for this


Whippingdot (678)

what is this? @CSharpIsGud

Also, if you are free, do you want to chat soon?

I want to ask you if you can teach me C++ properly, cause lots of people hate it like fuzzy and I want to know your opinion on it, and you are very experienced in C++ so if you teach me I will probably learn better.

Also, I have some personal questions to ask you... Like based on personal things you told me (about your teachings and all that)

CSharpIsGud (1070)

@Whippingdot It's a cpu made out of a logic gates and stuff, theoretically if you have the right parts you could physically build it as well.

And yes

Whippingdot (678)

kk invite me to a repl - if I ever see you online we can talk through chat, else we shall talk through threads because of timezones. @CSharpIsGud

fuzzyastrocat (1867)


theoretically if you have the right parts you could physically build it

awkwardly stares at the piles of components on my desk

MocaCDeveloper (712)

I was getting into circuits for a project I and @realTronsi were going to do together.

This stuff really grabs my attention. Not only do you have to understand computer logic, but you also have to actually create your own logic as to what you want to have happen.

Very interesting. I too will be in your place, perhaps very soon.

fuzzyastrocat (1867)

Cool! An interesting project might be to try making your own circuit simulator (I know that's a tall task but just a thought)
Digital is trash tho, cool cats use analog

CodingEpic (19)

The canvas looks like a inline frame.
You might wanna fix that

CSharpIsGud (1070)

@EpicCoding1 it is, it's an embed to a circuit sim site

ruiwenge2 (1107)

@CSharpIsGud add the frameborder="0" attribute to the iframe tag to remove the frame

RohilPatel (1594)

Eww heck no; use css and not html attributes @ruiwenge2

CodingEpic (19)

@RohilPatel It doesn't really matter

Writerfrighter (25)

NO clur but looks poggers

InvisibleOne (3206)

Wow, this is really cool.