Vajad kellegagi rääkida?
Küsi julgelt abi LasteAbi
Logi sisse
Sulge

"x2x3or" - 1 õppematerjal

IAY0150 - Digitaalsüsteemid praktikumi ülesanne
20
docx

IAY0150 - Digitaalsüsteemid praktikumi ülesanne

o <= '0' when (a = '1' and b = '1') else '1'; --siin defineerime nand2 sisu end contents; architecture struct of f_system is component and2 --defineerime and2 komponendi port (a, b : in std_logic; o : out std_logic); end component; component or2 --defineerime or2 komponendi port ( a, b : in std_logic; o : out std_logic); end component; component nand2--defineerime nand2 komponendi port(a, b : in std_logic; o : out std_logic); end component; signal x3i, x2x3or, x1x2or: std_logic; --defineerime muutujad, millele omistame begin --väärtused hiljem U0: nand2 port map (x3, x3, x3i); --võtame nand2 abil x3 inversiooni U1: or2 port map (x2,x3,x2x3or); --võtame or2 abil x2 ja x3 or väärtuse U2: and2 port map (x1,x2x3or,y1); --esimene tulemus and2 abil Tallinn 2017 U3: y2 <= x2; U4: or2 port map (x1, x2, x1x2or); --võtame x1 x2 or tulemuse

Informaatika → Digitaalsüsteemid
29 allalaadimist


Sellel veebilehel kasutatakse küpsiseid. Kasutamist jätkates nõustute küpsiste ja veebilehe üldtingimustega Nõustun