Last change
on this file was 11755, checked in by neise, 13 years ago |
reinit of this svn repos .... it was all too messy
deleted the old folders and restarted with FACT_FAD_lib only.
(well and the testbenches)
|
File size:
1.2 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 := 50 ns;
|
---|
29 | reset_time : time := 50 ns
|
---|
30 | );
|
---|
31 | PORT(
|
---|
32 | clk : out std_logic := '0';
|
---|
33 | rst : out std_logic := '0'
|
---|
34 | );
|
---|
35 | END clock_generator ;
|
---|
36 | -- hds interface_end
|
---|
37 |
|
---|
38 | architecture Behavioral of clock_generator is
|
---|
39 |
|
---|
40 | begin
|
---|
41 |
|
---|
42 | clock_gen_proc: process
|
---|
43 | begin
|
---|
44 | clk <= '0';
|
---|
45 | wait for clock_period / 2;
|
---|
46 | clk <= '1';
|
---|
47 | wait for clock_period / 2;
|
---|
48 | end process clock_gen_proc;
|
---|
49 |
|
---|
50 | reset_gen_proc: process
|
---|
51 | begin
|
---|
52 | rst <= '1';
|
---|
53 | wait for reset_time;
|
---|
54 | rst <= '0';
|
---|
55 | wait;
|
---|
56 | end process reset_gen_proc;
|
---|
57 |
|
---|
58 |
|
---|
59 | end Behavioral;
|
---|
60 | --synthesis translate_on
|
---|
Note:
See
TracBrowser
for help on using the repository browser.