]> git.the-white-hart.net Git - vhdl/commitdiff
Use signed step in fractional step source
authorrs <>
Sat, 13 Dec 2025 04:41:52 +0000 (22:41 -0600)
committerrs <>
Sat, 13 Dec 2025 04:41:52 +0000 (22:41 -0600)
libraries/dsp/src_fracstep.vhd

index 69e3f92851b218f068ecbd5b6e4a20e27d7d26fe..7a5e26223fd362b43edaf458a45c1cfee29a0804 100644 (file)
@@ -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;