microprobe.target.isa.operand.OperandImmRange

class OperandImmRange(name, descr, minvalue, maxvalue, step, aim, shift, novalues, add)[source]

Bases: microprobe.target.isa.operand.Operand

Class to represent a immediate range operand.

__init__(name, descr, minvalue, maxvalue, step, aim, shift, novalues, add)[source]
Parameters:
  • name
  • descr
  • minvalue
  • maxvalue
  • step
  • aim
  • shift
  • novalues
  • add

Methods

__init__(name, descr, minvalue, maxvalue, …)
param name:
access(dummy)
param dummy:
check(value)
param value:
codification(value)
param value:
copy()
random_value() 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

add
address_absolute Operand is for generating absolute addresses (bool).
address_base Operand is the base register for an address (bool).
address_immediate Operand is an immediate of an address (bool).
address_index Operand is the index register for an address (bool).
address_relative Operand is for generating relative addresses (bool).
constant Operand is constant (bool).
description Operand description (str).
float Operand is float (bool).
immediate Operand is immediate (bool).
max
min
name Operand name (str).
shift
step
vector Operand is vector (bool).



copy()[source]
values()[source]

Return the possible value of the operand.

Return type:list of :int
set_valid_values(values)[source]
Parameters:values
random_value()[source]

Return a random possible value for the operand.

Return type::int
representation(value)[source]
Parameters:value
codification(value)[source]
Parameters:value
max
min
step
shift
add
check(value)[source]
Parameters:value
access(dummy)[source]
Parameters:dummy
address_absolute

Operand is for generating absolute addresses (bool).

address_base

Operand is the base register for an address (bool).

address_immediate

Operand is an immediate of an address (bool).

address_index

Operand is the index register for an address (bool).

address_relative

Operand is for generating relative addresses (bool).

constant

Operand is constant (bool).

description

Operand description (str).

float

Operand is float (bool).

immediate

Operand is immediate (bool).

name

Operand name (str).

vector

Operand is vector (bool).