Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HepoH3 committed Oct 5, 2023
1 parent 9f68498 commit 5bcdf90
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Labs/10. Interrupt subsystem/csr_pkg.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package csr_pkg;

localparam CSR_RW = 3'b001;
localparam CSR_RS = 3'b010;
localparam CSR_RC = 3'b011;
localparam CSR_RWI = 3'b101;
localparam CSR_RSI = 3'b110;
localparam CSR_RCI = 3'b111;

localparam MIE_ADDR = 12'h304;
localparam MTVEC_ADDR = 12'h305;
localparam MSCRATCH_ADDR = 12'h340;
localparam MEPC_ADDR = 12'h341;
localparam MCAUSE_ADDR = 12'h342;

endpackage

0 comments on commit 5bcdf90

Please sign in to comment.