]> cvs.zerfleddert.de Git - raggedstone/blame - dhwk/source/pci/reg.vhd
white space; fixme
[raggedstone] / dhwk / source / pci / reg.vhd
CommitLineData
696ded12 1-- J.STELZNER
2-- INFORMATIK-3 LABOR
3-- 23.08.2006
4-- File: REG.VHD
5
2612d712 6library ieee;
7use ieee.std_logic_1164.all;
696ded12 8
9entity REG is
2612d712 10 port
11 (
12 CLOCK :in std_logic;
13 RESET :in std_logic;
14 WRITE :in std_logic;
15 REG_IN :in std_logic_vector(7 downto 0);
16 REG_OUT :out std_logic_vector(7 downto 0)
17 );
18end entity REG;
696ded12 19
20architecture REG_DESIGN of REG is
21
2612d712 22 signal SIG_REG :std_logic_vector (7 downto 0);
696ded12 23
24begin
25
2612d712 26 process (CLOCK)
27 begin
28 if (CLOCK'event and CLOCK = '1') then
29 if RESET = '1' then
30 SIG_REG <= X"00";
31
32 elsif WRITE = '1' then
33 SIG_REG <= REG_IN;
34
35 else
36 SIG_REG <= SIG_REG;
37 end if;
38 end if;
39 end process;
40
41 REG_OUT <= SIG_REG;
696ded12 42
43end architecture REG_DESIGN;
Impressum, Datenschutz