|
Last change
on this file since 236 was 215, checked in by dneise, 16 years ago |
|
initial commit (2nd part): only VHDL and UCF files were commited.
|
-
Property svn:executable
set to
*
|
|
File size:
735 bytes
|
| Line | |
|---|
| 1 | --
|
|---|
| 2 | -- VHDL Architecture FACT_FAD_test_devices_lib.clock_divider.beha
|
|---|
| 3 | --
|
|---|
| 4 | -- Created:
|
|---|
| 5 | -- by - Benjamin Krumm.UNKNOWN (EEPC8)
|
|---|
| 6 | -- at - 14:13:37 25.03.2010
|
|---|
| 7 | --
|
|---|
| 8 | -- using Mentor Graphics HDL Designer(TM) 2009.1 (Build 12)
|
|---|
| 9 | --
|
|---|
| 10 | LIBRARY ieee;
|
|---|
| 11 | USE ieee.std_logic_1164.all;
|
|---|
| 12 | USE ieee.std_logic_arith.all;
|
|---|
| 13 |
|
|---|
| 14 | ENTITY clock_divider IS
|
|---|
| 15 | port (
|
|---|
| 16 | clk_in : in std_logic;
|
|---|
| 17 | clk_out : out std_logic
|
|---|
| 18 | );
|
|---|
| 19 | END ENTITY clock_divider;
|
|---|
| 20 |
|
|---|
| 21 | --
|
|---|
| 22 | ARCHITECTURE beha OF clock_divider IS
|
|---|
| 23 |
|
|---|
| 24 | signal clk_intern : std_logic := '0';
|
|---|
| 25 |
|
|---|
| 26 | BEGIN
|
|---|
| 27 |
|
|---|
| 28 | clk_out <= clk_intern;
|
|---|
| 29 |
|
|---|
| 30 | divide_clk_proc: process (clk_in)
|
|---|
| 31 | begin
|
|---|
| 32 | if rising_edge(clk_in) then
|
|---|
| 33 | clk_intern <= NOT clk_intern;
|
|---|
| 34 | end if;
|
|---|
| 35 | end process divide_clk_proc;
|
|---|
| 36 |
|
|---|
| 37 | END ARCHITECTURE beha;
|
|---|
| 38 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.