Add wasm tacle-bench targets

This commit is contained in:
2026-06-12 20:06:22 +02:00
parent 30daa8a00c
commit 08c2e9c13d
1122 changed files with 520422 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_ad_conv.h
Macros, functions, types and constants for controlling AD converter.
This version uses the harness functions for I/O and kernel simulation.
Based on the SSF DHI file ad_conv.h, revision 1.6, Tue Jun 01 12:35:44 1999.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_AD_CONV_H
#define TARGET_AD_CONV_H
#include "keyword.h"
/* AD converter control functions, simulated in harness.c */
extern void Update_ADC_Channel_Reg ( unsigned char channel );
extern void Start_Conversion ( void );
extern unsigned char End_Of_ADC ( void );
extern unsigned char Get_Result ( void );
extern void Set_DAC_Output ( unsigned char level );
/* AD converter control macros */
#define UPDATE_ADC_CHANNEL_REG Update_ADC_Channel_Reg (ADC_channel_register)
#define START_CONVERSION Start_Conversion ()
#define END_OF_ADC End_Of_ADC ()
#define GET_RESULT Get_Result ()
#define SET_DAC_OUTPUT(LEVEL) Set_DAC_Output (LEVEL)
#endif

View File

@ -0,0 +1,68 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_dpu_ctrl.h
Operations and macros for low-level control of the Data Processing
Unit, the 80C32 computer on which the DEBIE DPU software runs.
This includes accessing data and code memories by address; boot
and reset operations; watchdog handling; memory patch and test.
This version uses the harness functions for I/O and kernel simulation.
Based on the SSF DHI file dpu_ctrl.h, rev 1.23, Fri May 28 14:59:30 1999.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_DPU_CTRL_H
#define TARGET_DPU_CTRL_H
#include "keyword.h"
extern unsigned char Event_Flag ( void );
#define EVENT_FLAG Event_Flag()
/* Event storage condition signal. */
/* Access simulated memory */
extern void Set_Data_Byte ( data_address_t addr, unsigned char value );
extern unsigned char Get_Data_Byte ( data_address_t addr );
extern unsigned char Get_Code_Byte ( code_address_t addr );
/* Functions and macros to access external memory by numerical address. */
#define SET_DATA_BYTE(ADDR,VALUE) Set_Data_Byte (ADDR, VALUE)
#define GET_DATA_BYTE(ADDR) Get_Data_Byte (ADDR)
#define GET_CODE_BYTE(ADDR) Get_Code_Byte (ADDR)
/* Controlling the watchdog and the memory mapping: */
#define SET_WD_RESET_HIGH {}
#define SET_WD_RESET_LOW {}
#define SET_MEM_CONF_PROM {}
#define SET_MEM_CONF_SRAM {}
/* macro used in healthmonitoring */
extern unsigned char Check_Current ( unsigned char bits );
#define CHECK_CURRENT(BIT_NUMBERS) Check_Current (BIT_NUMBERS)
/* Checks whether given bit in the HV Status Register is HIGH or LOW. */
#endif

View File

@ -0,0 +1,71 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_isr_ctrl.h
Macros and operations to control and handle interrupts.
This version uses the harness functions for I/O and kernel simulation.
Based on the SSF DHI file isr_ctrl.h, rev 1.16, Sun Jul 25 15:02:08 1999.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_ISR_CTRL_H
#define TARGET_ISR_CTRL_H
/* Simulation of hit trigger. */
extern void Enable_Hit_Trigger ( void );
extern void Disable_Hit_Trigger ( void );
extern unsigned char Hit_Trigger_Flag ( void );
/* Macros for access to hit trigger. */
#define SET_HIT_TRIGGER_ISR_FLAG {}
#define CLEAR_HIT_TRIGGER_ISR_FLAG {}
#define ENABLE_HIT_TRIGGER Enable_Hit_Trigger ()
#define DISABLE_HIT_TRIGGER Disable_Hit_Trigger ();
#define HIT_TRIGGER_FLAG Hit_Trigger_Flag ()
#define SET_INTERRUPT_PRIORITIES {}
/* Sets Timer 1, Timer 2 and External interrupt 0 and 1 */
/* priorities high, others to low. */
#define DISABLE_INTERRUPT_MASTER {}
#define ENABLE_INTERRUPT_MASTER {}
/* Clear and set interrupt master enable bit */
/* Simulation of Telecommand Timer */
extern unsigned char TC_Timer_Overflow_Flag ( void );
extern void Clear_TC_Timer_Overflow_Flag ( void );
extern void Set_TC_Timer_Overflow_Flag ( void );
/* Macros for Telecommand Timer */
#define DISABLE_TC_TIMER_ISR {}
/* Macro for clearing TC timer interrupt enable flag */
#define TC_TIMER_OVERFLOW_FLAG TC_Timer_Overflow_Flag ()
/* TC timer overflow flag */
#define CLEAR_TC_TIMER_OVERFLOW_FLAG Clear_TC_Timer_Overflow_Flag ()
#define SET_TC_TIMER_OVERFLOW_FLAG Set_TC_Timer_Overflow_Flag ()
/* TC timer overflow flag manipulation macros. */
#endif

