SD Host Controller Example Design
You can choose to generate the example design when generating the core in the IP Manager Configuration window. Compile the example design project and download the .hex or .bit file to your board. To generate example design, the Example Design Deliverables Option signal must be enabled.
Important: tested the example design generated
with the default parameter options only.
The example designs target the Trion® T120 BGA576 Development Board. The example design consists of a RISC-V SoC and the SD Host Controller core. The design requires an additional SD daughter card attached to the Trion® T120 BGA576 Development Board.
Note: Efinix uses PmodSD from Digilent as the SD daughter card for
the example design.
Run the example code, sdhc.c in the
embedded_sw folder to check the multi block read and write
operation is working as expected. The UART terminal prints the following message if
test is
successful:
--- EFX-SD Card Demo ---
Initialize...Done
**************START SPEED TEST*******************
**SD CLOCK SPEED = 50000
**CARD SPEED = 25000 kHz
**CARD SIZE = 7580 Mbyte Total BLOCK = 15523840
**SD BUS WIDTH = 4
**BLOCK SIZE = 512 BUFFER OF BLOCK = 64
**TEST SIZE = 32 kbyte
*************************************************
!!!!Warning it will crash the SD card data!!!!
###Push Any Key to Continue###
Tested Block 0/15523840 Write s=629 KByte/s Read s=514 KByte/s
Tested Block 1024/15523840 Write s=629 KByte/s Read s=514 KByte/s
| FPGA | LUTs | Registers | Memory Blocks | Multipliers | fMAX (MHz)1 | Efinity® Version2 | |
|---|---|---|---|---|---|---|---|
| System Clock | SD Host Clock | ||||||
| T120 BGA576 C4 | 9,114 | 9,370 | 82 | 4 | 61 | 107 | 2023.2 |
1 Using
default parameter settings.
2 Using
Verilog HDL.