Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (CCS) // This should be HIGH if SD Card is SDHC.
- Host_Command_Arg <= gd_start_sector * 4; // SDHC cards use 512-byte SECTOR addressing - Need to multiply the GD sector offset by 4.
- else
- Host_Command_Arg <= gd_start_sector * 2048; // Low-density SD Cards use BYTE addressing - Need to multiply the GD sector offset by 2048.
- Host_Command_Type <= CMD_Multiple_Block_Read;
- trig_Host_Command <= 1'b1;
- state <= 10'd3;
- end
- 3: begin
- trig_Host_Command <= 1'b0; // Remember to only strobe "trig_Host_command" for ONE clock!!
- state <= 10'd4;
- end
Advertisement
Add Comment
Please, Sign In to add comment