feat: implement privileged mode support

This commit is contained in:
abnerhexu
2026-06-29 07:00:55 +00:00
parent a32db39c80
commit b6afa61e66
89 changed files with 49571 additions and 43647 deletions

View File

@@ -0,0 +1,19 @@
// Generated by CIRCT firtool-1.139.0
module PrivilegeControl(
input clock,
reset,
input [1:0] io_nextPriv,
input io_setPriv,
output [1:0] io_priv
);
reg [1:0] privReg;
always @(posedge clock) begin
if (reset)
privReg <= 2'h3;
else if (io_setPriv)
privReg <= io_nextPriv;
end // always @(posedge)
assign io_priv = privReg;
endmodule