Skip to content

tanishaverma13/esim-debugger-tool

Repository files navigation

eSim Debugger 📊

Overview 📖

The eSim Debugger is a web-based tool designed to assist users in debugging electronic simulation (eSim) netlist files (.cir). It is developed as part of the eSim Semester Long Internship Autumn 2025, Task 6, to enhance the debugging process for circuit design errors.

Features ✨

  • Analyzes uploaded .cir files to detect issues such as invalid units, floating nodes, and duplicates.
  • Provides rule-based fixes and generates corrected netlists and issue reports.
  • Integrates a refined GPT-2 chatbot for interactive troubleshooting, offering relevant suggestions based on detected errors.
  • Displays the analyzed file name until cleared, improving usability and traceability.

Prerequisites 🛠️

  • Python 3.8 or higher
  • Git for cloning the repository
  • Required libraries listed in requirements.txt (install via pip install -r requirements.txt)

Installation 🚀

  1. ✅Clone repo: git clone https://github.com/tanishav13/esim-debugger-tool.git
  2. ✅Install dependencies: pip install -r requirements.txt (includes Flask==3.1.2, transformers==4. 56.1).
  3. ✅Ensure Python 3.8+ and Git are installed.
  • 📝 Troubleshooting: If Flask fails, update pip: pip install --upgrade pip.

Usage 🎯

  1. Run: python app.py
  2. Open http://127.0.0.1:5000/ in a browser.
  3. Upload a .cir file (e.g., malformed_component.cir).
  4. View issues, download fixed netlist/report, or chat (e.g., "invalid unit"). The interface will display the chosen file name until cleared.

Interaction 💬

  • Chatbot: Query with specific issues (e.g., "what is malformed" → "Malformed syntax error—component is invalid. Suggestion: Use R1 1 2 1k").
  • Limit: Responses are generally precise but may occasionally need rephrasing for optimal clarity.
  • Interface: The interface retains the analyzed file name alongside error outputs, aiding in tracking the source of issues until a new file is selected or the retained file is cleared.

Troubleshooting ⚠️

  • Web fails: Ensure port 5000 is free (netstat -an | find "5000" on Windows, lsof -i :5000 on Linux/Mac).
  • Chatbot off: Retrain model with fine_tune.py if responses degrade.
  • File error: Check .cir format matches eSim standards.

Known Issues ❗

  • Chatbot may struggle with highly complex or rare edge cases despite refinement.
  • ML integration pending.

Documentation 📑

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages