mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Add mcause tests to testbench
This commit is contained in:
parent
ae7868b166
commit
8c7e247b58
@ -323,6 +323,11 @@ string tests32i[] = {
|
|||||||
string testsBP64[] = '{
|
string testsBP64[] = '{
|
||||||
"rv64BP/reg-test", "10000"
|
"rv64BP/reg-test", "10000"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
string tests64p[] = '{
|
||||||
|
"rv64p/WALLY-CAUSE", "3000"
|
||||||
|
};
|
||||||
|
|
||||||
string tests[];
|
string tests[];
|
||||||
string ProgramAddrMapFile, ProgramLabelMapFile;
|
string ProgramAddrMapFile, ProgramLabelMapFile;
|
||||||
logic [`AHBW-1:0] HRDATAEXT;
|
logic [`AHBW-1:0] HRDATAEXT;
|
||||||
@ -341,7 +346,7 @@ string tests32i[] = {
|
|||||||
flopenr #(`XLEN) PCWReg(clk, reset, ~dut.hart.ieu.dp.StallW, dut.hart.ifu.PCM, PCW);
|
flopenr #(`XLEN) PCWReg(clk, reset, ~dut.hart.ieu.dp.StallW, dut.hart.ifu.PCM, PCW);
|
||||||
flopenr #(32) InstrWReg(clk, reset, ~dut.hart.ieu.dp.StallW, dut.hart.ifu.InstrM, InstrW);
|
flopenr #(32) InstrWReg(clk, reset, ~dut.hart.ieu.dp.StallW, dut.hart.ifu.InstrM, InstrW);
|
||||||
// pick tests based on modes supported
|
// pick tests based on modes supported
|
||||||
initial
|
initial begin
|
||||||
if (`XLEN == 64) begin // RV64
|
if (`XLEN == 64) begin // RV64
|
||||||
if (TESTSBP) begin
|
if (TESTSBP) begin
|
||||||
tests = testsBP64;
|
tests = testsBP64;
|
||||||
@ -355,6 +360,7 @@ string tests32i[] = {
|
|||||||
if (`A_SUPPORTED) tests = {tests, tests64a};
|
if (`A_SUPPORTED) tests = {tests, tests64a};
|
||||||
end
|
end
|
||||||
// tests = {tests64a, tests};
|
// tests = {tests64a, tests};
|
||||||
|
tests = {tests, tests64p};
|
||||||
end else begin // RV32
|
end else begin // RV32
|
||||||
// *** add the 32 bit bp tests
|
// *** add the 32 bit bp tests
|
||||||
tests = {tests32i};
|
tests = {tests32i};
|
||||||
@ -364,6 +370,10 @@ string tests32i[] = {
|
|||||||
// if (`F_SUPPORTED) tests = {tests32f, tests};
|
// if (`F_SUPPORTED) tests = {tests32f, tests};
|
||||||
if (`A_SUPPORTED) tests = {tests, tests32a};
|
if (`A_SUPPORTED) tests = {tests, tests32a};
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
string signame, memfilename;
|
string signame, memfilename;
|
||||||
|
|
||||||
logic [31:0] GPIOPinsIn, GPIOPinsOut, GPIOPinsEn;
|
logic [31:0] GPIOPinsIn, GPIOPinsOut, GPIOPinsEn;
|
||||||
|
@ -42,7 +42,7 @@ module testbench();
|
|||||||
logic [`XLEN-1:0] meminit;
|
logic [`XLEN-1:0] meminit;
|
||||||
//string tests64i[] =
|
//string tests64i[] =
|
||||||
string tests[] = '{
|
string tests[] = '{
|
||||||
"rv64p/WALLY-CAUSE", "4000"
|
"rv64p/WALLY-CAUSE", "3000"
|
||||||
};
|
};
|
||||||
string ProgramAddrMapFile, ProgramLabelMapFile;
|
string ProgramAddrMapFile, ProgramLabelMapFile;
|
||||||
logic [`AHBW-1:0] HRDATAEXT;
|
logic [`AHBW-1:0] HRDATAEXT;
|
||||||
|
Loading…
Reference in New Issue
Block a user