]> cvs.zerfleddert.de Git - raggedstone/blame_incremental - dhwk/source/config_3Ch.vhd
first import of dhwk.
[raggedstone] / dhwk / source / config_3Ch.vhd
... / ...
CommitLineData
1-- J.STELZNER\r
2-- INFORMATIK-3 LABOR\r
3-- 23.08.2006\r
4-- File: CONFIG_3CH.VHD\r
5\r
6library IEEE;\r
7use IEEE.std_logic_1164.all;\r
8\r
9entity CONFIG_3CH is\r
10 port\r
11 (\r
12 PCI_CLOCK :in std_logic;\r
13 PCI_RSTn :in std_logic;\r
14 AD_REG :in std_logic_vector (31 downto 0);\r
15 CBE_REGn :in std_logic_vector ( 3 downto 0);\r
16 CONF_WR_3CH :in std_logic;\r
17 CONF_DATA_3CH :out std_logic_vector (31 downto 0)\r
18 );\r
19end entity CONFIG_3CH;\r
20\r
21architecture CONFIG_3CH_DESIGN of CONFIG_3CH is\r
22\r
23-- PCI Configuration Space Header Addr : HEX 3C --\r
24\r
25 signal CONF_MAX_LAT :std_logic_vector (31 downto 24);\r
26 signal CONF_MIN_GNT :std_logic_vector (23 downto 16); \r
27 signal CONF_INT_PIN :std_logic_vector (15 downto 8);\r
28 signal CONF_INT_LINE :std_logic_vector ( 7 downto 0); \r
29\r
30begin \r
31\r
32--*******************************************************************\r
33--*********** PCI Configuration Space Header "INTERRUPT" ************\r
34--*******************************************************************\r
35\r
36 CONF_MAX_LAT <= X"00";\r
37 CONF_MIN_GNT <= X"00";\r
38-- CONF_INT_PIN <= X"00"; -- Interrupt -\r
39 CONF_INT_PIN <= X"01"; -- Interrupt A\r
40-- CONF_INT_PIN <= X"02"; -- Interrupt B\r
41-- CONF_INT_PIN <= X"03"; -- Interrupt C \r
42-- CONF_INT_PIN <= X"04"; -- Interrupt D\r
43-- CONF_INT_PIN <= X"05 - FF0"; -- Reserviert\r
44\r
45 process (PCI_CLOCK,PCI_RSTn) \r
46 begin\r
47 if PCI_RSTn = '0' then CONF_INT_LINE <= (others =>'0');\r
48 \r
49 elsif (PCI_CLOCK'event and PCI_CLOCK = '1') then\r
50\r
51 if CONF_WR_3CH = '1'and CBE_REGn(0) = '0' then \r
52\r
53 CONF_INT_LINE(7 downto 0) <= AD_REG(7 downto 0);\r
54 else CONF_INT_LINE(7 downto 0) <= CONF_INT_LINE(7 downto 0);\r
55 end if;\r
56\r
57 end if;\r
58\r
59 end process;\r
60\r
61 CONF_DATA_3CH <= CONF_MAX_LAT & CONF_MIN_GNT & CONF_INT_PIN & CONF_INT_LINE ;\r
62\r
63end architecture CONFIG_3CH_DESIGN;\r
64\r
65\r
66\r
Impressum, Datenschutz