From: rs <> Date: Sat, 13 Dec 2025 04:41:52 +0000 (-0600) Subject: Use signed step in fractional step source X-Git-Url: https://git.the-white-hart.net/?a=commitdiff_plain;h=63fac12a57e1f4d635d616b414d4fda04f2e288c;p=vhdl Use signed step in fractional step source --- diff --git a/libraries/dsp/src_fracstep.vhd b/libraries/dsp/src_fracstep.vhd index 69e3f92..7a5e262 100644 --- a/libraries/dsp/src_fracstep.vhd +++ b/libraries/dsp/src_fracstep.vhd @@ -34,7 +34,7 @@ begin if rst_i = '1' then count_reg <= (others => '0'); elsif rdy_i = '1' then - count_reg <= count_reg + unsigned(inc_i); + count_reg <= count_reg + signed(inc_i); end if; end if; end process;