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 Signed math Overflow equality

Status
Not open for further replies.

dareon

Newbie level 5
Joined
Sep 2, 2010
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,393
I am trying to make an integrator using signed math and I don't want to it to overflow.

INTEGRATOR: process (CLK1MHZ, IG, ERROR)
variable INTGT : signed(5 downto 0);
begin
if rising_edge(CLK1MHZ) then
INTGT := INTG + ERROR*IG;

if INTGT > "00100" then
INTG <= "00111";
elsif INTGT < "11000" then
INTG <= "11000";
else
INTG <= INTGT;
end if;
end if;
end process;

Whenever I do this comparison ISE gives me
INFO:Xst:2261 - The FF/Latch <INTG_4> in Unit <NANOPOSITIONER> is equivalent to the following 2 FFs/Latches, which will be removed : <INTG_5> <PIDO_5>


While I understand why I get this info. The higher order bits will always be the same because of the limit. What I want to make sure of is that the limits on my integrator are calculated on what the actual addition would be or will there be and overflow and the equality be calculated on it?

Thank You
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top