cas-mls / cpu2

This is a simple CPU architecture that I used to verify that I understand how to use FPGAs, VHDL, and write a CPU using Vivado on Arty S7. This is my largest project to date. Under 1000 Lines of Code.
MIT License
0 stars 0 forks source link

Implement fixed (integer) Multiply and Divide #7

Open cas-mls opened 10 months ago

cas-mls commented 10 months ago

Implement fixed Multiply and Divide.

cas-mls commented 3 months ago

Analysis:

VHDL can multiply/divide/modulo signed integers using the *, /, mod operators. It should be simple to add to the instructions.

The following instructions with Flag 0: 10001 - Integer Multiply. 10011 - Integer Divide. 10101 - Modulo