mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
Merge branch 'main' of https://github.com/davidharrishmc/riscv-wally into main
This commit is contained in:
commit
6c76962847
@ -182,7 +182,11 @@ module csrc #(parameter
|
|||||||
IllegalCSRCAccessM = 1;
|
IllegalCSRCAccessM = 1;
|
||||||
end
|
end
|
||||||
endcase
|
endcase
|
||||||
end else IllegalCSRCAccessM = 1; // no privileges for this coute
|
end else
|
||||||
|
begin
|
||||||
|
IllegalCSRCAccessM = 1; // no privileges for this coute
|
||||||
|
CSRCReadValM = 0;
|
||||||
|
end
|
||||||
else // 32-bit counter reads
|
else // 32-bit counter reads
|
||||||
always_comb
|
always_comb
|
||||||
if (PrivilegeModeW == `M_MODE ||
|
if (PrivilegeModeW == `M_MODE ||
|
||||||
@ -216,7 +220,11 @@ module csrc #(parameter
|
|||||||
IllegalCSRCAccessM = 1;
|
IllegalCSRCAccessM = 1;
|
||||||
end
|
end
|
||||||
endcase
|
endcase
|
||||||
end else IllegalCSRCAccessM = 1;
|
end else
|
||||||
|
begin
|
||||||
|
IllegalCSRCAccessM = 1; // no privileges for this coute
|
||||||
|
CSRCReadValM = 0;
|
||||||
|
end
|
||||||
end else begin
|
end else begin
|
||||||
assign CSRCReadValM = 0;
|
assign CSRCReadValM = 0;
|
||||||
assign IllegalCSRCAccessM = 1;
|
assign IllegalCSRCAccessM = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user