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
COMCOUN.VHD
Package: codeofvhdl2006.rar [view]
Upload User: dgjihui88
Upload Date: 2013-07-23
Package Size: 43k
Code Size: 1k
Category:
VHDL-FPGA-Verilog
Development Platform:
MultiPlatform
- --comcoun.vhd 7 segment com scan counter
- library ieee ;
- use ieee.std_logic_1164.all;
- use ieee.std_logic_unsigned.all;
- entity comcoun is
- port(
- clk : in std_logic;--synchronouse clock
- f1k_ena : in std_logic;--scan clock
- comclk : out std_logic_vector(1 downto 0));--output count
- end comcoun;
- architecture behavior of comcoun is
- signal q : std_logic_vector(1 downto 0);--internal counted signal
- begin
- fscan:process(clk)
- begin
- if (clk'event and clk='1') then
- if (f1k_ena='1') then
- if q>=3 then
- q<="00";--initial counter
- else
- q<=q+1;--counting
- end if;
- end if;
- end if;
- end process fscan;
- comclk<=q;--output internal count
- end behavior;