OpenCores
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/grpSdVerification/unitSdCoreTransaction
    from Rev 156 to Rev 158
    Reverse comparison

Rev 156 → Rev 158

/src/SdCoreTransaction.sv
24,9 → 24,35
data.size() == 0;
}
 
kind == readSingleBlock;
kind == readSingleBlock ||
kind == writeSingleBlock;
 
startAddr inside {[0:1000]};
endAddr inside {[0:1000]};
};
 
function SdCoreTransaction copy();
SdCoreTransaction rhs = new();
rhs.kind = this.kind;
rhs.startAddr = this.startAddr;
rhs.endAddr = this.endAddr;
rhs.data = new[this.data.size()];
rhs.data = this.data;
return rhs;
endfunction
 
function string toString();
string s;
$swrite(s, "kind: %p, addresses: %d, %d, data: %p", kind, startAddr, endAddr, data);
return s;
endfunction
 
function bit compare(input SdCoreTransaction rhs);
if (rhs.kind == this.kind && rhs.startAddr == this.startAddr &&
rhs.endAddr == this.endAddr && rhs.data == this.data) return 1;
else return 0;
endfunction
 
endclass
 
class SdCoreTransactionSequence;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.