Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad


multiplicador de 3bits, Ejercicios de Diseño de Sistemas Digitales

codigo vhdl de un multiplicador de 3 bits

Tipo: Ejercicios

2019/2020

Subido el 30/11/2020

angel-gamboa
angel-gamboa 🇲🇽

5

(3)

1 documento

1 / 3

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
MULTIPLICADOR
COMPONENTE SUMADOR
library IEEE;
use IEEE.std_logic_1164.all;
entity Sumador is
port(
A : in STD_LOGIC;
B : in STD_LOGIC;
CIN : in STD_LOGIC;
COUT : out STD_LOGIC;
S : out STD_LOGIC
);
end Sumador;
architecture Sumador of Sumador is
begin
COUT<= (B AND CIN) OR (A AND CIN) OR (A AND B);
S<= A XOR (B AND CIN);
end Sumador;
pf3

Vista previa parcial del texto

¡Descarga multiplicador de 3bits y más Ejercicios en PDF de Diseño de Sistemas Digitales solo en Docsity!

MULTIPLICADOR

COMPONENTE SUMADOR

library IEEE;

use IEEE.std_logic_1164.all;

entity Sumador is

port(

A : in STD_LOGIC;

B : in STD_LOGIC;

CIN : in STD_LOGIC;

COUT : out STD_LOGIC;

S : out STD_LOGIC

end Sumador;

architecture Sumador of Sumador is

begin

COUT<= (B AND CIN) OR (A AND CIN) OR (A AND B);

S<= A XOR (B AND CIN);

end Sumador;

MULTIPLICADOR

library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_unsigned.all; entity MULTIPLICADOR is port( CIN : in STD_LOGIC; A : in STD_LOGIC_VECTOR(2 downto 0); B : in STD_LOGIC_VECTOR(2 downto 0); COUT : out STD_LOGIC; R : out STD_LOGIC_VECTOR(5 downto 0) ); end MULTIPLICADOR; architecture MULTIPLICADOR of MULTIPLICADOR is COMPONENT SUMADOR port( A : in STD_LOGIC; B : in STD_LOGIC; CIN : in STD_LOGIC; COUT : out STD_LOGIC; S : out STD_LOGIC ); END COMPONENT; SIGNAL C : STD_LOGIC_VECTOR (8 DOWNTO 0); SIGNAL CARRY : STD_LOGIC_VECTOR (4 DOWNTO 0); SIGNAL E : STD_LOGIC_VECTOR (1 DOWNTO 0); Begin R(0)<= A(0)AND B(0); C(0)<= A(1)AND B(0); C(1)<= A(0)AND B(1); C(2)<= A(2)AND B(0); C(3)<= A(1)AND B(1); C(4)<= A(2)AND B(1); C(5)<= A(0)AND B(2); C(6)<= A(1)AND B(2); C(7)<= A(2)AND B(2); U0: SUMADOR PORT MAP( A => C(1), B => C(0), CIN => '0', COUT => CARRY(0), S => R(1) );