Git Product home page Git Product logo

fpga-sdcard-spi's Introduction

test docs

FPGA SDcard File Reader

可能是首个 基于RTL 的 SD 卡 文件系统 读取器

注:该库是基于SD卡的 SPI总线 的,笔者也有 SD版本 。 与该 SPI版本 同样稳定且更 高效 ,推荐尝试 SD版本

SDv1.1 card SDv2 card SDHCv2 card SDXCv2 card
FAT16 ✔️ ✔️ NaN NaN
FAT32 ✔️ ✔️ ✔️ NaN
exFAT

特点

  • 硬件支持SDv1.1SDv2SDHCv2 (典型大小 32MB~32GB,覆盖了最常见的一类卡)。
  • 软件支持FAT32FAT16
  • 提供功能 : 指定文件名 读取文件内容 ;或指定扇区号 读取扇区内容
  • 纯 RTL 实现 :完全使用 SystemVerilog ,方便移植

使用方法

推荐硬件电路

如图,使用 SD 卡的 SPI模式 。其中:

  • spi_cs_nspi_miso 的上拉电阻是必要的。
  • spi_mosi 的上拉电阻是可选的。
  • spi_clk 不能加上拉电阻
  • DAT1DAT2 是在 SPI模式 下用不到的两个引脚,建议加上拉电阻。

推荐硬件电路

应用场景

  • 在没有 MCU 或 软核 辅助的 FPGA 系统中,实现一些离线配置,例如任意波发生器的波形配置。
  • 为 FPGA 中的软核配置运行程序或操作系统。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.