Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_axon_platform_simulator.h File Reference
#include <stdint.h>
#include <stdio.h>
#include "drivers/axon/nrf_axon_driver.h"

Go to the source code of this file.

Data Structures

struct  AxonCoreSatCntLogSt
 
struct  AxonFuncSatLogEntrySt
 
struct  AxonFuncSatLogSt
 

Macros

#define MAX_FUNCTIONS_LOG   100
 

Typedefs

typedef uint32_t AXONS_SIMULATOR_FAKE_REGISTERS[0x400]
 

Functions

int axon_simulator_get_failure_code (void)
 
void axon_dsp_simulator_write_reg (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr, NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE value)
 
void axon_nn_simulator_write_reg (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr, NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE value)
 
NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE axon_dsp_simulator_read_reg (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr)
 
NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE axon_nn_simulator_read_reg (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr)
 
void host_wait_for_interrupt ()
 
void exit_simulator ()
 
uint32_t axon_platform_get_ticks ()
 
void nrf_axon_simulator_perfmodel_init ()
 
uint64_t nrf_axon_simulator_perfmodel_get_cycles ()
 
void nrf_axon_simulator_perfmodel_disable ()
 
void nrf_axon_simulator_perfmodel_enable ()
 
bool nrf_axon_simulator_perfmodel_is_enabled ()
 
void * start_simulator ()
 
int axon_nn_simulator_write_reg_prim (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr, NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE value)
 
int axon_dsp_simulator_write_reg_prim (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr, NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE value)
 
NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE axon_dsp_simulator_read_reg_prim (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr)
 
NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE axon_nn_simulator_read_reg_prim (volatile NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *addr)
 
bool axon_nn_simualtor_int_pending_prim ()
 
bool axon_dsp_simualtor_int_pending_prim ()
 
int axon_dsp_simulator_process_action_request (int *check_cfg_err, uint64_t *o_cycles, int *o_wdog_cmd, int *o_wdog_finish)
 
int axon_nn_simulator_process_action_request (int *check_cfg_err, uint64_t *o_cycles, int *o_wdog_cmd, int *o_wdog_finish)
 
void * axon_dsp_initialize_registers ()
 
void * axon_nn_initialize_registers ()
 
int read_in_test_vector_int8 (FILE *src_file, int8_t *test_vector_buffer, uint32_t buffer_length)
 
int read_in_test_vector_int16 (FILE *src_file, int16_t *test_vector_buffer, uint32_t buffer_length)
 
void axon_platform_printf (const char *fmt,...)
 
void axon_simulator_log_function_saturation (const char *funcName)
 
void axon_simulator_print_saturation_statistics ()
 
void axon_simulator_read_saturation_cnt (AxonCoreSatCntLogSt *)
 
void axon_simulator_clear_saturation_cnt ()
 
int nrf_axon_simulator_run_test_files (char *input_file_path, char *output_file_path, char *input_file_ext, char *output_file_head_str, uint32_t buffer_size, int(*callback_function)(char *input_file_name, char *output_file_name, int8_t *input_vector, uint32_t buffer_size))
 

Variables

volatile bool axon_simulator_ints_enabled
 
uint64_t nn_o_cycles
 
uint64_t dsp_o_cycles
 
AXONS_SIMULATOR_FAKE_REGISTERS axons_simulator_fake_registers