Skip to main content

Multiplexor ( codigo ) vhdl

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity Multiplexor is
    Port ( a : in  STD_LOGIC;
           b : in  STD_LOGIC;
           c : in  STD_LOGIC;
           d : in  STD_LOGIC;
           sel : in  STD_LOGIC_VECTOR (1 downto 0);
           x : inout  STD_LOGIC);
end Multiplexor;

architecture Behavioral of Multiplexor is
signal g:std_logic;
begin

process (a,b,c,d,sel)
begin

if sel = "00" then
x<=a;

elsif sel = "01" then
x<=b;

elsif sel = "10" then
x<=c;
else
x<=d;

end if;
end process;
end Behavioral;

Comments

Popular posts from this blog

boleta, cliente, nombre en Java

import java.util.ArrayList; public class Cliente { private String nombre; private ArrayList boletas; public Cliente(String nombre) { this.nombre = nombre; this.boletas = new ArrayList(); } public String getNombre() { return this.nombre; } public void agregarBoleta(Boleta boleta) { boletas.add(boleta); } public void imprimirHistorial() { Boleta b; System.out.println("Nombre: " + nombre); for (int i=0; i b = (Boleta)boletas.get(i); b.imprimir(); } } } public class Articulo { private String descripcion; private int stock; private int precio; public Articulo(String descripcion,int stock,int precio){ this.descripcion = descripcion; this.stock = stock; this.precio = precio; } public String getDescripcion() { return this.descripcion; } public int getStock() { return this.stock; } public int getPrecio() { return this.precio; } } import java.util.ArrayList; public class Boleta { private String fecha; private int total; private ArrayList ar...

Adobe Flash Player ( Standalone ) Installer

para descargar los instaladores Offline de Adobe Flash Player nos debemos dirigir a la siguiente direccion: https://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html donde podemos encontrar para Internet Explorer, serian los dos primeros, si queremos que sean para Chrome, Firefox, etc... seleccionamos el Adobe Flash Player Plug in. Internet Explorer EXE Firefox NPAPI EXE Opera, Chrome PPAPI EXE

Renovar direccion IP con un Batch

Abrir un Bloq de notas en la siguiente direccion: Start > Run > notepad (Enter) Inicio > Ejecutar > notepad (Enter) Win + R > notepad (Enter) en el bloque de notas o Notepad escribir lo siguiente: echo off  cls  ipconfig /release  ipconfig /renew  ipconfig /registerdns  exit guardar el archivo como RenovarIP.bat o RenewIP.bat en la extension seleccionar todos los archivos en ves de TXT para que el archivo se guarde con la extension .bat