Cambio de Rango
Se cambió a variables de 12bits
This commit is contained in:
@@ -44,7 +44,9 @@ architecture Behavioral of Filter is
|
||||
|
||||
|
||||
--~ Acumulador:
|
||||
signal accum: integer range -MAX_RANGE to MAX_RANGE := 0;
|
||||
constant INIT_VAL: integer range -MAX_RANGE to MAX_RANGE := 0;
|
||||
signal accum: integer range -MAX_RANGE to MAX_RANGE := INIT_VAL;
|
||||
|
||||
signal i : integer range 0 to N-1 := 0;
|
||||
signal i_rst : std_logic := '0';
|
||||
|
||||
@@ -121,7 +123,7 @@ begin
|
||||
if ( enable = '1' ) then
|
||||
if ( i_rst = '1' ) then
|
||||
i <= 0;
|
||||
accum <= 0;
|
||||
accum <= INIT_VAL;
|
||||
|
||||
else
|
||||
if ( i < N-1 ) then
|
||||
|
||||
Reference in New Issue
Block a user