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

"y4x" - 2 õppematerjali

IAY0150 - Digitaalsüsteemid praktikumi ülesanne
20
docx

IAY0150 - Digitaalsüsteemid praktikumi ülesanne

U1: f_system port map (x1, x2, x3, y1a, y2a, y3a, y4a);--mapib U1 tulemused -y1a,y2a,y3a,y4a peale U2: f_system port map (x1, x2, x3, y1b, y2b, y3b, y4b); U3: f_system port map (x1, x2, x3, y1c, y2c, y3c, y4c); U4: f_system port map (x1, x2, x3, y1d, y2d, y3d, y4d); y1x <= compare_signals (y1a, y1b, y1c, y1d); --võrdleb kõiki y1 tulemusi y2x <= compare_signals (y2a, y2b, y2c, y2d); --võrdleb kõiki y2 tulemusi y3x <= compare_signals (y3a, y3b, y3c, y3d); -- võrdleb kõiki y3 tulemusi y4x <= compare_signals (y4a, y4b, y4c, y4d); -- võrdleb kõiki y4 tulemusi Toplevel entity toplevel is Port ( led : out STD_LOGIC_VECTOR (7 downto 0);---defineerime väljund LEDid sw : in STD_LOGIC_VECTOR (2 downto 0));--defineerime sisendid end toplevel; architecture structure of toplevel is component f_system port ( x1,x2,x3: in std_logic; --defineerime f_system komponendi sisendid k, l, m, n: out std_logic ); --defineerime f_system komponendi väljundid end component;

Informaatika → Digitaalsüsteemid
29 allalaadimist
IAY0150 - Digitaalsüsteemid I kodutöö
32
docx

IAY0150 - Digitaalsüsteemid I kodutöö

------------------------------------------------------------------------ -- IAY0150 - Homework #1. Test bench ------------------------------------------------------------------------ library IEEE; use IEEE.std_logic_1164.all; entity test is end entity test; library IEEE; use IEEE.std_logic_1164.all; architecture bench of test is signal x1, x2, x3, x4: std_logic; signal y1a, y1b, y1c, y2a, y2b, y2c: std_logic; signal y3a, y3b, y3c, y4a, y4b, y4c: std_logic; signal y1x, y2x, y3x, y4x: std_logic; component f_system port ( x1, x2, x3, x4: in std_logic; y1, y2, y3, y4: out std_logic ); end component; for U1: f_system use entity work.f_system(tabel); for U2: f_system use entity work.f_system(espresso); for U3: f_system use entity work.f_system(opti); function compare_signals (s1, s2, s3: std_logic) return std_logic is begin if s1='-' then if s2/=s3 then return 'X'; end if; else if s1/=s2 or s1/=s3 then return 'X'; end if;

Informaatika → Digitaalsüsteemid
80 allalaadimist


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