View File

@ -0,0 +1,36 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_reg52.h
Definitions for 80C32 Special Function Registers to be used
in portable parts of the DEBIE DPU software.
This "null" (DNI) version declares these Special Function Registers
as global "unsigned char" variables.
Created for the DEBIE-I WCET benchmark program. Not based directly
on any SSF sources.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_REG52_H
#define TARGET_REG52_H
extern unsigned char EA;
/* Interrupt enable register. */
#endif

View File

@ -0,0 +1,66 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_su_ctrl.h
Macros, functions, constants and types for controlling Sensor Units.
This version uses the harness functions for I/O and kernel simulation.
Based on the SSF DHI file su_ctrl.h, rev 1.28, Tue Sep 14 14:51:26 1999.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_SU_CTRL_H
#define TARGET_SU_CTRL_H
/* Simulation of counter access */
extern unsigned char Get_MSB_Counter ( void );
extern unsigned char Get_LSB1_Counter ( void );
extern unsigned char Get_LSB2_Counter ( void );
extern unsigned char Rise_Time_Counter ( void );
/* Counter access macros */
#define GET_MSB_COUNTER Get_MSB_Counter ()
#define GET_LSB1_COUNTER Get_LSB1_Counter ()
#define GET_LSB2_COUNTER Get_LSB2_Counter ()
#define RISE_TIME_COUNTER Rise_Time_Counter ()
#define SET_COUNTER_RESET(LEVEL) {}
/* Simulation of trigger signal */
extern unsigned char Trigger_Source_0 ( void );
extern unsigned char Trigger_Source_1 ( void );
extern unsigned char V_Down ( void );
/* Macros to access trigger signals */
#define TRIGGER_SOURCE_0 Trigger_Source_0 ()
#define TRIGGER_SOURCE_1 Trigger_Source_1 ()
#define V_DOWN V_Down ()
/* Simulation of SU Self Test functions */
extern void Set_SU_Self_Test_Ch ( unsigned char value );
extern void Set_Test_Pulse_Level ( unsigned char level );
#define SET_SU_SELF_TEST_CH(value) Set_SU_Self_Test_Ch (value)
#define SET_TEST_PULSE_LEVEL(level) Set_Test_Pulse_Level(level)
#endif

View File

@ -0,0 +1,70 @@
/*------------------------------------------------------------------------------
Copyright (C) 1998 : Space Systems Finland Ltd.
Space Systems Finland Ltd (SSF) allows you to use this version of
the DEBIE-I DPU software for the specific purpose and under the
specific conditions set forth in the Terms Of Use document enclosed
with or attached to this software. In particular, the software
remains the property of SSF and you must not distribute the software
to third parties without written and signed authorization from SSF.
System Name: DEBIE DPU SW
Module : target_ttc_ctrl.h
Macros and function prototypes for handling the Telecommand
and Telemetry interface.
This version uses the harness functions for I/O and kernel simulation.
Based on the SSF DHI file ttc_ctrl.h, rev 1.11, Sun May 16 09:20:10 1999.
- * --------------------------------------------------------------------------
*/
#ifndef TARGET_TTC_CTRL_H
#define TARGET_TTC_CTRL_H
/* TC/TM interface functions, simulated */
extern unsigned char Read_TC_MSB ( void );
extern unsigned char Read_TC_LSB ( void );
extern void Write_TM_LSB ( unsigned char value );
extern void Write_TM_MSB ( unsigned char value );
/* TC and TM register handling */
#define READ_TC_MSB Read_TC_MSB()
#define READ_TC_LSB Read_TC_LSB()
#define WRITE_TM_LSB(TM_LSB) Write_TM_LSB(TM_LSB)
#define WRITE_TM_MSB(TM_MSB) Write_TM_MSB(TM_MSB)
/* TM Interrupt flag */
#define CLEAR_TM_INTERRUPT_FLAG {}
/* TC Interrupt flag*/
#define CLEAR_TC_INTERRUPT_FLAG {}
/* TM and TC interrupt controls*/
#define SET_INT_TYPE1_EDGE {}
#define SET_INT_TYPE0_EDGE {}
/* TC timer controls */
#define SET_TC_TIMER_MODE {}
/* Set TC timer (0) mode : Mode 1, counter operation, SW control */
#define INIT_TC_TIMER_MSB {}
#define INIT_TC_TIMER_LSB {}
/* TC timer initialization macros */
#define START_TC_TIMER {}
#define STOP_TC_TIMER {}
/* TC timer run control macros */
#endif