URL
https://opencores.org/ocsvn/wdsp/wdsp/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
5 |
parrado |
--Second Order Sections (SOS) automatically generated VHDL package file
|
2 |
|
|
--M.Eng. Alexander López Parrado
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
library ieee;
|
6 |
|
|
use ieee.std_logic_1164.all;
|
7 |
|
|
use ieee.numeric_std.all;
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
package coefs_sos is
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
--The number of sections
|
14 |
|
|
constant NSECT:integer:=6;
|
15 |
|
|
|
16 |
|
|
--Number of bits in fractional part of coeffcients
|
17 |
|
|
--Fixed point format with 16 bits ([3].[13])
|
18 |
|
|
constant Q: integer:=13;
|
19 |
|
|
|
20 |
|
|
--Gain on each stage
|
21 |
|
|
constant GAIN: std_logic_vector(15 downto 0):= std_logic_vector(to_signed(169,16));
|
22 |
|
|
|
23 |
|
|
--Filter Coefficients ...(b0,b1,b2,a0,a1,a2)_stage1,(b0,b1,b2,a0,a1,a2)_stage0
|
24 |
|
|
constant COEFFS: std_logic_vector(575 downto 0):="001000000000000011000000000000000010000000000000001000000000000011000011110101000001111110110000001000000000000011000000000111010001111111100011001000000000000011000100110001100001111110011101001000000000000010111111111000110010000000011101001000000000000011000100011001010001111100101000001000000000000000111111111011100001111111101110001000000000000011000101000110010001111100011001001000000000000001000000000000000010000000000000001000000000000011000101010011000001111010111110001000000000000001000000000100100010000000010010001000000000000011000101001000010001111010011100";
|
25 |
|
|
|
26 |
|
|
end coefs_sos;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.