more cpu decode conversion
[rv32.git] / riscvdefs.py
index e7a2ab319fb64f6f6d076cca5e17934e9ebac730..14267c5be3650d0fe7ab4157d9f97817039fdac1 100644 (file)
@@ -1,4 +1,3 @@
-
 """
 /*
  * Copyright 2018 Jacob Lifshay
@@ -84,14 +83,17 @@ funct3_blt = Constant(0x4, 3)
 funct3_bge = Constant(0x5, 3)
 funct3_bltu = Constant(0x6, 3)
 funct3_bgeu = Constant(0x7, 3)
+
 funct3_lb = Constant(0x0, 3)
 funct3_lh = Constant(0x1, 3)
 funct3_lw = Constant(0x2, 3)
 funct3_lbu = Constant(0x4, 3)
 funct3_lhu = Constant(0x5, 3)
+
 funct3_sb = Constant(0x0, 3)
 funct3_sh = Constant(0x1, 3)
 funct3_sw = Constant(0x2, 3)
+
 funct3_addi = Constant(0x0, 3)
 funct3_slli = Constant(0x1, 3)
 funct3_slti = Constant(0x2, 3)
@@ -100,6 +102,7 @@ funct3_xori = Constant(0x4, 3)
 funct3_srli_srai = Constant(0x5, 3)
 funct3_ori = Constant(0x6, 3)
 funct3_andi = Constant(0x7, 3)
+
 funct3_add_sub = Constant(0x0, 3)
 funct3_sll = Constant(0x1, 3)
 funct3_slt = Constant(0x2, 3)
@@ -108,8 +111,10 @@ funct3_xor = Constant(0x4, 3)
 funct3_srl_sra = Constant(0x5, 3)
 funct3_or = Constant(0x6, 3)
 funct3_and = Constant(0x7, 3)
+
 funct3_fence = Constant(0x0, 3)
 funct3_fence_i = Constant(0x1, 3)
+
 funct3_ecall_ebreak = Constant(0x0, 3)
 funct3_csrrw = Constant(0x1, 3)
 funct3_csrrs = Constant(0x2, 3)