URL
https://opencores.org/ocsvn/sdhc-sc-core/sdhc-sc-core/trunk
Subversion Repositories sdhc-sc-core
Compare Revisions
- This comparison shows the changes necessary to convert path
/sdhc-sc-core/trunk/src/grpSd/unitSdCardModel
- from Rev 98 to Rev 99
- ↔ Reverse comparison
Rev 98 → Rev 99
/src/SdCardModel.sv
163,6 → 163,24
response = new(cSdCmdSelCard, state); |
response.send(ICmd); |
|
// expect CMD55 |
recv(); |
assert(recvcmd.id == cSdCmdNextIsACMD); |
assert(recvcmd.arg[31:16] == rca); |
state.recvCMD55(); |
|
// respond with R1 |
response = new(cSdCmdNextIsACMD, state); |
response.send(ICmd); |
|
// expect ACMD51 |
recv(); |
assert(recvcmd.id == cSdCmdSendSCR); |
|
// respond with R1 |
response = new(cSdCmdSendSCR, state); |
response.send(ICmd); |
|
-> InitDone; |
|
endtask |
/src/SdCommand.sv
24,7 → 24,8
} SDCommandId; |
|
typedef enum { |
cSdCmdACMD41 = 41 |
cSdCmdACMD41 = 41, |
cSdCmdSendSCR = 51 |
} SDAppCommandId; |
|
const SDCommandArg cSdArgACMD41HCS = 'b01000000111111111000000000000000; |
140,7 → 141,7
|
class SDCommandR1 extends SDCommandResponse; |
|
function new(SDCommandId id, SDCardState state); |
function new(int id, SDCardState state); |
startbit = 0; |
transbit = 0; |
this.id = id; |
147,7 → 148,7
this.arg = state.get(); |
endbit = 1; |
endfunction |
|
|
endclass |
|
include "../../unitSdCardModel/src/SDOCR.sv"; |