[otbn] Fix is_dest check in rig
This code is supposed to check which operands are destinations (to see
whether we're seeing a read or a write). Unfortunately, I forgot the
parentheses for the function call, so was checking whether a function
was none or not (it isn't).
Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
diff --git a/hw/ip/otbn/util/rig/model.py b/hw/ip/otbn/util/rig/model.py
index 4784da4..5bad3f2 100644
--- a/hw/ip/otbn/util/rig/model.py
+++ b/hw/ip/otbn/util/rig/model.py
@@ -687,7 +687,7 @@
for operand, op_val in zip(insn.operands, prog_insn.operands):
op_type = operand.op_type
if isinstance(op_type, RegOperandType):
- if op_type.is_dest:
+ if op_type.is_dest():
pending_writes.append((op_type.reg_type, op_val))
else:
self.read_reg(op_type.reg_type, op_val)