diff options
Diffstat (limited to 'riscv/riscv_insts_end.sail')
| -rw-r--r-- | riscv/riscv_insts_end.sail | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/riscv/riscv_insts_end.sail b/riscv/riscv_insts_end.sail new file mode 100644 index 00000000..144f06e3 --- /dev/null +++ b/riscv/riscv_insts_end.sail @@ -0,0 +1,15 @@ +/* End definitions */ +end ast +end execute +end assembly +end encdec +end encdec_compressed + +val cast print_insn : ast -> string +function print_insn insn = assembly(insn) + +val decode : bits(32) -> option(ast) effect pure +function decode bv = Some(encdec(bv)) + +val decodeCompressed : bits(16) -> option(ast) effect pure +function decodeCompressed bv = Some(encdec_compressed(bv)) |
