mirror of
https://github.com/olofk/serv.git
synced 2026-02-26 08:13:40 +00:00
Move CSR_SOURCE_ constants into serv_csr.v
This commit is contained in:
@@ -29,7 +29,11 @@ module serv_csr
|
||||
input wire i_d,
|
||||
output wire o_q);
|
||||
|
||||
`include "serv_params.vh"
|
||||
localparam [1:0]
|
||||
CSR_SOURCE_CSR = 2'b00,
|
||||
CSR_SOURCE_EXT = 2'b01,
|
||||
CSR_SOURCE_SET = 2'b10,
|
||||
CSR_SOURCE_CLR = 2'b11;
|
||||
|
||||
reg mstatus;
|
||||
reg mstatus_mie;
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
localparam [1:0]
|
||||
CSR_SOURCE_CSR = 2'b00,
|
||||
CSR_SOURCE_EXT = 2'b01,
|
||||
CSR_SOURCE_SET = 2'b10,
|
||||
CSR_SOURCE_CLR = 2'b11;
|
||||
|
||||
localparam [1:0]
|
||||
CSR_MSCRATCH = 2'b00,
|
||||
CSR_MTVEC = 2'b01,
|
||||
|
||||
Reference in New Issue
Block a user