Skip to content

Project Structure

Harith-Y edited this page Dec 15, 2024 · 2 revisions

The project consists of the following files:

  • IC.hpp and IC.cpp: Base class IC for all integrated circuits.
  • Wire.hpp and Wire.cpp: Class Wire to connect Pins of ICs.
  • CustomExceptions.hpp: Classes for Custom Error Messages for better understanding.
  • ANDGateIC.hpp and ANDGateIC.cpp: Class ANDGateIC to simulate an AND gate IC.
  • ORGateIC.hpp and ORGateIC.cpp: Class ORGateIC to simulate an OR gate IC.
  • NOTGateIC.hpp and NOTGateIC.cpp: Class NOTGateIC to simulate a NOT gate IC.
  • NORGateIC.hpp and NORGateIC.cpp: Class NORGateIC to simulate a NOR gate IC.
  • NANDGateIC.hpp and NANDGateIC.cpp: Class NANDGateIC to simulate a NAND gate IC.
  • XORateIC.hpp and XORGateIC.cpp: Class XORGateIC to simulate a XOR gate IC.
  • NORGateIC.hpp and XNORGateIC.cpp: Class XNORGateIC to simulate a XNOR gate IC.

Overall Structure:

DigitalLogicSimulator/
├── include/
│   ├── IC.hpp
│   ├── CustomExceptions.hpp
│   ├── ANDGateIC.hpp
│   ├── ORGateIC.hpp
│   ├── NOTGateIC.hpp
│   ├── XORGateIC.hpp
│   ├── NANDGateIC.hpp
│   ├── NORGateIC.hpp
│   ├── XNORGateIC.hpp
│   └── Wire.hpp
├── src/
│   ├── ANDGateIC.cpp
│   ├── ORGateIC.cpp
│   ├── NOTGateIC.cpp
│   ├── XORGateIC.cpp
│   ├── NANDGateIC.cpp
│   ├── NORGateIC.cpp
│   ├── XNORGateIC.cpp
│   └── Wire.cpp
├── tests/
│   ├── test_input.txt
│   ├── expected_output.txt
│   ├── ICWireTest.cpp
│   ├── ANDGateICTest.cpp
│   ├── ORGateICTest.cpp
│   ├── NOTGateICTest.cpp
│   ├── XORGateICTest.cpp
│   ├── NANDGateICTest.cpp
│   ├── NORateICTest.cpp
│   ├── XNORGateICTest.cpp
│   └── test_main.cpp
├── .github/workflows
│   └── build.yml
├── main.cpp
├── CMakeLists.txt
├── Makefile
└── README.md

Clone this wiki locally