cv-frontend-vue icon indicating copy to clipboard operation
cv-frontend-vue copied to clipboard

Added Subtractor Component to misc menu

Open shivamsahu-tech opened this issue 8 months ago • 2 comments

Fixes #516 - Add Subtractor Module in Misc Menu

Summary of Changes:

  • Implemented Subtractor.js in v0/src/simulator/src/modules.
  • Registered the Subtractor module in moduleSetup.js (v0/src/simulator/src/moduleSetup.js).
  • Updated metadata.json (v0/src/simulator/src/metadata.json) to include the Subtractor.
  • Added relevant images for Adder & Subtractor in:
    • v0/src/assets/img
    • v0/src/simulator/src/img

Screenshots & Testing:

Screenshot:

Screenshot

🎥 Testing Video: Watch here

Additional Notes:

✔ Code follows project structure and conventions.
✔ Fully tested to ensure correct functionality.
✔ Please check "Allow edits from maintainers" for any required refinements.

Looking forward to your feedback! 🚀

Summary by CodeRabbit

  • New Features
    • Introduced a new simulation element, "Subtractor", which performs subtraction operations with configurable bit width and borrow handling.
    • Integrated the new element into the simulation environment, expanding available circuit components for enhanced simulation capabilities.

shivamsahu-tech avatar Mar 09 '25 16:03 shivamsahu-tech