OpenCores
URL https://opencores.org/ocsvn/spi_boot/spi_boot/trunk

Subversion Repositories spi_boot

[/] [spi_boot/] [tags/] [rel_1_0_rev_A/] [README] - Blame information for rev 18

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 arniml
 
2
README for the spi_boot core
3
============================
4 18 arniml
Version: $Date: 2005-02-18 06:54:36 $
5 10 arniml
 
6
 
7
Description
8
-----------
9
 
10 11 arniml
The SD/MMC Bootloader is a CPLD design that manages configuration and
11
bootstrapping of FPGAs. It is able to retrieve the required data from
12
SecureDigital (SD) cards or MultiMediaCards (MMC) and manages the FPGA
13
configuration process. SD cards as well as MMCs are operated in SPI mode which
14
is part of both standards thus eliminating the need for dedicated
15
implementations. The SD/MMC Bootloader fits both. Beyond configuration, this
16 18 arniml
core supports a bootstrapping strategy where multiple images are stored on one
17 11 arniml
single memory card.
18
For example consider a system completely based on SRAM. The bootloader
19 18 arniml
provides an initial configuration data from the first image to the FPGA. This
20
image contains a design which pulls the next image from the memory card and
21
transfers this data to SRAM. In the third step the final FPGA design is loaded
22
from the third image.
23 10 arniml
 
24
 
25 11 arniml
Features
26
--------
27 10 arniml
 
28 18 arniml
* Configuration mode: configurates SRAM based FPGAs via slave serial mode
29 11 arniml
  (Xilinx and Altera)
30
* Data mode: provides stored data over a simple synchronous serial interface
31 18 arniml
* Broad compatability using SPI mode
32 11 arniml
    + SecureDigital cards using dedicated initialization command
33 18 arniml
    + MultiMediaCards (see below)
34 11 arniml
* Operation triggerd by power-up or card insertion
35
 
36
 
37 18 arniml
Compatability
38
-------------
39
 
40
These cards have been tested with the SD/MMC Bootloader:
41
 
42
  * SanDisk 128 MB SD
43
  * SanDisk 64 MB MMC
44
  * Panasonic 32 MB SD
45
 
46
Some MMC might fail with this core as not all cards support CMD18
47
(READ_MULTIPLE_BLOCK). Please consult the data sheet of your specific
48
model. In case your MMC does not implement CMD18 you might want to have a look
49
at the FPGA MMC-Card Config project.
50
 
51
 
52 10 arniml
Verification
53
------------
54
 
55
The spi_boot core comes with a simple testbench that simulates an SD/MMC
56
card. All four implementations of the core are verified there in parallel
57
while transferring the data for several sets.
58
You should normally not need to run the testbench. But in case you modified
59
the VHDL code the testbench gives some hints if the design has been broken.
60
 
61
 
62
Directory Structure
63
-------------------
64
 
65
The core's directory structure follows the proposal of OpenCores.org.
66
 
67
spi_boot
68
 |
69
 \--+-- rtl
70
    |    |
71
    |    \-- vhdl           : VHDL code containing the RTL description
72
    |                         of the core.
73
    |
74
    +-- bench
75
    |    |
76
    |    \-- vhdl           : VHDL testbench code.
77
    |
78
    \-- sim
79
         |
80
         \-- rtl_sim        : Directory for running simulations.
81
 
82
 
83
Compiling the VHDL Code
84
-----------------------
85
 
86
VHDL compilation and simulation tasks take place inside in sim/rtl_sim
87
directory. The project setup supports only the GHDL simulator (see
88
http://ghdl.free.fr).
89
 
90
To compile the code simply type at the shell
91
 
92
$ make
93
 
94
This should result in a file called tb_behav_c0 which can be executed as any
95
other executable.
96
 
97
The basic simple sequence list can be found in COMPILE_LIST. This can be
98
useful to quickly set up the analyze stage of any compiler or
99
synthesizer. Especially when synthesizing the code, you want to skip the VHDL
100
configurations in *-c.vhd and everything below the bench/ directory.
101
 
102
 
103
References
104
----------
105
 
106
  * SanDisk SD Card Product Manual
107
    http://www.sandisk.com/pdf/oem/ProdManualSDCardv1.9.pdf
108
 
109
  * SanDisk MMC Product Manual
110
    http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf
111
 
112
  * Toshiba SD Card Specification
113
    http://i.cmpnet.com/chipcenter/memory/images/prod055.pdf
114 18 arniml
 
115
  * FPGA MMC-Card Config project
116
    http://www.opencores.org/projects.cgi/web/mmcfpgaconfig/overview

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.