Last change
on this file since 228 was 215, checked in by dneise, 14 years ago |
initial commit (2nd part): only VHDL and UCF files were commited.
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | ----------------------------------------------------------------------------------
|
---|
2 | -- Company:
|
---|
3 | -- Engineer:
|
---|
4 | --
|
---|
5 | -- Create Date: 13:40:20 01/07/2010
|
---|
6 | -- Design Name:
|
---|
7 | -- Module Name: clock_generator - Behavioral
|
---|
8 | -- Project Name:
|
---|
9 | -- Target Devices:
|
---|
10 | -- Tool versions:
|
---|
11 | -- Description:
|
---|
12 | --
|
---|
13 | -- Dependencies:
|
---|
14 | --
|
---|
15 | -- Revision:
|
---|
16 | -- Revision 0.01 - File Created
|
---|
17 | -- Additional Comments:
|
---|
18 | --
|
---|
19 | ----------------------------------------------------------------------------------
|
---|
20 | -- hds interface_start
|
---|
21 | LIBRARY IEEE;
|
---|
22 | USE IEEE.STD_LOGIC_1164.ALL;
|
---|
23 | USE IEEE.STD_LOGIC_UNSIGNED.ALL;
|
---|
24 |
|
---|
25 | -- synthesis translate_off
|
---|
26 | entity clock_generator is
|
---|
27 | generic(
|
---|
28 | clock_period : time := 20 ns;
|
---|
29 | reset_time : time := 50 ns
|
---|
30 | );
|
---|
31 | port(
|
---|
32 | clk : out STD_LOGIC := '0';
|
---|
33 | rst : out STD_LOGIC := '0'
|
---|
34 | );
|
---|
35 |
|
---|
36 | -- Declarations
|
---|
37 |
|
---|
38 | end clock_generator ;
|
---|
39 | -- hds interface_end
|
---|
40 |
|
---|
41 | architecture Behavioral of clock_generator is
|
---|
42 |
|
---|
43 | begin
|
---|
44 |
|
---|
45 | clock_gen_proc: process
|
---|
46 | begin
|
---|
47 | clk <= '0';
|
---|
48 | wait for clock_period / 2;
|
---|
49 | clk <= '1';
|
---|
50 | wait for clock_period / 2;
|
---|
51 | end process clock_gen_proc;
|
---|
52 |
|
---|
53 | reset_gen_proc: process
|
---|
54 | begin
|
---|
55 | rst <= '1';
|
---|
56 | wait for reset_time;
|
---|
57 | rst <= '0';
|
---|
58 | wait;
|
---|
59 | end process reset_gen_proc;
|
---|
60 |
|
---|
61 |
|
---|
62 | end Behavioral;
|
---|
63 | --synthesis translate_on
|
---|
Note:
See
TracBrowser
for help on using the repository browser.