Exercice 8 VHDL
Exercice 8 VHDL
106 à
partir de 3 compteurs 8 bits. Utiliser pour cela 3 variables (COUNT_0, COUNT_1,
COUNT_2) de type integer, représentant chacune la valeur d’un compteur
entity div_5000000 is
port(
clk : in std_logic;
rst : in std_logic;
);
end div_5000000;
Copy code
Architecture:
begin
process(clk, rst)
begin
count_0 <= 0;
count_1 <= 0;
count_2 <= 0;
count_0 <= 0;
count_1 <= 0;
if count_2 = 9 then
count_2 <= 0;
else
end if;
else
end if;
else
end if;
end if;
end process;
end Behavioral;
Copy code
2. Donner la description d’un diviseur par 2 en utilisant la bascule D avec remise à zèro
asynchrone (RST).
entity div_2 is
port(
clk : in std_logic;
rst : in std_logic;
);
end div_2;
architecture Behavioral of div_2 is
begin
process(clk, rst)
begin
end if;
end process;
end Behavioral;
Copy code