- Removed latch on CSRCReadValM in csrc.sv

- Changed top level to wallypipelinedhart
This commit is contained in:
Teo Ene 2021-01-29 15:23:28 -06:00
parent 8679e9aae3
commit 9eafdbe349

View File

@ -182,7 +182,11 @@ module csrc #(parameter
IllegalCSRCAccessM = 1;
end
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
always_comb
if (PrivilegeModeW == `M_MODE ||
@ -216,7 +220,11 @@ module csrc #(parameter
IllegalCSRCAccessM = 1;
end
endcase
end else IllegalCSRCAccessM = 1;
end else
begin
IllegalCSRCAccessM = 1; // no privileges for this coute
CSRCReadValM = 0;
end
end else begin
assign CSRCReadValM = 0;
assign IllegalCSRCAccessM = 1;