samna.mooreaTestBoard#

Submodules#

Module content#

class samna.mooreaTestBoard.IoControlModule#

Bases: pybind11_object

A module to write IO configuration.

disable_all(self: samna.mooreaTestBoard.IoControlModule) None#

Disable all IO pins.

enable_all(self: samna.mooreaTestBoard.IoControlModule) None#

Enable all IO pins.

init(self: samna.mooreaTestBoard.IoControlModule) None#

Initialize the IO control module on the Unifirm network.

write_config(self: samna.mooreaTestBoard.IoControlModule, arg0: int, arg1: int) None#

Write IO configuration to chip.

Parameters:
  • addr – address to write to.

  • value – value to write.

class samna.mooreaTestBoard.MooreaTestBoard#

Bases: pybind11_object

An aggregate object used to extract different parts of the moorea testing board.

get_board_serial_number(self: samna.mooreaTestBoard.MooreaTestBoard) str#

Get the serial number of the board.

get_firmware_versions(self: samna.mooreaTestBoard.MooreaTestBoard) samna.boards.common.FirmwareVersions#

Get the Fxtree and Unifirm versions of this board.

get_io_control_module(self: samna.mooreaTestBoard.MooreaTestBoard) samna.mooreaTestBoard.IoControlModule#

Get a handle to the module to control the IO pins of the FPGA. Useful in debug scenarios.

Returns:

IOControlModule

get_io_module(self: samna.mooreaTestBoard.MooreaTestBoard) samna.mooreaTestBoard.UnifirmModule#

Get a handle to the unifirm IO module. Useful in debug scenarios.

get_model(self: samna.mooreaTestBoard.MooreaTestBoard) samna.speck3.Speck3Model#

Get the model of the Speck 3 device on this board.

Returns:

Speck3Model

get_model_sink_node(self: samna.mooreaTestBoard.MooreaTestBoard) samna.DeviceSinkNode_speck3_event_input_event#

Convenience function to get the model sink node directly

get_model_source_node(self: samna.mooreaTestBoard.MooreaTestBoard) samna.DeviceSourceNode_speck3_event_output_event#

Convenience function to get the model source node directly

get_reader_writer(self: samna.mooreaTestBoard.MooreaTestBoard) unifirm::UnifirmReaderWriter#
get_stop_watch(self: samna.mooreaTestBoard.MooreaTestBoard) samna.unifirm.timestamp.StopWatch#

Get a handle to the stopwatch object to control timestamp in events. Useful in debug scenarios.

Returns:

StopWatch

get_testing_module(self: samna.mooreaTestBoard.MooreaTestBoard) samna.testingModule.TestingModule#

Get a handle for communicating with the underlying Unifirm testing module.

Returns:

TestingModule

get_testing_module_sink_node(self: samna.mooreaTestBoard.MooreaTestBoard) samna.DeviceSinkNode_testing_module_event_input_event#

Convenience function to get the sink node of the testing module directly.

get_testing_module_source_node(self: samna.mooreaTestBoard.MooreaTestBoard) samna.DeviceSourceNode_testing_module_event_output_event#

Convenience function to get the source node of the testing module directly

get_usb_controller(self: samna.mooreaTestBoard.MooreaTestBoard) samna.fxtree.FxTreeDevice#

Get a handle to the Cypress SuperSpeed USB 3.0 peripheral controller. Useful in debug scenarios.

Returns:

FxTreeDevice

init(self: samna.mooreaTestBoard.MooreaTestBoard, skip_is_ready_check: bool | None = None) None#

Initialize the board.

Parameters:

skip_is_ready_check (Optional[bool]) – Do not wait until device confirms it is ready. If not provided, the default value provided at board construction is used. Default: None

make_unifirm_hook(self: samna.mooreaTestBoard.MooreaTestBoard) samna.unifirm.UnifirmHook#

Make a unifirm hook instance appropriately configured to tap into packet traffic.

read_write(self: samna.mooreaTestBoard.MooreaTestBoard) None#
reset_model(self: samna.mooreaTestBoard.MooreaTestBoard, skip_is_ready_check: bool | None = None) None#

Reset the Speck 3 chip.

Parameters:

skip_is_ready_check (Optional[bool]) – Do not wait until device confirms it is ready. If not provided, the default value provided at board construction is used. Default: None

set_io_module_destination(self: samna.mooreaTestBoard.MooreaTestBoard, arg0: str) None#

Set the destination for packets generated by the IO module. Options: “usb” or “testing_module”

start_reader_writer(self: samna.mooreaTestBoard.MooreaTestBoard) None#
stop_reader_writer(self: samna.mooreaTestBoard.MooreaTestBoard) None#
class samna.mooreaTestBoard.MooreaTestBoardDefaultConfig#

Bases: DefaultConfigBase

Default configuration for Moorea Test Board.

from_json(self: samna.mooreaTestBoard.MooreaTestBoardDefaultConfig, arg0: str) None#
property init#

True.

Type:

Initialize the test board on construction. Default

property skip_is_ready_check#

False

Type:

Do not wait until Speck3 confirms it is ready. Default

to_json(self: samna.mooreaTestBoard.MooreaTestBoardDefaultConfig) str#