mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
moved privilege dfinitions into wally-constants, upgraded relevant includes
This commit is contained in:
parent
4a00fbaf04
commit
b99b5f8e0e
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -42,10 +42,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -45,10 +45,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -47,10 +47,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
//`define N_SUPPORTED ((MISA >> 13) % 2 == 1)
|
||||||
`define N_SUPPORTED 0
|
`define N_SUPPORTED 0
|
||||||
|
|
||||||
`define M_MODE (2'b11)
|
|
||||||
`define S_MODE (2'b01)
|
|
||||||
`define U_MODE (2'b00)
|
|
||||||
|
|
||||||
// Microarchitectural Features
|
// Microarchitectural Features
|
||||||
`define UARCH_PIPELINED 1
|
`define UARCH_PIPELINED 1
|
||||||
`define UARCH_SUPERSCALR 0
|
`define UARCH_SUPERSCALR 0
|
||||||
|
@ -45,3 +45,9 @@
|
|||||||
`define SV39 8
|
`define SV39 8
|
||||||
`define SV48 9
|
`define SV48 9
|
||||||
|
|
||||||
|
|
||||||
|
// constants defining different privilege modes
|
||||||
|
// defined in Table 1.1 of the privileged spec
|
||||||
|
`define M_MODE (2'b11)
|
||||||
|
`define S_MODE (2'b01)
|
||||||
|
`define U_MODE (2'b00)
|
@ -27,6 +27,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module pmpchecker (
|
module pmpchecker (
|
||||||
input logic clk, reset,
|
input logic clk, reset,
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module csr #(parameter
|
module csr #(parameter
|
||||||
// Constants
|
// Constants
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module csrc (
|
module csrc (
|
||||||
input logic clk, reset,
|
input logic clk, reset,
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module csrsr (
|
module csrsr (
|
||||||
input logic clk, reset, StallW,
|
input logic clk, reset, StallW,
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module privdec (
|
module privdec (
|
||||||
input logic [31:20] InstrM,
|
input logic [31:20] InstrM,
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
// *** remove signals not needed by PMA/PMP now that it is moved
|
// *** remove signals not needed by PMA/PMP now that it is moved
|
||||||
module privileged (
|
module privileged (
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
module trap (
|
module trap (
|
||||||
input logic clk, reset,
|
input logic clk, reset,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
`include "wally-constants.vh"
|
||||||
|
|
||||||
|
|
||||||
module testbench();
|
module testbench();
|
||||||
|
Loading…
Reference in New Issue
Block a user