Skip to main content

Maquina de Mealy Ejemplo: Ascensor

entity behavioral is port (
Planta_Baja : in std_logic;
Piso_Uno    : in std_logic;
Piso_Dos    : in std_logic;
salidas     : out std_logic_vector(1 downto 0) -- para polarizar el motor, tierra y voltaje por eso se require los dos bits

);
end behavioral

architecture AscMealy of behavioral is
type ascEstados is (PB, 1, 2);
signal Estados, prox_estados AscEstados;
begin
Process(Planta_Baja, Piso_Uno, Piso_Dos, Estado)
begin
Case PB =>
if (Planta_Baja = '1')then
Prox_estado <= 1;
else
Prox_estado <= PB;
endif;
case 1 =>
if (Piso_Uno = '1')then
Prox_estado <= 2;
else
prox_estado <= 1;
endif;
case 2 =>
if (Piso_Dos = '1')then
Prox_estado <= 1;
else
prox_estado <= 2;
endif;
end Process;

Process (reloj, Reset)
begin
if (Reset = '1')then
estado <= PB;
elsif (clk'event and clk = '1') then
estado <= Prox_estado;
end if;
end Process;

Process (Planta_Baja, Piso_Uno, Piso_Dos, Estado)
begin
case estado is
listan PB =>
if (Planta_Baja = '1') then
salidas <= '10'
else
salidas <= '00'
elsif;
end Process;

end architecture behavioral;

Comments

Popular posts from this blog

Llamar a 1 800 en USA desde Mexico

Cómo llamar números gratis en USA [toll free] desde México Ok, resulta que alguna vez los números gratis, se llamaban números 1- 800 (01-800 desde México). Pero lo malo de los números es que se acaban, Sobre todo en USA que les encanta vender todo. Ahora los Números gratis pueden ser 1 - 800, 1 - 877, 1 - 866 Para los americanos es cuestion de acostumbrarse, pero para nosotros los usuarios de telmex ¿cómo le hacemos si queremos marcar? Pues en primera pagando, los números gratis en USA usualmente no son gratis desde otros paises. Y en segunda, marcando correctamente. Muchos ya se saben el de los 800, es nada mas cuestion de cambiar el 01 - 800 por 001 - 881, pero y los 1 - 866 ? y los 1 - 877 ? Ahhh pues en mi otro blog ya tenía una entrada con una tablita que lo explica: Si el numero comienza con 1 888 se marca: 001 881 Si el numero comienza con 1 877 se marca: 001 882 Si el numero comienza con 1 866 se marca: 001 883 ¿Por qué? No tengo la más mínima idea, supongo que...

ESET instaladores x86 - x64 ESP,ENG,PTB (Shareware)

- Español Latino ESET NOD32 Antivirus http://download.eset.com/ download/win/eav/eav_nt32_esl. msi http://download.eset.com/ download/win/eav/eav_nt64_esl. msi ESET Smart Security http://download.eset.com/ download/win/ess/ess_nt32_esl. msi http://download.eset.com/ download/win/ess/ess_nt64_esl. msi - Español España ESET NOD32 Antivirus http://download.eset.com/ download/win/eav/eav_nt32_esn. msi http://download.eset.com/ download/win/eav/eav_nt64_esn. msi ESET Smart Security http://download.eset.com/ download/win/ess/ess_nt32_esn. msi http://download.eset.com/ download/win/ess/ess_nt64_esn. msi - Ingles ESET NOD32 Antivirus http://download.eset.com/ download/win/eav/eav_nt32_enu. msi http://download.eset.com/ download/win/eav/eav_nt64_enu. msi ESET Smart Security http://download.eset.com/ download/win/ess/ess_nt32_enu. msi http://download.eset.com/ download/win/ess/ess_nt64_enu. msi - Portugues ESET NOD32 Antivirus http://download.eset.com/ download/win/eav/eav_nt32_ptb. msi http://...

10 commands you should master when working with the Cisco IOS

The Cisco IOS provides thousands of commands, and configuring it can be challenging. Here are 10 commands you need to know, inside and out, when using the Cisco IOS. #1: The “?” It may seem entirely too obvious that you should know how to type  ?  to ask for help when using the Cisco IOS. However, the Cisco IOS is completely different from other operating systems when it comes to using the question mark (help key). As the IOS is a command-line operating system with thousands of possible commands and parameters, using the ? can save your day. You can use the command in many ways. First, use it when you don’t know what command to type. For example, type  ?  at the command line for a list of all possible commands. You can also use ? when you don’t know what a command’s next parameter should be. For example, you might type show ip ?  If the router requires no other parameters for the command, the router will offer CR as the only option. Finally, use ? to se...