avl_riscv_coverage._instr module

class avl_riscv_coverage._instr.Instruction(pc: int, encoding_bytes: int)[source]
__init__(pc: int, encoding_bytes: int) None[source]

Constructor

Parameters:
  • pc (int) – Program counter

  • encoding_bytes (int) – Instruction encoding

Create 2 way link to next instruction (if you can)

Next / Prev refers to location in program (i.e. pc +/- one instruction) not location in trace

Parameters:

next (Instruction) – Next instruction

decode() None[source]

Decode instruction to get mnemonic and operands