cv-frontend-vue
cv-frontend-vue copied to clipboard
Added Subtractor Component to misc menu
Fixes #516 - Add Subtractor Module in Misc Menu
Summary of Changes:
- Implemented
Subtractor.jsinv0/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/imgv0/src/simulator/src/img
Screenshots & Testing:
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.