- 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源码
DIV1024.VHD
上传用户:dgjihui88
上传日期:2013-07-23
资源大小:43k
文件大小:1k
源码类别:
VHDL/FPGA/Verilog
开发平台:
MultiPlatform
- Library IEEE;
- Use IEEE.std_logic_1164.all;
- Use ieee.std_logic_unsigned.all;
- Use IEEE.std_logic_arith.all;
- Entity div1024 is
- Port( clk: in std_logic;--from system clock(1024Hz)
- f1hz: out std_logic);-- 1Hz output signal
- end div1024;
- architecture arch of div1024 is
- --input: clk
- --output: f1hz
- signal count : integer range 0 to 1023;--count from 0 to 1023-local signal
- begin
- ----process for dividing by 1024
- process (clk)
- begin
- if rising_edge(clk) then
- count<=count+1;
- if count>=63 then f1hz<='1';
- else f1hz<='0';
- end if;
- end if;
- end process;
- end arch;