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
/
- from Rev 154 to Rev 155
- ↔ Reverse comparison
Rev 154 → Rev 155
/sdhc-sc-core/trunk/src/grpSd/unitSdWbSlave/src/WbTransaction.sv
2,9 → 2,41
`ifndef WBTRANSACTION_SV |
`define WBTRANSACTION_SV |
|
typedef bit[3:0] WbAddr; |
typedef bit[31:0] WbData; |
|
class WbTransaction; |
|
typedef enum { Read, Write } kinds; |
typedef enum { Classic, Burst, End } types; |
|
rand types Type; |
rand kinds Kind; |
rand WbAddr Addr; |
rand WbData Data; |
|
endclass |
|
class WbTransactionSequence; |
|
rand WbTransaction transactions[]; |
int size = 0; |
|
constraint Transactions { |
transactions.size() == size; |
|
foreach(transactions[i]) { |
if (i > 0) |
if (transactions[i-1].Type == WbTransaction::Burst) |
transactions[i].Type == WbTransaction::Burst || WbTransaction::End; |
} |
|
if (transactions[size - 1].Type == WbTransaction::Burst) |
transactions[size].Type == WbTransaction::End; |
}; |
|
endclass |
|
typedef mailbox #(WbTransaction) WbTransMb; |
|
`endif |
/sdhc-sc-core/trunk/src/grpSdVerification/unitSdCoreChecker/src/ExpectedResult.sv
0,0 → 1,9
`ifndef EXPECTEDRESULT_SV |
`define EXPECTEDRESULT_SV |
|
class ExpectedResult; |
endclass |
|
typedef mailbox #(ExpectedResult) ExpectedResultMb; |
|
`endif |
/sdhc-sc-core/trunk/src/grpSdVerification/unitSdCoreTransaction/src/SdCoreTransaction.sv
13,6 → 13,18
rand int endAddr; |
rand DataBlock data[]; |
|
constraint datablocks { |
if (kind == writeMultipleBlocks) { |
data.size() inside {[0:1000]}; |
} |
else if (kind == writeSingleBlock) { |
data.size() == 1; |
} |
else { |
data.size() == 0; |
} |
}; |
|
endclass |
|
class SdCoreTransactionSequence; |