Escolar Documentos
Profissional Documentos
Cultura Documentos
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity ContadorFinal is
port (
reloj: in std_logic;
sw1: in std_logic;
);
end ContadorFinal;
--Declaracin de seales
--Comienzo
begin
process(unidad, decenas, centenas, reloj)
begin
if (rising_edge(reloj)) then
unidad<=0;
decenas<=0;
centenas<=0;
end if;
unidad <=0;
else
end if;
if(unidad=9 ) then
end if;
unidad<=unidad+1;
end if;
decenas<=0;
unidad<=0;
centenas<=centenas+1; --Centenas
end if;
unidad <=0;
centenas<=0;
end if;
else
end if;
end if;
end process;
begin
msegundo<= 0;
bandera<= not(bandera);
Enable <="110";
bandera<="001";
end if;
Enable <="101";
bandera<="101";
end if;
bandera<="000";
end if;
else
end if;
case numero is
end case;
end if;
end process;
end Behavioral;