harbaum / MiSTeryNano

Atari STE MiSTery core for the Tang Nano 20k FPGA
133 stars 17 forks source link

SD Card #53

Closed MATRIX7878 closed 5 months ago

MATRIX7878 commented 5 months ago

Hello,

 I wanted to confirm a few things.
  1. This project uses the SD card in SD 4-bit mode
  2. I cannot immediately find the SD card calls. I see the three files in the misc folder, but I cannot find the sd_reader file. Where do you call the functions to write and read to the SD card?

Thank you

harbaum commented 5 months ago

See https://github.com/harbaum/MiSTeryNano/blob/main/src/misc/sd_rw.v

MATRIX7878 commented 5 months ago

Ah, so it is in 4-bit SD mode. I see that that file is for reading/writing. I was asking for an example where data was being transferred. I guess I was foolishly thinking of seeing a block/multiblock read and write example in the code somewhere. Thank you though.