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 21

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 21 arniml
Version: $Date: 2005-02-20 13:13:24 $
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 21 arniml
RAM Loader
84
----------
85
 
86
Directory rtl/vhdl/ram_loader contains the sample design which loads the next
87
image from the card and stores its contents to external asynchronous
88
RAM. After reading 64 KB it triggers a new configuration process for the final
89
FPGA design.
90
Refer to the code for the mechanisms involved.
91
 
92
 
93 10 arniml
Compiling the VHDL Code
94
-----------------------
95
 
96
VHDL compilation and simulation tasks take place inside in sim/rtl_sim
97
directory. The project setup supports only the GHDL simulator (see
98
http://ghdl.free.fr).
99
 
100
To compile the code simply type at the shell
101
 
102
$ make
103
 
104
This should result in a file called tb_behav_c0 which can be executed as any
105
other executable.
106
 
107
The basic simple sequence list can be found in COMPILE_LIST. This can be
108
useful to quickly set up the analyze stage of any compiler or
109
synthesizer. Especially when synthesizing the code, you want to skip the VHDL
110
configurations in *-c.vhd and everything below the bench/ directory.
111
 
112
 
113
References
114
----------
115
 
116
  * SanDisk SD Card Product Manual
117
    http://www.sandisk.com/pdf/oem/ProdManualSDCardv1.9.pdf
118
 
119
  * SanDisk MMC Product Manual
120
    http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf
121
 
122
  * Toshiba SD Card Specification
123
    http://i.cmpnet.com/chipcenter/memory/images/prod055.pdf
124 18 arniml
 
125
  * FPGA MMC-Card Config project
126
    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.