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.

Multiplier question on positive and negative values

Status
Not open for further replies.

nemolee

Full Member level 3
Joined
Dec 28, 2004
Messages
155
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,467
Multiplier with sign bit

Dear All,

Please give me a good advice.
The two input data may be positive value or negative value.
How should I do? If the input data of this multiplier can be negative, it can only handle positive value.

Thanks.
 

Multiplier with sign bit

Your question is unclear. If you want to multiply two signed values, then use a signed multiplier.
 

Re: Multiplier with sign bit

I guess ur worry is simple .. maybe u think that signed Multipliers only accept negative inputs , right ? ..
If this is what I understood from ur unclear message , then the answer is : Don't worry .. signed multipliers are design so as to handle all combinations of inputs :
1- Positive with Positive
2- Positive with negative
3- Negative with Negative

So, anything else ?
 

Re: Multiplier with sign bit

It depends what your are doing. If you design a hardware to implement the multiplier, you should consider this sign multiplication problem. However, VHDL or Virelog should handle it unless you really want to optimize the multiplier design by hand. If you use DSP to program, DSP should handle the sign multiplication. If you use fractional mode, TI DSP could left shift the result by 1 bit.
 

Re: Multiplier with sign bit

signed multipier can handle all signed or unsigned cases,you can find such result in some computer arithmatic books.
 

Re: Multiplier with sign bit

It should be careful on the signed and unsigned number. For example, if 16 bits unsigned is used, 1000,0000,0000,0000 denotes 65536. However, for signed, it denotes -32768. You should not assume that the signed operation will handle unsigned operation automatically.
 

Re: Multiplier with sign bit

take care that if u multiply 2 signed numbers, the result will contain 2 sign bits ..
 

Re: Multiplier with sign bit

first of all ur question is not clear.if u want to multiply two numbers in any assembly language ,it depends upon the processor(ie whether 8085 or 8086).
so plz resend the question with clarity.
 

Re: Multiplier with sign bit

omara007 said:
take care that if u multiply 2 signed numbers, the result will contain 2 sign bits ..

what do u mean with that? really couldnt get it.

/cedance
 

Multiplier with sign bit

u can use design method of BOOTH multiplexer. it is for multiplex of signed datas.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top