mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
Added SPI support to Imperas testbenches
This commit is contained in:
parent
eecc63772d
commit
b268a3b9d3
@ -189,6 +189,9 @@ module testbench;
|
|||||||
end
|
end
|
||||||
if (P.SDC_SUPPORTED) begin
|
if (P.SDC_SUPPORTED) begin
|
||||||
void'(rvviRefMemorySetVolatile(P.SDC_BASE, (P.SDC_BASE + P.SDC_RANGE)));
|
void'(rvviRefMemorySetVolatile(P.SDC_BASE, (P.SDC_BASE + P.SDC_RANGE)));
|
||||||
|
end
|
||||||
|
if (P.SPI_SUPPORTED) begin
|
||||||
|
void'(rvviRefMemorySetVolatile(P.SPI_BASE, (P.SPI_BASE + P.SPI_RANGE)));
|
||||||
end
|
end
|
||||||
|
|
||||||
if(P.XLEN==32) begin
|
if(P.XLEN==32) begin
|
||||||
|
@ -375,6 +375,9 @@ module testbench;
|
|||||||
if (P.SDC_SUPPORTED) begin
|
if (P.SDC_SUPPORTED) begin
|
||||||
void'(rvviRefMemorySetVolatile(P.SDC_BASE, (P.SDC_BASE + P.SDC_RANGE)));
|
void'(rvviRefMemorySetVolatile(P.SDC_BASE, (P.SDC_BASE + P.SDC_RANGE)));
|
||||||
end
|
end
|
||||||
|
if (P.SPI_SUPPORTED) begin
|
||||||
|
void'(rvviRefMemorySetVolatile(P.SPI_BASE, (P.SPI_BASE + P.SPI_RANGE)));
|
||||||
|
end
|
||||||
|
|
||||||
if(P.XLEN==32) begin
|
if(P.XLEN==32) begin
|
||||||
void'(rvviRefCsrSetVolatile(0, 32'hC80)); // CYCLEH
|
void'(rvviRefCsrSetVolatile(0, 32'hC80)); // CYCLEH
|
||||||
|
Loading…
Reference in New Issue
Block a user