entityarchitecture6.py

Created by arthur-candillon

Created on May 02, 2024

889 Bytes


Regroupement de compteurs en VHDL.
Ecrire le code VHDL (entité et 
architecture) d' un compteur de 0
à 999 regroupant les 3 compteurs 
du schéma avec leurs interconnexions.
Vous déclarerez les signaux nécessaires
au câblage interne. On supposera 
qu’une bibliothèque a permis la 
déclaration du composant counter 
(ne pas le déclarer juste 
l'instancier). 

entity counter_0_999 is 
 Port ( clk : in STD_LOGIC; 
  raz : in STD_LOGIC; 
  enable : in STD_LOGIC; 
  count_u, count_d, count_c,: out STD_LOGIC_VECTOR (3 downto 0); 
  carry : out STD_LOGIC); 
end counter_0_999 ; 

architecture arch of counter_0_999 is 
 signal carry_u, carry_d : std_logic; 
 begin 
  C1: counter port map(clk ,raz, enable, count_u , carry_u); 
  C2: counter port map(clk ,raz, carry_u, count_d , carry_d); 
  C3: counter port map(clk ,raz, carry_d, count_c, carry ); 
end;

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.