Skip to content
Snippets Groups Projects
Commit a82ada03 authored by Mohamed Amine JANATI's avatar Mohamed Amine JANATI
Browse files

l'ajout des modifs du fichier wave-genrator

parent 83b8185b
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ architecture arch of wave_generator is
signal S_middle : std_logic;
signal S_u_d : std_logic;
signal S_sign_sel : std_logic;
begin
-- Module A
......@@ -64,12 +65,12 @@ begin
G_MAX_VAL => natural(floor(G_fs/(2.0*G_f0)))
)
port map (
I_clk => ,
I_rst => ,
I_u_d => ,
O_val => ,
O_last => ,
O_middle =>
I_clk => I_clk,
I_rst => I_rst,
I_u_d => S_u_d,
O_val => S_addr,
O_last => S_last,
O_middle =>S_middle
);
-- Module C
......@@ -94,10 +95,10 @@ begin
G_fs => G_fs
)
port map (
I_clk => ,
I_rst => ,
I_addr => ,
O_triangle =>
I_clk => I_clk,
I_rst => I_rst,
I_addr => S_addr(C_addr_half_w-1 downto 0),
O_triangle =>S_triangle_out_lut
);
-- Module E
......@@ -108,10 +109,10 @@ begin
G_fs => G_fs
)
port map (
I_clk => ,
I_rst => ,
I_addr => ,
O_saw_tooth =>
I_clk => I_clk,
I_rst => I_rst,
I_addr => S_addr,
O_saw_tooth =>S_saw_tooth_out_lut
);
S_square <= ((G_N-1) => '0', others => '1');
......@@ -119,12 +120,12 @@ begin
-- Module F
F_inst : entity work.module_F
port map (
I_sel => ,
I_din0 => ,
I_din1 => ,
I_din2 => ,
I_din3 => ,
O_dout =>
I_sel => I_wave_sel,
I_din0 => S_sine_out_lut,
I_din1 => S_square,
I_din2 => S_saw_tooth_out_lut,
I_din3 => S_triangle_out_lut,
O_dout =>S_wave_sample
);
-- Module G
......@@ -133,17 +134,17 @@ begin
G_N => G_N
)
port map (
I_din => ,
O_dout =>
I_din => S_wave_sample,
O_dout => S_opposite_wave_sample
);
-- Module H
H_inst : entity work.module_H
port map (
I_sel => ,
I_din0 => ,
I_din1 => ,
O_dout =>
I_sel => S_sign_sel,
I_din0 => S_wave_sample,
I_din1 => S_opposite_wave_sample,
O_dout => S_wave_value
);
-- Module I
......@@ -152,10 +153,10 @@ begin
G_N => G_N
)
port map (
I_clk => ,
I_rst => ,
I_din => ,
O_dout =>
I_clk => I_clk,
I_rst => I_rst,
I_din => S_wave_value,
O_dout => O_wav
);
end arch;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment