Line 102... |
Line 102... |
input logic csr2exu_mstatus_mie_up_i, // MSTATUS or MIE update in the current cycle
|
input logic csr2exu_mstatus_mie_up_i, // MSTATUS or MIE update in the current cycle
|
|
|
// EXU <-> DMEM interface
|
// EXU <-> DMEM interface
|
output logic exu2dmem_req_o, // Data memory request
|
output logic exu2dmem_req_o, // Data memory request
|
output logic exu2dmem_cmd_o, // Data memory command - cp.7
|
output logic exu2dmem_cmd_o, // Data memory command - cp.7
|
output type_scr1_mem_width_e exu2dmem_width_o, // Data memory width
|
output logic [1:0] exu2dmem_width_o, // Data memory width
|
output logic [`SCR1_DMEM_AWIDTH-1:0] exu2dmem_addr_o, // Data memory address
|
output logic [`SCR1_DMEM_AWIDTH-1:0] exu2dmem_addr_o, // Data memory address
|
output logic [`SCR1_DMEM_DWIDTH-1:0] exu2dmem_wdata_o, // Data memory write data
|
output logic [`SCR1_DMEM_DWIDTH-1:0] exu2dmem_wdata_o, // Data memory write data
|
input logic dmem2exu_req_ack_i, // Data memory request acknowledge
|
input logic dmem2exu_req_ack_i, // Data memory request acknowledge
|
input logic [`SCR1_DMEM_DWIDTH-1:0] dmem2exu_rdata_i, // Data memory read data
|
input logic [`SCR1_DMEM_DWIDTH-1:0] dmem2exu_rdata_i, // Data memory read data
|
input logic [1:0] dmem2exu_resp_i, // Data memory response - cp.7
|
input logic [1:0] dmem2exu_resp_i, // Data memory response - cp.7
|
Line 165... |
Line 165... |
|
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
// Local types declaration
|
// Local types declaration
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
|
|
typedef enum logic {
|
//typedef enum logic {
|
SCR1_CSR_INIT,
|
parameter SCR1_CSR_INIT = 1'b0;
|
SCR1_CSR_RDY
|
parameter SCR1_CSR_RDY = 1'b1;
|
} scr1_csr_access_e;
|
//} scr1_csr_access_e;
|
|
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
// Local signals declaration
|
// Local signals declaration
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
|
|
Line 278... |
Line 278... |
logic [`SCR1_MPRF_AWIDTH-1:0] mprf_rs2_addr;
|
logic [`SCR1_MPRF_AWIDTH-1:0] mprf_rs2_addr;
|
|
|
// CSR signals
|
// CSR signals
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
// CSR access register
|
// CSR access register
|
scr1_csr_access_e csr_access_ff;
|
logic csr_access_ff;
|
scr1_csr_access_e csr_access_next;
|
logic csr_access_next;
|
logic csr_access_init;
|
logic csr_access_init;
|
|
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
// Instruction execution queue
|
// Instruction execution queue
|
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|