add ECALL inst

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-04-25 17:11:53 +08:00
parent 02bcee9aa9
commit 4a530ab894
1 changed files with 5 additions and 2 deletions

View File

@ -114,6 +114,7 @@
`define INST_RET 32'h00008067
`define INST_FENCE 7'b0001111
`define INST_ECALL 32'h73
// J type inst
`define INST_TYPE_B 7'b1100011
@ -139,10 +140,12 @@
`define CSR_MTVEC 12'h305
`define CSR_MCAUSE 12'h342
`define CSR_MEPC 12'h341
`define CSR_MIE 12'h304
`define CSR_MSTATUS 12'h300
`define RomNum 2048 // rom depth(how many words)
`define RomNum 4096 // rom depth(how many words)
`define MemNum 2048 // memory depth(how many words)
`define MemNum 4096 // memory depth(how many words)
`define MemBus 31:0
`define MemAddrBus 31:0