~poptart/riscv-business

9a35647f23d0bd73022cfc6dd019d92d76328bcc — terrorbyte 2 years ago 9735691
Added some trash scripts to try and speed up instruction lookups
2 files changed, 18 insertions(+), 0 deletions(-)

A util/lookup.table
A util/trashfmt.py
A util/lookup.table => util/lookup.table +15 -0
@@ 0,0 1,15 @@
#Instruction:OpCodeMask:ImmediateMask:Funct7Mask:Funct3Mask:rs1Mask:rs2Mask:rdMask
R:x0,x0,x0:00000000
I:x0,0(x0):00000FFF
S:x0,0(x0):FFF00F00
SB:
U:x0,0:FFFFF000
UJ:x0,0:FFFFF000
CR:
CI:
CSS:
CIW:
CL:
CS:
CB:
CJ:

A util/trashfmt.py => util/trashfmt.py +3 -0
@@ 0,0 1,3 @@
#!/usr/bin/env python3
import sys
print('{:032b}'.format(int(sys.argv[1], 16)))