- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
COMCOUN.VHD
上传用户:dgjihui88
上传日期:2013-07-23
资源大小:43k
文件大小:1k
源码类别:
VHDL/FPGA/Verilog
开发平台:
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;