1 | ------------------------------------------------------------------------------- |
---|
2 | -- |
---|
3 | -- SD/MMC Bootloader |
---|
4 | -- Chip toplevel |
---|
5 | -- |
---|
6 | -- $Id: chip-e.vhd 77 2009-04-01 19:53:14Z arniml $ |
---|
7 | -- |
---|
8 | -- Copyright (c) 2005, Arnim Laeuger (arniml@opencores.org) |
---|
9 | -- |
---|
10 | -- All rights reserved, see COPYING. |
---|
11 | -- |
---|
12 | -- Redistribution and use in source and synthezised forms, with or without |
---|
13 | -- modification, are permitted provided that the following conditions are met: |
---|
14 | -- |
---|
15 | -- Redistributions of source code must retain the above copyright notice, |
---|
16 | -- this list of conditions and the following disclaimer. |
---|
17 | -- |
---|
18 | -- Redistributions in synthesized form must reproduce the above copyright |
---|
19 | -- notice, this list of conditions and the following disclaimer in the |
---|
20 | -- documentation and/or other materials provided with the distribution. |
---|
21 | -- |
---|
22 | -- Neither the name of the author nor the names of other contributors may |
---|
23 | -- be used to endorse or promote products derived from this software without |
---|
24 | -- specific prior written permission. |
---|
25 | -- |
---|
26 | -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
27 | -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
---|
28 | -- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
---|
29 | -- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE |
---|
30 | -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
31 | -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
32 | -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
33 | -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
34 | -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
35 | -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
---|
36 | -- POSSIBILITY OF SUCH DAMAGE. |
---|
37 | -- |
---|
38 | -- Please report bugs to the author, but before you do so, please |
---|
39 | -- make sure that this is not a derivative work and that |
---|
40 | -- you have the latest version of this file. |
---|
41 | -- |
---|
42 | -- The latest version of this file can be found at: |
---|
43 | -- http://www.opencores.org/projects.cgi/web/spi_boot/overview |
---|
44 | -- |
---|
45 | ------------------------------------------------------------------------------- |
---|
46 | |
---|
47 | library ieee; |
---|
48 | use ieee.std_logic_1164.all; |
---|
49 | |
---|
50 | |
---|
51 | entity chip is |
---|
52 | |
---|
53 | port ( |
---|
54 | -- System Interface ------------------------------------------------------- |
---|
55 | clk_i : in std_logic; |
---|
56 | reset_i : in std_logic; |
---|
57 | set_sel_n_i : in std_logic_vector(3 downto 0); |
---|
58 | -- SD Card Interface ------------------------------------------------------ |
---|
59 | spi_clk_o : out std_logic; |
---|
60 | spi_cs_n_o : out std_logic; |
---|
61 | spi_data_in_i : in std_logic; |
---|
62 | spi_data_out_o : out std_logic; |
---|
63 | -- FPGA Configuration Interface ------------------------------------------- |
---|
64 | start_i : in std_logic; |
---|
65 | mode_i : in std_logic; |
---|
66 | config_n_o : out std_logic; |
---|
67 | detached_o : out std_logic; |
---|
68 | cfg_init_n_i : in std_logic; |
---|
69 | cfg_done_i : in std_logic; |
---|
70 | dat_done_i : in std_logic; |
---|
71 | cfg_clk_o : out std_logic; |
---|
72 | cfg_dat_o : out std_logic |
---|
73 | ); |
---|
74 | |
---|
75 | end chip; |
---|