Digital-Logic-Sim icon indicating copy to clipboard operation
Digital-Logic-Sim copied to clipboard

[feature request] ability to import logic gate representation

Open Ponali opened this issue 1 year ago • 0 comments

it would be nice to be able to import a text representation of logic gates, so it can later be turned into its own chip for abstraction.

in the "Exploring How Computers Work" series made for this, when talking about 7-segment (or 8?) displays, there has been a moment for a program called "Logic Friday". i installed this program, put a truth table and converted it into a logic gate representation. i can use the diagram to reconstruct it in the simulation, but it will take a lot of time to do so, and the diagram is veery complicated '._.

here's what the text representation looks like to me:

F0 = 0;
F1 = A' B C  + A' B' C  + A B C  + A B D' + A' B C' D + B' C' D' + A B' C'  + A B' D';
F2 = A' C' D' + A' B' D + A B C' D + A' B' C  + A B' C'  + A B' D';
F3 = A' B' D + A' B C  + A' B D' + A B C' D + A B' C D + A' B C' D + B' C' D' + A B' C'  + A B' D';
F4 = A' C D' + A B C' D + A B' C D + A' B' C  + A B D' + A' B C' D + B' C' D' + A B' C' ;
F5 = A' C D' + A B C' D + A B' C D + A B C  + A B D' + B' C' D' + A B' D';
F6 = A' B D' + A B' C D + A B C  + A B D' + A' B C' D + B' C' D' + A B' C'  + A B' D';
F7 = A' B D' + A B C' D + A B' C D + A' B' C  + A B C  + A' B C' D + A B' C'  + A B' D';

if you're wondering why i'm not copying from the video with the version with Two's Complement, that's because i wanted to make my own version using hexadecimal so i can save some time.

i'm also asking this because reconstructing everything manually is a pain in the ass to do because of common human errors which you can't notice, and the board for every logic gate being too small.

Ponali avatar Apr 13 '24 11:04 Ponali