-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |