Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Digital Logic Sim

​A minimalistic digital logic simulator · By Sebastian Lague

WHERE IS AND !

A topic by Bolimart created Apr 13, 2025 Views: 664 Replies: 10
Viewing posts 1 to 11
(+2)

I can't find and, or and all the other essential gates... I only have nand... I'm on the 2.0.3

(+1)

all logic gates can be made using NAND

(+1)

Ah cool thanks i will try by myself

(+1)

You can create a not gate from connecting both the inputs to one input.

And an and gate by connecting that not gate to the output.

Every other essential gate can be made from and or a not gate.

You can make a not and an or gate just with nand gates:

 NOT GATE:  A NAND A.

OR GATE: (A NAND A) NAND (B NAND B)

I am pretty accustoned to making all gates from NANDs from other digital logic sims. If there's a way to export my gate designs  would anybody want to use them? I'll make them look tidy.

Here is how you can make the basic NOT and AND gates.

NOT(A) is A NAND A
A AND B is NOT(A NAND B)

(+1)
  1. 2 Inputs 
  2. 2 NAND 
  3. 1 Output

Inputs go into NAND(A) then the Output of NAND(A) goes into NAND(B) lastly the Output of NAND(B) goes into the Output and that gives you an AND gate.

I did that technique with the NOT gate

Use the library, there u can get all of the stuff.

here is a simple diagram on how to make the AND, OR and NOT gates: https://itch.io/t/4764236/cant-find-the-and-not-and-or-gates-here-is-how-you-can...