-- Fichier : compteur4_a1.vhd -- Fichiers annexes :compteur4_e.vhd,equations4_e.vhd,equations10_a1.vhd -- Société : ENSERB -- Auteur : P.Nouel -- Date de création : 7-6-96 ------------------------------------------------------------------------------ -- Description structurelle simple d'un compteur 4 bits -- Les équations determinent le modulo ------------------------------------------------------------------------------ ARCHITECTURE structure1 OF compteur4 IS SIGNAL d, s , sb : BIT_VECTOR( 3 DOWNTO 0); SIGNAL ra1 : BIT; COMPONENT bascule PORT ( h, d ,raz, ra1 : IN BIT; s, sb : OUT BIT); END COMPONENT; COMPONENT calcul PORT ( s, sb : IN BIT_VECTOR( 3 DOWNTO 0); compter : IN BIT; d : OUT BIT_VECTOR( 3 DOWNTO 0); plein : OUT BIT); END COMPONENT; -- FOR ALL : bascule USE ENTITY WORK.bascule_d(rtl); -- FOR ALL : calcul USE ENTITY WORK.equations(par_10); BEGIN ra1 <= '0'; ba : bascule PORT MAP ( h, d(3), raz, ra1, s(3), sb(3)); -- instanciation par position bb : bascule PORT MAP ( h => h, d => d(2), raz => raz, ra1 => ra1, s => s(2), sb => sb(2)); -- instanciation par denomination bc : bascule PORT MAP ( h, d(1), sb => sb(1), s => s(1), ra1 => ra1, raz => raz); -- instanciation par position et denomination bd : bascule PORT MAP ( sb => sb(0), s => s(0), h => h, ra1 => ra1, d => d(0), raz => raz); -- instanciation par denomination combi : calcul PORT MAP ( s, sb, compter, d, plein); sortie <= s; END structure1; ------------------------------------------------------------------------------