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.

bit width for addition

Status
Not open for further replies.

sky_above

Member level 2
Member level 2
Joined
May 14, 2018
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
375
What will be the bit size required to do the addition where we add eight bits eight times. How to calculate that bit width in case of addition in binary?
 

Hi,

Can´t you solve it on your own?

take a piece of paper and a pencil.
Then decide if you want signed or unsigned 8 bit representation.
Decide the highest absolute value.
Write this value 8 times among each other
calculate the sum.

The decide which bith width you need for this number.

********
mathematically:
* input_bit_width ( 8 bits)
* add_count (8)

output_bit_width = input_bit_width + log(add_count) / log(2)

Try both and see if both results match.
Decide why they don´t match exactly.

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top