]> git.zerfleddert.de Git - raggedstone/blame_incremental - dhwk/source/pci/reg.vhd
increase memory, change pci id
[raggedstone] / dhwk / source / pci / reg.vhd
... / ...
CommitLineData
1-- J.STELZNER
2-- INFORMATIK-3 LABOR
3-- 23.08.2006
4-- File: REG.VHD
5
6library ieee;
7use ieee.std_logic_1164.all;
8
9entity REG is
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;
19
20architecture REG_DESIGN of REG is
21
22 signal SIG_REG :std_logic_vector (7 downto 0);
23
24begin
25
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;
42
43end architecture REG_DESIGN;
Impressum, Datenschutz