Home - Rasfoiesc.com
Educatie Sanatate Inginerie Business Familie Hobby Legal
Satisfactia de a face ce iti place. tutorial, lectii online, solutii simple, exmeple, programe, C++

Biologie Chimie Didactica Fizica Geografie Informatica
Istorie Literatura Matematica Psihologie

C


Index » educatie » » informatica » C
Automatul More - Codul sursa


Automatul More - Codul sursa


Automatul More

Codul

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

use IEEE.STD_LOGIC_ARITH.ALL;

use IEEE.STD_LOGIC_UNSIGNED.ALL;

---- Uncomment the following library declaration if instantiating

---- any Xilinx primitives in this code.

--library UNISIM;

--use UNISIM.VComponents.all;

entity MOORE is

port (X, CLOCK: in std_logic;

Z: out std_logic );

end MOORE;

architecture Behavioral of MOORE is

type STATE_TYPE is (S0, S1,S2,S3);

signal CURRENT_STATE, NEXT_STATE: STATE_TYPE;

begin

-- Proces pentru sec?iunea combinationala

COMBIN: process (CURRENT_STATE,X) begin

case CURRENT_STATE is

when S0 =>

if X = '0' then

Z<= '0';

NEXT_STATE <= S0;

else

Z<= '1';

NEXT_STATE <= S2;

end if;

when S1 =>

if X = '0' then

Z<= '0';

NEXT_STATE <= S0;

else

Z<= '0';

NEXT_STATE <= S2;

end if;

when S2 =>

if X = '0' then

Z<= '1';

NEXT_STATE <= S2;

else

Z<= '0';

NEXT_STATE <= S3;

end if;

when S3 =>

if X = '0' then

Z<= '0';

NEXT_STATE <= S3;

else

Z<= '1';

NEXT_STATE <= S1;

end if;

--toate starile curente

end case;

end process COMBIN;

-- Proces pentru sec?iunea secven?iala (bistabile)

SYNCH: process begin

wait until CLOCK'event and CLOCK ='1';

CURRENT_STATE <= NEXT_STATE;

end process SYNCH;

end architecture;

Afisarea rezultatelor simularii







Politica de confidentialitate
C


Access
Adobe photoshop
Autocad
Baze de date
C
Calculatoare
Corel draw
Excel
Foxpro
Html
Internet
Java
Linux
Mathcad
Matlab
Outlook
Pascal
Php
Powerpoint
Retele calculatoare
Sql
Windows
Word

DECLARATII SI CONSTANTE
Constructorul de copiere
Liste inlantuite in C++
ATESTAT LA INFORMATICA - TEMA : INSTRUCTIUNILE LIMBAJULUI C++
SIRURI DE CARACTERE
Functii operator membre ale claselor
Constructorul implicit
Supraincarcarea operatorilor de conversie
CLASE
Supraincarcarea operatorului de indexare















 
Copyright © 2019 - Toate drepturile rezervate