Hej,
hier hab ich die Entity.
1 | entity generic_fir is
|
2 | Generic (
|
3 | taps_g : positive := 3; -- number of filter taps
|
4 | poly_g : positive := 2; -- number of polyphases
|
5 | filter_coef_g : array( 0 to 3, 0 to 3 ) of std_logic_vector;
|
6 | addr_width_g : positive := 1; -- width of coefficient address
|
7 | din_width_g : positive := 18; -- width of data in
|
8 | dout_width_g : positive := 36; -- width of data out
|
9 | coef_width_g : positive := 18; -- width of coefficients
|
10 | coef_str_width_g : positive := 20; -- field width of coefficients inside init string; coefficients assumed right-justified
|
11 | marker_width_g : positive := 1; -- width of marker port
|
12 | channel_g : positive := 1); -- number of input channels
|
13 |
|
14 | Port ( clk : in STD_LOGIC;
|
15 | ce : in STD_LOGIC; -- unused
|
16 | din : in STD_LOGIC_VECTOR(din_width_g-1 downto 0); -- data input
|
17 | en_in : in STD_LOGIC; -- data enable
|
18 | marker_in : in STD_LOGIC_VECTOR(marker_width_g-1 downto 0); -- marker in
|
19 | calc_en_in : in STD_LOGIC; -- filter enable
|
20 | addr_in : in STD_LOGIC_VECTOR(addr_width_g-1 downto 0); -- address line for polyphase
|
21 | dout : out STD_LOGIC_VECTOR(dout_width_g-1 downto 0); -- filter output
|
22 | calc_en_out : out STD_LOGIC; -- filter output valid
|
23 | marker_out : out STD_LOGIC_VECTOR(marker_width_g-1 downto 0); -- marker out; delayed marker in signal
|
24 | rst : in STD_LOGIC); -- rst signal, not used because fitler is operated in streaming mode
|
25 | end generic_fir;
|
Der Fehler ist folgender:
Line 36. parse error, unexpected ARRAY
und bezieht sich genau auf die beschriebene Codezeile!
Vielleicht ist eine solche Konstruktion auch nicht VHDL konform.
Vielen Dank