1 / 6

VHDL Project III: Two’s Complement Array Multiplier

VHDL Project III: Two’s Complement Array Multiplier. Slides Available at: www.pages.drexel.edu/~mjm46. Matthew Murach. Today’s Agenda. Design a two’s complement device this is related to homework two and will be collected.

Jims
Télécharger la présentation

VHDL Project III: Two’s Complement Array Multiplier

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VHDL Project III:Two’s ComplementArray Multiplier Slides Available at: www.pages.drexel.edu/~mjm46 Matthew Murach

  2. Today’s Agenda • Design a two’s complement device this is related to homework two and will be collected. • Discuss the implementation of this device with your array multiplier. • Discuss possible review sessions for next Wednesday’s midterm.

  3. Two’s Complement Method 1 • Two’s complement operation is performed in the following manner. 0101 (5)  1010 + 1  1011(-5) 0111 (7)  1000 + 1  1001(-7) • Likewise the reverse is also true 1011 (-5)  0100 + 1  0101 (5) 1001 (-7)  0110 + 1  0111 (7)

  4. Two’s complement (cont) • Note that two’s complement uses the following procedure: 1.) Invert the bits 2.) Add one to the result • There exists another algorithm that computes the two’s complement.

  5. Booth’s algorithm • In Booth’s algorithm, we locate the first 1 starting from the least significant bit (LSB) • Then we invert the rest. 0111 (7)  1001 (-7) 0100 (4)  1100 (-4) 0100 (4)  1011 + 1  1100 (-4)

  6. Guidelines for two’s complement • Your two’s complement design should operate with any size vector. That is to say that you must have a generic for the size of the vector. • Your device should have the following signals control logic, an input vector, and an output vector. Note that you do not have to make your two’s complement synchronous.

More Related