The digit-sim project is a digital circuit simulation toy that allows users to simulate both combinational and sequential logic circuits. It provides a simple and weak framework for modeling basic logic gates, multiplexers, decoders, flip-flops, latches and some popular MSIs.
This file contains functions to simulate basic logic gates.
This file contains functions to simulate combinational logic circuits using basic logic gates.
This file is designed to simulate clock signal in sequential logic circuits.
This file is designed to simulate sequential logic circuits.
The main entry point for the application.
This folder contains header files defining basic types and functions.
This folder contains some examples.
The CMakeLists.txt contains the build instructions for the project. It specifies how to compile the source files and link them into an executable.
To build the project, navigate to the project directory and run the following command:
cmake . build
This will compile the source files and create the executable.
After building the project, you can run the simulation using the following command:
./build/digit-sim
Note: This project is made just for fun.