Skip to content

Logic circuit design and simulation tool built with Java Swing, supporting circuit creation, modular subcircuits, and truth table analysis.

Notifications You must be signed in to change notification settings

m-ahmad-butt/LogiSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogiSim - FAST NUCES

Project Overview

LogiSim is a Java Swing-based logic circuit simulator developed as a semester project for Software Construction and Development.
The application allows users to create, visualize, and simulate digital logic circuits using standard components such as logic gates and connectors.
It supports multiple circuits per project, sub-circuits, and provides truth table analysis for designed circuits.

University Details

University: FAST National University of Computer and Emerging Sciences
Campus: Lahore
Semester: 5th Semester, BS Software Engineering
Course: Software Construction and Development
Instructor: Dr. Farooq Ahmed

Contributors

Tech Stack

  • Language: Java
  • Framework: Swing (GUI), JUnit
  • Build Tool: Maven, ANT
  • Version Control: Git & GitHub

Features

  • Project Management

    • Create, save, and load circuit projects
    • Support for multiple circuits and sub-circuits
  • Circuit Design

    • Component palette with logic gates (AND, OR, NOT.)
    • Connect components using wires/connectors
    • Adjustable layout and component positioning
    • Export circuit diagrams to PNG
  • Simulation

    • Run simulations by providing input values
    • Observe circuit outputs dynamically
    • Generate and analyze complete truth tables
  • User Interface

    • Intuitive and easy-to-use Swing-based GUI
    • Layered architecture separating UI, logic, and data

Screenshots

Main Circuit Fig: Main_Circuit.png

Circuit 2 Fig: Circuit_2.png -

Multiple Circuits Fig: multi_circuits.png

Simulation Fig: Simulate.png

How to Run

Prerequisites

Make sure you have Java Development Kit (JDK) and Apache Maven installed and properly configured in your system PATH.

You can verify installations by running these commands in your terminal:

java --version
mvn --version
ant -v

Expected version:

java 24.0.2
Apache Maven 3.9.11
Apache Ant(TM) version 1.10.15

Steps to Run

  1. Clone the repository:

    git clone https://github.com/A-git-nerd/LogiSim.git
  2. Open in IDE:

    • Open the project in IntelliJ IDEA or Visual Studio Code.
    • Ensure Maven dependencies are downloaded automatically.
  3. Build and Run:

    • Run the project from your IDE or use the following Maven commands:

      mvn compile
      java -cp target/classes org.scd.Main

© This project is developed as an academic exercise for the Software Construction and Development course. All gate PNGs used in this project are for educational purposes from Wikipedia.

About

Logic circuit design and simulation tool built with Java Swing, supporting circuit creation, modular subcircuits, and truth table analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages