avl_ral._field module

class avl_ral._field.Field(inst, env, parent)[source]
Parameters:
  • inst (Field)

  • env (RDLEnvironment)

  • parent (Reg)

property bitmask: int

Get the bitmask of the field

Returns:

The bitmask of the field

Return type:

int

assign_hdl(hdl)[source]

Assign a HDL handle to the field

Parameters:

hdl (LogicObject) – The HDL handle to assign

Returns:

None

Return type:

None

peek()[source]

Peek value of field directly from HDL handle

Returns:

The value of the field

Return type:

int

poke(value)[source]

Peek value of field directly from HDL handle

Parameters:

value (Any) – The value to poke

Returns:

None

Return type:

None

async read()[source]

Read the value of the register

Returns:

The value of the register

Return type:

int

async write(value)[source]

Read the value of the register

Parameters:

value (int) – The value to write

Returns:

None

Return type:

None