microprobe.target.isa.operand.OperandValueSet
- class OperandValueSet(name, descr, values, rep)[source]
Bases:
OperandClass to represent a value set operand.
Methods
__init__(name, descr, values, rep)- param name:
access(dummy)- param dummy:
check(value)Check if a value is valid for the operand.
codification(value)- param value:
copy()Return a copy of the operand.
Return a random possible value for the operand.
representation(value)- param value:
set_valid_values(values)- param values:
values()Return the possible value of the operand.
Attributes
Operand is for generating absolute addresses (
bool).Operand is the base register for an address (
bool).Operand is an immediate of an address (
bool).Operand is the index register for an address (
bool).Operand is for generating relative addresses (
bool).Operand is constant (
bool).Operand description (
str).Operand is float (
bool).Operand is immediate (
bool).Operand name (
str).Operand is vector (
bool).
- property shift
- property min
- check(value)
Check if a value is valid for the operand.
- Parameters:
- Raises:
microprobe.exceptions.MicroprobeValueError – if the value is not allowed for the operand