Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

vhdl multiplier 4 bit by 4 bit design with shift registers and adder

Status
Not open for further replies.

HARD_VHDL

Newbie level 1
Joined
Nov 19, 2016
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
7
How can I code this multipler?

4 * 4 signed multiplier with shift register and adder.

Would I get some examples?

Please help me.
 

Hi,

There are many ways to do it:

An easy to understand method:

* To find out sign of result: XOR both input sign bits
* then make both inputs positive ( ==> only 3 bits unsigned)
* multiply both values: 3 bits x 3 bits = 6 bits result
* If the result is negative (output of XOR) then invert the multiplication result
* form a 7 bit signed integer

Just the 3 x 3multiplication:
Let's say ABC are the three bits of the first multiplicator
And XYZ of the second multiplicator:

ABC x XYZ =
Code:
C x 00XYZ
B x 0XYZ0
A x XYZ00
---------
=  RRRRRR


Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top