Logic gates & circuits simulator
All compiled packages are available in "releases" section.
Requirements:
- Modern C++ compiler supporting C++14,
- Make and CMake,
- (Linux)
xorg-dev
, - (Windows) FreeGLUT,
- Development version of OpenGL version 1.2+.
More details available in
dependencies/README.md
.
git clone "https://github.com/IIUWR17/lista-11-c5.git" logicon && cd logicon
# git checkout develop # to build development version (may be unstable)
mkdir build && cd build
cmake -H.. -B. -G "CodeBlocks - Unix Makefiles"
cmake --build . --target logicon --
make install
To utilize multiple cores of processor, parameter -j X
(where X = cores to use) can be added
to improve build speed.
In project's root folder, directory dist
will be created
with redistributable package for your platform.
Application lets user set values on free (not connected) inputs of gates in
circuit and read values of free outputs to/from file. These files follow format
(and should be saved with *.json
extension):
[
{
"gblock_id": 1,
"port": 0,
"state": 1
}
]
GBlock's ID and port's index can be seen when hovering desired gate and it's port. State is 1 when ON and 0 when OFF.
(in alphabetical order)