mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fix wallyTracer bug
This commit is contained in:
parent
51d7eea98a
commit
9d2a5c6e03
@ -525,6 +525,7 @@ module wallyTracer import cvw::*; #(parameter cvw_t P) (rvviTrace rvvi);
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// M-mode trap CSRs
|
// M-mode trap CSRs
|
||||||
assign rvvi.csr_wb[0][0][12'h300] = CSR_W[12'h300];
|
assign rvvi.csr_wb[0][0][12'h300] = CSR_W[12'h300];
|
||||||
assign rvvi.csr_wb[0][0][12'h302] = CSR_W[12'h302];
|
assign rvvi.csr_wb[0][0][12'h302] = CSR_W[12'h302];
|
||||||
@ -593,7 +594,6 @@ module wallyTracer import cvw::*; #(parameter cvw_t P) (rvviTrace rvvi);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// M-mode trap CSRs
|
// M-mode trap CSRs
|
||||||
assign rvvi.csr[0][0][12'h300] = CSRArray[12'h300];
|
assign rvvi.csr[0][0][12'h300] = CSRArray[12'h300];
|
||||||
assign rvvi.csr[0][0][12'h302] = CSRArray[12'h302];
|
assign rvvi.csr[0][0][12'h302] = CSRArray[12'h302];
|
||||||
@ -660,7 +660,7 @@ module wallyTracer import cvw::*; #(parameter cvw_t P) (rvviTrace rvvi);
|
|||||||
assign rvvi.csr[0][0][12'h15D] = CSRArray[12'h15D];
|
assign rvvi.csr[0][0][12'h15D] = CSRArray[12'h15D];
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
// PMP CFG 3A0 to 3AF
|
// PMP CFG 3A0 to 3AF
|
||||||
for(index='h3A0; index<='h3AF; index++) begin
|
for(index='h3A0; index<='h3AF; index++) begin
|
||||||
assign CSR_W[index] = (CSRArrayOld[index] != CSRArray[index]) ? 1 : 0;
|
assign CSR_W[index] = (CSRArrayOld[index] != CSRArray[index]) ? 1 : 0;
|
||||||
@ -735,11 +735,7 @@ module wallyTracer import cvw::*; #(parameter cvw_t P) (rvviTrace rvvi);
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if(HaltW) $finish;
|
if(HaltW) $finish;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user