1 --+-------------------------------------------------------------------------------------------------+
5 --| Components: pci32lite.vhd |
13 --| Description: RS1 PCI Demo : (TOP) Main file. |
17 --+-------------------------------------------------------------------------------------------------+
19 --| Revision history : |
20 --| Date Version Author Description |
25 --+-------------------------------------------------------------------------------------------------+
28 --+-----------------------------------------------------------------------------+
30 --+-----------------------------------------------------------------------------+
33 use ieee.std_logic_1164.all;
34 use ieee.std_logic_arith.all;
35 use ieee.std_logic_unsigned.all;
37 --+-----------------------------------------------------------------------------+
39 --+-----------------------------------------------------------------------------+
45 PCI_CLK : in std_logic;
46 PCI_nRES : in std_logic;
49 PCI_AD : inout std_logic_vector(31 downto 0);
50 PCI_CBE : in std_logic_vector(3 downto 0);
51 PCI_PAR : out std_logic;
52 PCI_nFRAME : in std_logic;
53 PCI_nIRDY : in std_logic;
54 PCI_nTRDY : out std_logic;
55 PCI_nDEVSEL : out std_logic;
56 PCI_nSTOP : out std_logic;
57 PCI_IDSEL : in std_logic;
58 PCI_nPERR : out std_logic;
59 PCI_nSERR : out std_logic;
60 PCI_nINT : out std_logic;
76 --+-----------------------------------------------------------------------------+
78 --+-----------------------------------------------------------------------------+
80 architecture raggedstone_arch of raggedstone is
83 --+-----------------------------------------------------------------------------+
85 --+-----------------------------------------------------------------------------+
95 ad : inout std_logic_vector(31 downto 0);
96 cbe : in std_logic_vector(3 downto 0);
100 trdy : out std_logic;
101 devsel : out std_logic;
102 stop : out std_logic;
103 idsel : in std_logic;
104 perr : out std_logic;
105 serr : out std_logic;
106 intb : out std_logic;
109 wb_adr_o : out std_logic_vector(24 downto 1);
110 wb_dat_i : in std_logic_vector(15 downto 0);
111 wb_dat_o : out std_logic_vector(15 downto 0);
112 wb_sel_o : out std_logic_vector(1 downto 0);
113 wb_we_o : out std_logic;
114 wb_stb_o : out std_logic;
115 wb_cyc_o : out std_logic;
116 wb_ack_i : in std_logic;
117 wb_err_i : in std_logic;
118 wb_int_i : in std_logic;
121 debug_init : out std_logic;
122 debug_access : out std_logic
129 clk_i : in std_logic;
130 nrst_i : in std_logic;
131 led2_o : out std_logic;
132 led3_o : out std_logic;
133 led4_o : out std_logic;
134 led5_o : out std_logic;
135 led6_o : out std_logic;
136 led7_o : out std_logic;
137 led8_o : out std_logic;
138 led9_o : out std_logic
143 --+-----------------------------------------------------------------------------+
145 --+-----------------------------------------------------------------------------+
146 --+-----------------------------------------------------------------------------+
148 --+-----------------------------------------------------------------------------+
150 signal wb_adr : std_logic_vector(24 downto 1);
151 signal wb_dat_out : std_logic_vector(15 downto 0);
152 signal wb_dat_in : std_logic_vector(15 downto 0);
153 signal wb_sel : std_logic_vector(1 downto 0);
154 signal wb_we : std_logic;
155 signal wb_stb : std_logic;
156 signal wb_cyc : std_logic;
157 signal wb_ack : std_logic;
158 signal wb_err : std_logic;
159 signal wb_int : std_logic;
164 --+-----------------------------------------+
166 --+-----------------------------------------+
168 u_pci: component pci32tlite
178 devsel => PCI_nDEVSEL,
185 wb_dat_i => wb_dat_out,
186 wb_dat_o => wb_dat_in,
194 -- debug_init => LED3,
195 -- debug_access => LED2
198 --+-----------------------------------------+
200 --+-----------------------------------------+
202 my_heartbeat: component heartbeat
216 end raggedstone_arch;