Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
多路选择器(使用when-else语句).txt
Package: VHDL 的实例程序,共44个.rar [view]
Upload User: easylife05
Upload Date: 2013-03-21
Package Size: 42k
Code Size: 1k
Category:
VHDL-FPGA-Verilog
Development Platform:
C/C++
- -- Multiplexer 16-to-4 using if-then-elsif-else Statement
- -- download from www.pld.com.cn & www.fpga.com.cn
- library ieee;
- use ieee.std_logic_1164.all;
- entity mux is port(
- a, b, c, d: in std_logic_vector(3 downto 0);
- s: in std_logic_vector(1 downto 0);
- x: out std_logic_vector(3 downto 0));
- end mux;
- architecture archmux of mux is
- begin
- mux4_1: process (a, b, c, d)
- begin
- if s = "00" then
- x <= a;
- elsif s = "01" then
- x <= b;
- elsif s = "10" then
- x <= c;
- else
- x <= d;
- end if;
- end process mux4_1;
- end archmux;