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.

solution to the overflow problem

Status
Not open for further replies.

kannan2590

Member level 4
Joined
Sep 1, 2012
Messages
77
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
india
Activity points
2,321
so what is the solution to the overflow problem.can anybody give the solution for this problem.which adder can solve the problem.i have used '+' sign for addition and '*' for multiplication in vhdl program.
 

Instead of repeating unclear questions about "overflow" you should better explain your application.

From some hints in previous posts, I assume you have something like a FIR filter

y = Σa(n)*x(n)

As already mentioned by others, no overflow will occur in an integer multiplication. When summing indidual product terms, you can avoid an overflow by assigning sufficient width to the accumulator. Depending on your application, you possibly want to resize the result by skipping most significant bits. In this case, you need to apply saturation logic, limit the value to the highest or lowest number that can be represented by the resized value.

A comfortable way to perform number scaling, saturation and more is to refer to the VHDL fixed point packages. My suggestion is however to solve to implement the signal processing chain at least once with generic VHDL.
 
FvM, your reply certainly encapsulates more patience than mine would have. ;) The reply I had in mind was "problem undefined therefore solution undefined". Or alternatively "no stated problem, no solution required, problem solved".

@kannan2590:
If you require help with something, please go to the effort of making a clear description of what the problem actually is. Our forum supply of mind readers is running a bit low at the moment...
 
  • Like
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
Lol flibble and FvM. My answer would be:

to fix overflow - add more bits (or take the rounding error).
 
  • Like
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top