Skip to content

A small program that multiplies two 16-bit numbers using 16 1-bit ALUs

Notifications You must be signed in to change notification settings

ecast96/16-Bit-ALU-Multiplier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

16-Bit ALU Multiplier

Made with Visual Studio 2017

Program uses Booth's multiplication algorithm for unsigned numbers.

Values are stored in vectors of boolean values:

  • MD = Multiplicand
  • MQ = Multiplier
  • AC = Accumulator
  • PR = Product

0th index in vector is 0th spot in 16-bit number.

Counter is used to show steps in algorithm.

How to Run

  • Compile and run main.cpp individually using C++11
  • Open Visual Studio project file in folder SimulationProgram_CSCI113 and compile/run

How to input values

In main:

  • Change vector MD's values to any 16-bit number for the Multiplicand
  • Change vector MQ's values to any 16-bit number for the Multiplier

Sample Output

About

A small program that multiplies two 16-bit numbers using 16 1-bit ALUs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages