|
发表于 2004-6-19 22:55:25
|
显示全部楼层
谁会?
--接上贴,继续
-- Component Instantiations
-- Ram1
Ram1 : dual_port_ram
generic map(
data_width => 16,
ram_length => 8
)
port map (
data_in => Input_data_ram1, -- Input Data
data_out1 => open, -- Not Used
data_out2 => Ram1_data_out_to_FFT_Ram, -- Ram1 Data to FFT array
clk => clk, -- Input Clock
we => Ram1_we, -- Write Enable...Active Low
en => '1', -- Ram1 always enabled
address1 => Std_l_Ram1_Address, -- Ram1 Write Address
address2 => Std_l_FFTRam_Address -- Ram1 Read Address
);
-- Ram2
Ram2 : dual_port_ram
generic map(
data_width => 16,
ram_length => 8
)
port map (
data_in => Input_data_ram2, -- Input Data
data_out1 => open, -- Not Used
data_out2 => Ram2_data_out_to_FFT_Ram, -- Ram2 Data to FFT array
clk => clk, -- Input Clock
we => Ram2_we, -- Write Enable...Active Low
en => '1', -- Ram always enabled
address1 => Std_l_Ram2_Address, -- Ram Write Address
address2 => Std_l_FFTRam_Address -- Ram Read Address
);
-- Stage1 Butterflys
BF_STG1:for I in 0 to 1 generate
Stg1_bf1: stg1_butterfly
generic map(
data_width => data_width,
int_data_width => int_data_width,
tw_fact_width => coeff_width
)
port map (
reset => reset,
clk => clk,
data_rd => data_rd,
data1_r_in => FFT_Data(4*I),
data1_i_in => FFT_Data((4*I)+1),
data2_r_in => FFT_Data((4*I)+2),
data2_i_in => FFT_Data((4*I)+3),
tf1_r => TWF_R(0),
data1_r_out => Stage1Result(4*I),
data1_i_out => Stage1Result((4*I)+1),
data2_r_out => Stage1Result((4*I)+2),
data2_i_out => Stage1Result((4*I)+3)
);
end generate BF_STG1;
-- Stage2 Butterflys
BF_STG2:for I in 0 to 0 generate
Stg2bf1: butterfly
generic map(
data_width => int_data_width,
tw_fact_width => coeff_width
)
port map (
reset => reset,
clk => clk,
data_rd => data_rd,
data1_r_in => Stage1Result((8*I)+0),
data1_i_in => Stage1Result((8*I)+1),
data2_r_in => Stage1Result((8*I)+4),
data2_i_in => Stage1Result((8*I)+5),
tf1_r => TWF_R(0),
tf1_i => TWF_I(0),
data1_r_out => Stage2Result((8*I)+0),
data1_i_out => Stage2Result((8*I)+1),
data2_r_out => Stage2Result((8*I)+4),
data2_i_out => Stage2Result((8*I)+5)
);
Stg2bf2: butterfly
generic map(
data_width => int_data_width,
tw_fact_width => coeff_width
)
port map (
reset => reset,
clk => clk,
data_rd => data_rd,
data1_r_in => Stage1Result((8*I)+2),
data1_i_in => Stage1Result((8*I)+3),
data2_r_in => Stage1Result((8*I)+6),
data2_i_in => Stage1Result((8*I)+7),
tf1_r => TWF_R(1),
tf1_i => TWF_I(1),
data1_r_out => Stage2Result((8*I)+2),
data1_i_out => Stage2Result((8*I)+3),
data2_r_out => Stage2Result((8*I)+6),
data2_i_out => Stage2Result((8*I)+7)
);
end generate BF_STG2;
end;
|
|