Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine mode indicator #174

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rtl/cve2_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module cve2_core import cve2_pkg::*; #(
// CPU Control Signals
input logic fetch_enable_i,
output logic core_busy_o,
output logic priv_mode_o
priv_lvl_e priv_mode_o
);

localparam int unsigned PMP_NUM_CHAN = 3;
Expand Down Expand Up @@ -281,7 +281,7 @@ module cve2_core import cve2_pkg::*; #(
// interfaces to finish ongoing operations.
assign core_busy_o = ctrl_busy | if_busy | lsu_busy;

assign priv_mode_o = ( priv_mode_id == PRIV_LVL_M );
assign priv_mode_o = priv_mode_id;

//////////////
// IF stage //
Expand Down
2 changes: 1 addition & 1 deletion rtl/cve2_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module cve2_top import cve2_pkg::*; #(
// CPU Control Signals
input logic fetch_enable_i,
output logic core_sleep_o,
output logic priv_mode_o
priv_lvl_e priv_mode_o
szbieg marked this conversation as resolved.
Show resolved Hide resolved
);

// Scrambling Parameter
Expand Down
Loading