mlonmcu.target.arm package

Submodules

mlonmcu.target.arm.corstone300 module

MLonMCU Corstone300 Target definitions

class mlonmcu.target.arm.corstone300.Corstone300Target(name='corstone300', features=None, config=None)[source]

Bases: Target

Target using an ARM FVP (fixed virtual platform) based on a Cortex M55 with EthosU support

DEFAULTS = {'enable_dsp': False, 'enable_ethosu': False, 'enable_fpu': True, 'enable_mvei': False, 'ethosu_num_macs': 256, 'extra_args': '', 'model': 'cortex-m55', 'print_outputs': False, 'repeat': None, 'timeout_sec': 0}
FEATURES = {'arm_dsp', 'arm_mvei', 'ethosu'}
REQUIRED = {'arm_gcc.install_dir', 'cmsis.dir', 'cmsisnn.dir', 'corstone300.exe', 'ethosu_platform.dir'}
property cmsis_dir
property cmsisnn_dir
property enable_dsp
property enable_ethosu
property enable_fpu
property enable_mvei
property ethosu_num_macs
property ethosu_platform_dir
exec(program, *args, cwd='/home/docs/checkouts/readthedocs.org/user_builds/mlonmcu/checkouts/latest/docs', **kwargs)[source]

Use target to execute a executable with given arguments

property extra_args
property fvp_exe
property gcc_prefix
get_arch()[source]
get_backend_config(backend, optimized_layouts=False, optimized_schedules=False)[source]
get_default_fvp_args()[source]
get_ethosu_fvp_args()[source]
get_metrics(elf, directory, *args, handle_exit=None)[source]
get_platform_defs(platform)[source]
property model
parse_stdout(out, handle_exit=None)[source]
property timeout_sec

mlonmcu.target.arm.util module

MLonMCU ARM Cortex-M utilities

mlonmcu.target.arm.util.resolve_cpu_features(model, enable_fp=None, enable_fp_dp=None, enable_dsp=None, enable_mve=None)[source]

Module contents

class mlonmcu.target.arm.Corstone300Target(name='corstone300', features=None, config=None)[source]

Bases: Target

Target using an ARM FVP (fixed virtual platform) based on a Cortex M55 with EthosU support

DEFAULTS = {'enable_dsp': False, 'enable_ethosu': False, 'enable_fpu': True, 'enable_mvei': False, 'ethosu_num_macs': 256, 'extra_args': '', 'model': 'cortex-m55', 'print_outputs': False, 'repeat': None, 'timeout_sec': 0}
FEATURES = {'arm_dsp', 'arm_mvei', 'ethosu'}
REQUIRED = {'arm_gcc.install_dir', 'cmsis.dir', 'cmsisnn.dir', 'corstone300.exe', 'ethosu_platform.dir'}
property cmsis_dir
property cmsisnn_dir
property enable_dsp
property enable_ethosu
property enable_fpu
property enable_mvei
property ethosu_num_macs
property ethosu_platform_dir
exec(program, *args, cwd='/home/docs/checkouts/readthedocs.org/user_builds/mlonmcu/checkouts/latest/docs', **kwargs)[source]

Use target to execute a executable with given arguments

property extra_args
property fvp_exe
property gcc_prefix
get_arch()[source]
get_backend_config(backend, optimized_layouts=False, optimized_schedules=False)[source]
get_default_fvp_args()[source]
get_ethosu_fvp_args()[source]
get_metrics(elf, directory, *args, handle_exit=None)[source]
get_platform_defs(platform)[source]
property model
parse_stdout(out, handle_exit=None)[source]
property timeout_sec