instruction stringclasses 1
value | input stringlengths 131 11.2k | output stringlengths 1.4k 147k |
|---|---|---|
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: rio1rt $ $Date: 2024/01/25 15:35:15 GMT $')
sav('VDD', 0.0, sim_ignore=True)
sav('VDDIO', 0.0, sim_ignore=True)
dly(1e-3)
sav('VDD', 1.8, v_range=2.0, i_comp=40e-3)
sav('VDDIO', 3.0, v_range=4.0, i_comp=40e-3)
dly(3e-3)
| /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_01_power_cycle_V1: publ... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: hmf1rt $ $Date: 2024/03/13 13:36:52 GMT $')
rac('CHIP_ID', 0x0000, 0x0000) # Dummy read to init SPI protocol
dly(50e-6)
| /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_02_IF_setup_SPI_V1: pub... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:10:23 GMT $')
bw('CSB', 1) # Pre-condition inputs: CSB high to keep I2C enabled
bw('SCX', 1) # Pre-condition inputs: SCX high I2C clock
bw('SDX', 1) # Pre-condition ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_03_IF_setup_I2C_devID68... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:21:04 GMT $')
bw('CSB', 1) # Pre-condition inputs: CSB high to keep I2C enabled
bw('SCX', 1) # Pre-condition inputs: SCX high I2C clock
bw('SDX', 1) # Pre-condition ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_04_IF_setup_I2C_devID69... |
generate cpp file from given test case python file | # Warning, AA workaround applied, pri.sec pad drive strength set to 1
cmt('Version info: $Revision: bai430aa_rel/4 $ $Author: hmf1rt $ $Date: 2024/09/25 12:30:22 GMT $')
wr('EXT_MODE', 0x0000) # User page
wac('IO_PAD_STRENGTH', 0x0049) # Set pad drive strength to 1 for prim/sec IF
rac('CHIP_ID', 0x00a... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_10_set_device_config_ST... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: rio1rt $ $Date: 2024/03/14 13:05:55 GMT $')
rac('CHIP_ID', 0x00af, 0x00ff) # Check chip access
wac('PWR_CONF', 0x0000) # Keep advanced power save off (default is 0x0)
dly(10e-6)
wr('CMD', 0xBB3A) # 1st command for enabling the extended mode
w... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_11_set_device_config_ST... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/3 $ $Author: hmf1rt $ $Date: 2024/08/06 09:19:58 GMT $')
wac('EXT_MODE', 0xc006) # Switch to the FCU register page
wac('OCP_MASK', 0x1000) # Set masking register
wr('FILTER_CONF',0x1000) # Bypass GYR notch filter
rac('... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_20_switch_on_GYR_wo_dri... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:21:04 GMT $')
wac('EXT_MODE', 0xc000) # Switch to USR register page
wac('GYR_CONF', 0x0058) # Disable GYR; set default configuration
dly(100e-6) ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_21_switch_off_GYR_wo_dr... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: luz3sgh $ $Date: 2024/05/20 08:35:37 GMT $')
wac('EXT_MODE',0xc000) # User page
wac('ACC_CONF', 0x004e) # e24c->004e, odr to max 6.4K, bandwidth change to auto, Disable ACC
wac('EXT_MODE',0xc00e) ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_24_enable_ACC_high_odr_... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: luz3sgh $ $Date: 2024/06/11 07:02:03 GMT $')
wac('EXT_MODE',0xc000) # AFE(acc afe) page
wac('ACC_CONF', 0x004e) # Disable ACC
# Restore to default value
wac('EXT_MODE',0xc00e) # AFE(acc afe) page
wac('ACC_TEST_CTRL',0x0007) # Rest... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T01_25_disable_ACC_high_odr... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:21:04 GMT $')
wac('EXT_MODE', 0xc006) # Switch to the FCU register page
wac('OCP_MASK', 0x1000) # Set masking register
wr('FILTER_CONF',0x1000) # Bypass GYR notch filter
rac('... | /*****************************************************
* T01_30_switch_on_GYR_wo_drive_econ_V3, description file version Notfound, avc file version Notfound
* First Editor : ayh2sgh
* Code generated with autocoding tool V2.8.1, in TOI2 standard way by module write_standard
* Change History:
**********************... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:21:04 GMT $')
wac('EXT_MODE', 0xc000) # Switch to USR register page
wac('GYR_CONF', 0x0058) # Disable GYR; set default configuration
dly(100e-6) ... | /*****************************************************
* T01_31_switch_off_GYR_wo_drive_econ_V4, description file version Notfound, avc file version Notfound
* First Editor : ayh2sgh
* Code generated with autocoding tool V2.8.1, in TOI2 standard way by module write_standard
* Change History:
*********************... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: luz3sgh $ $Date: 2024/04/12 06:49:43 GMT $')
cmt("py $Revision: 2 $")
wac("EXT_MODE", 0xc009) # change to page 9,IO
bw("ASCX", 1) # Set pad ASCX to "1"
#IO page
wac('OCP_MASK', 0x0018) ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_02_enable_external_cloc... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# Part1- VDDA bypass
# - swith off ACC
# - switch off VDDA_LDO
# - disable pullup on ANAIO 2
# - set ext. voltage
# - enable bypass--connect VDDA to OCSB Pad
# Part2- VDDDC bypass
# - set INT1 to... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_10_enable_VDDD_DC_and_V... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 19:45:00 GMT $')
# Part1 disable vdddc bypass
sav('INT1', 1.15) # Increase supply voltage to 1.15V on pad INT1
dly(100.048e-6)
wac('EXT_MODE', 0xc00d) # Switch to ANA register page
wac('OCP_MASK... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_11_disable_VDDD_DC_and_... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - swith off ACC
# - switch off VDDA_LDO
# - disable pullup on ANAIO 2
# - set ext. voltage
# - enable bypass--connect VDDA to external Pad
######################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_14_enable_vdda_external... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - disable bypass VDDA_LDO with ext. voltage
# - unset ext. voltage
# - enable pullup on ANAIO2
# - disable VDDA pwr overwrite
# - switch on ACC
#################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_15_disable_vdda_externa... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - swith off ACC
# - switch off VDDA_LDO
# - disable pullup on ANAIO 2
# - set ext. voltage
# - enable bypass--connect VDDA to external Pad
######################################################... | /*****************************************************
* T02_16_enable_vdda_external_bypass_econ_V1, description file version Notfound, avc file version Notfound
* First Editor : ayh2sgh
* Code generated with autocoding tool V2.8.1, in TOI2 standard way by module write_standard
* Change History:
*****************... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - disable bypass VDDA_LDO with ext. voltage
# - unset ext. voltage
# - enable pullup on ANAIO2
# - disable VDDA pwr overwrite
# - switch on ACC
#################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_17_disable_vdda_externa... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# Part1- VDDA bypass
# - swith off ACC
# - switch off VDDA_LDO
# - disable pullup on ANAIO 2
# - set ext. voltage
# - enable bypass--connect VDDA to OCSB Pad
# Part2- VDDDC bypass
# - set INT1 to... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T02_18_enable_vddd_dc_and_v... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: hmf1rt $ $Date: 2024/04/23 14:41:28 GMT $')
# switch off ACC
wac('EXT_MODE', 0xc000) # Switch to USR page
wac('ACC_CONF',0x024c) # Disable ACC
# Part1 disable vdddc bypass
sav('INT1', 1.15) # Incre... | /*****************************************************
* T02_19_disable_vddd_dc_and_vdda_external_bypass_V3, description file version Notfound, avc file version Notfound
* First Editor : ayh2sgh
* Code generated with autocoding tool V2.8.1, in TOI2 standard way by module write_standard
* Change History:
*********... |
generate cpp file from given test case python file | #############################################################################################################
# description: supply VDDG externally via IO_OCSB_LOWRES pin
#############################################################################################################
from test_sub_functions import *
cmt('V... | /*****************************************************
* T02_21_enable_vddg_external_bypass_V2, description file version Notfound, avc file version Notfound
* First Editor : jsh5sgh
* Code generated with autocoding tool V2.9.1, in TOI2 standard way by module write_standard
* Change History:
**********************... |
generate cpp file from given test case python file | #############################################################################################################
# Description: SCAN test
# Preamble: T03_10_scan_entry, T03_11_scan_reset
#############################################################################################################
cmt('Version info: $Revisi... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_01_scan_test: public te... |
generate cpp file from given test case python file | #############################################################################################################
# Description: IDDQ test
# Preamble: T03_10_scan_entry, T03_11_scan_reset
#############################################################################################################
cmt('Version info: $Revisi... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_02_IDDQ_test: public te... |
generate cpp file from given test case python file | #############################################################################################################
# Description: transitional SCAN test
# Preamble: T03_10_scan_entry, T03_11_scan_reset
#############################################################################################################
cmt('Version ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: JSH5SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_03_scan_test_transition... |
generate cpp file from given test case python file | from test_sub_functions import *
CRC = get_rom_crc()
cmt('Version info: $Revision: 3 $ $Author: rio1rt $ $Date: 2024/06/11 10:33:47 GMT $')
# Setup prerequisites for MBIST
wac('EXT_MODE',0xc00d) # Switch to PMU register page
wcb('force_ds_pwr_on', 0x1) # Force DS power
wac('EXT_MODE',0xc0... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_05_MBIST_V2: public tes... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 21:19:50 GMT $')
wac('EXT_MODE', 0xc000) # Switch to USR register page
rac('REV_ID', 0x0000, 0x00ff) # Read and check revision id
| /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_08_check_revision_ID_V2... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:22:20 GMT $')
wr('CMD', 0xBB3A) # 1st command for enabling the extended mode
wr('CMD', 0x2C62) # 2nd command for enabling the extended mode
wr('CMD', 0xA576) # 1st command for enab... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_09_scan_entry_compresse... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 4 $ $Author: hmf1rt $ $Date: 2024/06/12 11:58:00 GMT $')
wr('CMD', 0xBB3A) # 1st command for enabling the extended mode
wr('CMD', 0x2C62) # 2nd command for enabling the extended mode
wr('CMD', 0xA576) # 1st command for enabling the supe... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_10_scan_entry_V3: publi... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: hmf1rt $ $Date: 2024/03/13 13:36:52 GMT $')
# Execute scan reset sequence
dly(5e-6)
bw('CSB', 0)
bw('SCX', 1)
dly(5e-6)
bw('SCX', 0)
dly(5e-6)
bw('SCX', 1)
dly(5e-6)
| /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T03_11_scan_reset_V1: publi... |
generate cpp file from given test case python file | #############################################################################################################
# description: SPI4 communication at max speed 10 MHz
# - Entry condition STC_ACC
# - Execute single write, single read, burst write, burst read
#################################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_01_SPI4_test_V4: public... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - SPI4 mode 0, 10.0MHz
#############################################################################################################
cmt('Version info: $Revision: 2 $ $Author: luz3sgh $ $Date: ... | #include "testmethod.hpp"
//for test method API interfaces (any system include should be added above this line)
#include "mapi.hpp"
#include "../Common.hpp"
//for MTP test method API interfaces
using namespace std;
/**
* Test method class.
*
* For each testsuite using this test method, one object of this
* class... |
generate cpp file from given test case python file | #############################################################################################################
# description: SPI3 communication at max speed 10 MHz
# - Entry condition STC_ACC
# - Execute single write, single read, burst write, burst read
#################################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_03_SPI3_test_V4: public... |
generate cpp file from given test case python file | #############################################################################################################
# description: I2C delay trimming
# steps: 1.Enable I2C delay test
# 2.Measure SCX rise, fall delay refernce, within loop
# 3.Measure SCX rise, fall delay, within loop
# 4.Find best index
#... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_06_i2c_delay_trimming_V... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 3