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
LED七段译码.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++
- -- BCD to Seven Segment Decoder
- -- The use of the std_logic literal '-' (don't care) is primarily for the synthesis tool.
- -- This example illustrates the use of the selected signal assignment.
- -- download from: www.pld.com.cn & www.fpga.com.cn
- LIBRARY ieee;
- USE ieee.std_logic_1164.ALL;
- ENTITY seg7dec IS
- PORT(bcdin : IN std_logic_vector(3 DOWNTO 0);
- segout : OUT std_logic_vector(6 DOWNTO 0));
- END seg7dec;
- ARCHITECTURE ver3 OF seg7dec IS
- BEGIN
- WITH bcdin SELECT
- segout <= "1000000" WHEN X"0",
- "1100111" WHEN X"1",
- "1101101" WHEN X"2",
- "0000011" WHEN X"3",
- "0100101" WHEN X"4",
- "0001001" WHEN X"5",
- "0001000" WHEN X"6",
- "1100011" WHEN X"7",
- "0000000" WHEN X"8",
- "0000001" WHEN X"9",
- "-------" WHEN OTHERS;
- END ver3;