Docsity

ENTITY RS_latch ISPORT (s, Apuntes de Programación y Diseño Digital Lógico

Toggle sidebar
bg1
ENTITY RS_latch IS
PORT (s,r,ck: IN BIT; q_rs, no_q_rs:OUT BIT);
END RS_latch;
ARCHITECTURE estrucutral OF RS_latch IS
COMPONENT portaand2 IS
PORT (a,b: IN BIT; s:OUT BIT);
END portaand2;
COMPONENT Biestable_RS IS
PORT (s,r:IN BIT;q_rs,no_q_rs:OUT BIT);
END Biestable_RS;
signal sand, rand,qint: BIT;
FOR dut1: portaand2 USE ENTITY WORK.and2(logica)
FOR dut2: portaand2 USE ENTITY WORK.and2(logica)
FOR dut3: Biestable_RS USE ENTITY WORK.Biestable_RS(estructural)
BEGIN
dut1: portaand2 PORT MAP(s,ck,sand);
dut2: portaand2 PORT MAP(r,ck,rand);
dut3: Biestable_RS PORT MAP (sand, rand, qint);
q_rs<=qint;
no_q_rs<= NO qint;
END estructural;

Vista previa parcial del texto

¡Descarga ENTITY RS_latch ISPORT (s y más Apuntes en PDF de Programación y Diseño Digital Lógico solo en Docsity!

ENTITY RS_latch IS PORT (s,r,ck: IN BIT; q_rs, no_q_rs:OUT BIT); END RS_latch; ARCHITECTURE estrucutral OF RS_latch IS COMPONENT portaand2 IS PORT (a,b: IN BIT; s:OUT BIT); END portaand2; COMPONENT Biestable_RS IS PORT (s,r:IN BIT;q_rs,no_q_rs:OUT BIT); END Biestable_RS; signal sand, rand,qint: BIT; FOR dut1: portaand2 USE ENTITY WORK.and2(logica) FOR dut2: portaand2 USE ENTITY WORK.and2(logica) FOR dut3: Biestable_RS USE ENTITY WORK.Biestable_RS(estructural) BEGIN dut1: portaand2 PORT MAP(s,ck,sand); dut2: portaand2 PORT MAP(r,ck,rand); dut3: Biestable_RS PORT MAP (sand, rand, qint); q_rs<=qint; no_q_rs<= NO qint; END estructural;