diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2013-12-09 15:56:33 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2013-12-09 15:56:33 -0800 |
commit | a80067441555d749160d2bcc5362604c4ee91395 (patch) | |
tree | e258646fe37c2b564607d84cb67a55a509277c95 /inst.chisel | |
parent | 2d11bac94537e08b30b8ace0eb39ecbbbc386c8e (diff) | |
download | riscv-opcodes-a80067441555d749160d2bcc5362604c4ee91395.zip riscv-opcodes-a80067441555d749160d2bcc5362604c4ee91395.tar.gz riscv-opcodes-a80067441555d749160d2bcc5362604c4ee91395.tar.bz2 |
New RDCYCLE encoding
Diffstat (limited to 'inst.chisel')
-rw-r--r-- | inst.chisel | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/inst.chisel b/inst.chisel index 1b22a3e..0b68a65 100644 --- a/inst.chisel +++ b/inst.chisel @@ -181,60 +181,60 @@ object Instructions { def CUSTOM3_RD_RS1_RS2 = Bits("b?????????????????111?????1111011") } object CSRs { - val sup0 = 1280 - val fflags = 1 - val frm = 2 - val fcsr = 3 - val cycle = 4 - val time = 5 - val instret = 6 - val sup1 = 1281 - val evec = 1288 - val cause = 1289 - val status = 1290 - val hartid = 1291 - val impl = 1292 - val epc = 1282 - val send_ipi = 1294 - val clear_ipi = 1295 - val badvaddr = 1283 - val ptbr = 1284 - val stats = 1308 - val reset = 1309 - val tohost = 1310 - val asid = 1285 - val count = 1286 - val compare = 1287 - val fromhost = 1311 - val fatc = 1293 + val fflags = 0x1 + val frm = 0x2 + val fcsr = 0x3 + val sup0 = 0x500 + val sup1 = 0x501 + val epc = 0x502 + val badvaddr = 0x503 + val ptbr = 0x504 + val asid = 0x505 + val count = 0x506 + val compare = 0x507 + val evec = 0x508 + val cause = 0x509 + val status = 0x50a + val hartid = 0x50b + val impl = 0x50c + val fatc = 0x50d + val send_ipi = 0x50e + val clear_ipi = 0x50f + val stats = 0x51c + val reset = 0x51d + val tohost = 0x51e + val fromhost = 0x51f + val cycle = 0xc00 + val time = 0xc01 + val instret = 0xc02 val all = { val res = collection.mutable.ArrayBuffer[Int]() - res += sup0 res += fflags res += frm res += fcsr - res += cycle - res += time - res += instret + res += sup0 res += sup1 + res += epc + res += badvaddr + res += ptbr + res += asid + res += count + res += compare res += evec res += cause res += status res += hartid res += impl - res += epc + res += fatc res += send_ipi res += clear_ipi - res += badvaddr - res += ptbr res += stats res += reset res += tohost - res += asid - res += count - res += compare res += fromhost - res += fatc + res += cycle + res += time + res += instret res.toArray } } |