1
0
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:
Olof Kindgren
2020-05-28 16:32:53 +02:00
parent 19e94bc032
commit 119473d506
2 changed files with 5 additions and 7 deletions

View File

@@ -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;

View File

@@ -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,