Imported from RoshwinNiketh/coa-booth-algorithm-simulation (
AGENTS.md). Install upstream withnpx skills add RoshwinNiketh/coa-booth-algorithm-simulation. Copyright stays with the author.
Project Instructions
This is an educational Computer Organization and Architecture project.
Priority order:
- Algorithmic correctness
- Beginner-friendly teaching
- Clear simulation
- Simple maintainable code
- Visual polish
The project implements radix-2 Booth's algorithm for signed two's-complement multiplication.
Rules:
- Keep algorithm logic separate from React UI logic.
- Do not simplify away intermediate Booth states.
- Every simulation step must be explainable to a beginner.
- Preserve fixed-width signed arithmetic correctly.
- Use the width-safe n+1-bit accumulator implementation.
- Do not add a backend, database, authentication, or unrelated features.
- Run tests and production build after significant changes.