Professional Documents
Culture Documents
SESION: 5 MODULO: 1
I. OBJETIVOS:
Conocer y disear en VHDL los multiplexores y decodificadores
Conocer y desarrollar aplicaciones para MSI
II. MATERILAES Y EQUIPOS
Software Quartus II 12.0 en adelante
Mdulo de Desarrollo con Cyclone EP1C3T144C8 / Kit DE2-115 / kit DE0-Nano con USB
Blaster y fuente de 5VDC
III. DESARROLLO
1. INTRODUCCION:
Un multiplexor, grosso modo, es el que contiene varias entradas y una salida, con sus
habilitadores correspondiente.
Lo que hace, de forma prctica, es el armado de una tabla de verdad, por ejemplo para armar una AND,
en un mux de 4x1. En K0=0 gnd, en K1=0 gnd, K2=0 gnd y K3=1 VCC
Circuito
Comparador de 1bit:
6. Comparador de 4 bits
Otra forma de implementar es utilizando la librera arith, ejemplo de comparador de
4bits.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity comparador is
Port ( A : in std_logic_vector(3 downto 0);
B : in std_logic_vector(3 downto 0);
IGU : out std_logic;
MAY : out std_logic;
MEN : out std_logic);
end comparador;
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity DET_IMPAR is
Port ( DATA : in std_logic_vector(7 downto 0);
Z : out std_logic);
end DET_IMPAR;
end Behavioral;
ALU de 8 bits.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity ALU_8BITS is
Port ( A,B : in std_logic_vector(7 downto 0);
OPER : in std_logic_vector(2 downto 0);
Z : out std_logic_vector(7 downto 0));
end ALU_8BITS;