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... |
generate cpp file from given test case python file | #############################################################################################################
# description: I2C delay Char
# steps: 1.Enable I2C delay test
# 2.Measure SCX rise, fall delay refernce, within loop
# 3.Measure SCX rise, fall delay, within loop
################################... | /*****************************************************
* T04_07_I2C_Delay_Char_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 | cmt('Version info: $Revision: 3 $ $Author: luz3sgh $ $Date: 2024/05/06 05:53:19 GMT $')
# Use signal and timing conventions compliant with I2C fast mode plus acc. test spec (i2c_std)
# Enable active load into SDX pad during compare cycles
# The ATE threshold voltage shall be 70% of VDDIO for the detection of logic 1
# ... | #include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
/**
* Test method class.
*
* For each testsuite using this test method, one object of this
* class is created.
*/
class T04_08_I2C_characterization_V1: public testmethod::TestMethod {
protected:
int i_funcRes[xNSi... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: rio1rt $ $Date: 2024/05/03 08:07:32 GMT $')
dly(10e-6)
ubw('SDO') # Release SDO pad
dly(10e-6)
cmt('Execute I3C init pattern to enter I3C mode(included in pattern)')
scmd('do SETDASA_DIRECT_CCC i3c_seq keeping {'
'.target == BST;'
... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_09_I3C_test_V3: public ... |
generate cpp file from given test case python file | # Warning, AA workaround applied, TE3 not executed
cmt('Version info: $Revision: bai430aa_rel/2 $ $Author: luz3sgh $ $Date: 2024/09/26 08:47:02 GMT $')
# ---I3C Protocol check---
cmt('Check chip already in I3C state, and dev_addr assigned to 0x42)')
dly(10e-6)
wr('EXT_MODE', 0x0000) # Switch to USR mod... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_11_I3C_feature_test_V4:... |
generate cpp file from given test case python file | #############################################################################################################
# description: I2C communication at max speed 1 MHz
# - Use I2C device ID 0x68
# - Entry condition PU_I2C
# - Device init and unlock super privilege mode
# - Execute single write, single read, burst read
######... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_16_I2C_test_devID68_V5:... |
generate cpp file from given test case python file | #############################################################################################################
# description: I2C communication at max speed 1 MHz
# - Use I2C device ID 0x69
# - Entry condition PU_I2C
# - Device init and unlock super privilege mode
# - Execute single write, single read, burst read
######... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_17_I2C_test_devID69_V5:... |
generate cpp file from given test case python file | #############################################################################################################
# Description:
# - Enable secondary interface OIS
# - Read OIS test register via secondary interface
# - Disable secondary interface
#############################################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_20_OIS_test_V1: public ... |
generate cpp file from given test case python file | #############################################################################################################
# Description:
# - Enable secondary interface OIS, SPI4 mode 0 @10MHz
# - Read OIS test register via secondary interface
# - Disable secondary interface
#########################################################... | #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 | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: luz3sgh $ $Date: 2024/08/13 06:12:21 GMT $')
wr('EXT_MODE', 0xc000) # Switch to USR register page
wr('OCP_MASK', 0x0001) # Set masking register
wr('IO_IF_CONF', 0x0001) # Enable SPI3 mode
dly(10e-6)
rac('IO_IF_CONF'... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_30_switch_SPI4_to_SPI3_... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: hmf1rt $ $Date: 2024/03/13 13:36:52 GMT $')
wr('EXT_MODE', 0xc000) # Switch to USR register page
wr('OCP_MASK', 0x0001) # Set masking register
wr('IO_IF_CONF', 0x0000) # Enable SPI4 mode
dly(10e-6)
rac('IO_IF_CONF', 0x0000, 0x00... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T04_31_switch_SPI3_to_SPI4_... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: luz3sgh $ $Date: 2024/06/09 06:02:00 GMT $')
sav('VDD', 0.0)
sav('VDDIO', 0.0)
dly(1e-3)
for p in ['CSB','SCX','SDX','SDO','INT1','INT2','OCSB','ASCX','ASDX','OSDO']:
sac('{}'.format(p), 100e-6, i_range = 200e-6, v_comp_p=1.0, v_comp_n=0.0)
dly(100e-6)
gav('V_CONT_... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: LSN3SGH, py 4
* Update: LSN3SGH, py 7--20230328
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace st... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: luz3sgh $ $Date: 2024/06/09 06:02:00 GMT $')
sav('VDD', 0.0)
sav('VDDIO', 0.0)
dly(1e-3)
cmt("Pull current from 1 single pad")
sac('SDO', -100e-6, i_range = 200e-6, v_comp_p=1.0, v_comp_n=0.0)
dly(100e-6)
gav('V_CONT_SDO_100ua_gnd', 'SDO')
uac('SDO')
cmt("Pull current from 1... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: LSN3SGH, py 4
* Update: LSN3SGH, py 7--20230328
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace st... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/2 $ $Author: luz3sgh $ $Date: 2024/08/19 06:26:50 GMT $')
wac('EXT_MODE', 0xc009) # Switch to IO register page
wac('IO_INT_CTRL', 0x0808) # int2_conf=1 int2_input_en=1 int1_input_en=1
for pad in ['CSB','SCX','SDX']:... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T06_02_Input_Leakage_Test_V... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 3 $ $Author: hmf1rt $ $Date: 2024/04/19 13:50:33 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0xf0b5) # Enable ANAIO1/2/4; TB1_OUT on ANAIO1; TB1_INP on ANAIO2; DEV_TIOP on... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T07_01_testbuffer_offset_me... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:27:19 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0x0db5) # Enable ANAIO1/2/3; TB1_OUT on ANAIO1; TB1_INP on ANAIO2; DEV_TM on... | /*****************************************************
* T07_02_testbuffer_offset_measurement_ecoff_V2, 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:
# Verify that the 2 testbuffer offset measurements in the test flow have the same result
#########################################################################################################... | /*****************************************************
* T07_02_testbuffer_offset_measurement_ecoff_V2, 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: laj1mu23 $ $Date: 2024/03/25 20:27:19 GMT $')
sav('ASCX', 0.5) # Set voltage on ASCX
dly(100e-6)
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_ADDR', 0x0003) # Enable ATM loop back test
wac('TM_PIN', 0x0db... | /*****************************************************
* T07_04_Testbuffer_Voltage_Char_V2, 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:
* JSH5SGH: fix some bugs.
... |
generate cpp file from given test case python file | #############################################################################################################
# description: Internal ground measure
# VSS on CTB_P
#############################################################################################################
cmt('Version info: $Revision: 2 $ $Author: laj... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T07_05_internal_gnd_measure... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:22:06 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0003) # tm_se_meas=0 tm_bus_inv=0 tm_buf_pwrup=3 (tbuf_tb1_tb2_on)
# bus_inv. because ... | /*****************************************************
* T07_06_Testbuffer_Output_Impedance_Char_V2, 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:
* JSH5SGH: fix so... |
generate cpp file from given test case python file | ######################################################################################################################
# description: Write TB offset measurements to dark OTP
# Step1: Calcualtion of V_OFF1/2 measurement into integer value
# Step2: Program value in dark OTP regID 0xDA
# - Bits 0..5 used to store the TB1... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T07_10_testbuffer_offset_da... |
generate cpp file from given test case python file | #############################################################################################################
# description: Internal ground measure
# VSS on CTB_P
#############################################################################################################
cmt('Version info: $Revision: 2 $ $Author: laj... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T07_15_r_gnd_measurement: p... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: hmf1rt $ $Date: 2024/03/13 13:36:52 GMT $')
wac('EXT_MODE', 0xc00d) # Switch to ANA register page
rac('STATUS_PMOD0', 0x0003, 0x0003) # Check ACC AFE PMU status
wr('CMD', 0xdeaf) # Trigger soft reset
dly(3e-3)
rac('CHIP_ID', 0x0000, 0x0000) #... | /*****************************************************
* T08_01_soft_reset, 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:
# - soft reset; delay of 200us; recovery check with ras() operations of reg CHIP_ID; store the result to an array
# - recovery, when 0x00AF read back from the register (read back zero otherwise)
... | /*****************************************************
* T08_02_Soft_Reset_Recovery_Time_R1, 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:
* JSH5SGH V5: description... |
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
wac('FIFO_WATERMARK', 0x02a5) # Write signature to register
sav('VDD', 1.6) # don't trigger a BOR
dly(1e-3)
rac('FIFO_WATERMARK', 0x02a5)... | /*****************************************************
* T08_03_POR_BOR_VDD_test_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:
# - ramping down the VDD pulse and measure current on VDD (ACC on); detect the POR
# - ramping up VDD and measure current on VDD; detect the POR
# - ramping down the VDD pulse and measure current... | /*****************************************************
* T08_04_POR_BOR_VDD_Char_V1, 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:
* JSH5SGH: fix some bugs.
******... |
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
wac('FIFO_WATERMARK', 0x025a) # Write signature to register
sav('VDDIO', 1.15, v_range=4.0) # some margin for the real device
dly(1e-3)
rac('FIFO_WATERM... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T08_05_POR_BOR_VDDIO_test_V... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - ramping down the VDDIO pulse and measure current on VDD (ACC on); detect the power on reset
# - ramping up VDDIO and measure current on VDD(sensors off); detect the power on reset
###########... | /*****************************************************
* T08_06_POR_BOR_VDDIO_Char_R1, 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:
* JSH5SGH V2: VDDIO force back ... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 1 $ $Author: hmf1rt $ $Date: 2024/03/13 13:36:52 GMT $')
wac('EXT_MODE', 0xc009) # Switch to IO register page
# Measure sink capability
wac('OCP_MASK', 0x000f) # Set masking register
wr('IO_INT_CTRL', 0x0004) # Enable INT1 output; Set active low, INT1 in h... | /*****************************************************
* T08_08_Pad_Current_Sink_Source_Capability_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:
* JSH5SGH: fix ... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:25:06 GMT $')
wac('EXT_MODE', 0xc009) # Switch to IO register page
wac('OCP_MASK', 0x000f) # Set masking register
wr('IO_INT_CTRL', 0x0005) # Enable INT1 output; Set active high
rac('IO_INT_CTRL', 0x0... | /*****************************************************
* T08_11_Pad_Input_Receiver_Char_R1, 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:
* JSH5SGH V2: add missing ... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/07/18 13:25:06 GMT $')
cmt('Test 1: set external voltage to check pad drive capability')
wac('EXT_MODE', 0xc009) # Switch to IO register page
wac('OCP_MASK',0x0007)
### Pad drive strength test: pad driving vs external voltage, ... | /*****************************************************
* T08_12_Pad_Drive_Char_R1, 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:
* JSH5SGH R1: version update.
****... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - measure pull-up resistance of CSB
# -Entry condtion PU; Exit codition Extendpage enabled
######################################################################################################... | /*****************************************************
* T08_13_PU_Resistors_Measurement_V4, 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 | #####################################################################
# Measure VDD/VDDIO current under different ramp up combinations
# C1 C2 C3 C4A C4B
# _ _ _ _ _ _ _ _ _ _ _ _ _ _
#VDD _ _| |_ _ _ _ _ _ _ _ _| |_ _ _|
#... | /*****************************************************
* T08_15_Power_Supply_Ramping_Test_R1, 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:
* JSH5SGH V2: add dummy ... |
generate cpp file from given test case python file | #############################################################################################################
# description: Power skew test
# - assume chip in STC_ACC status
#############################################################################################################
cmt('Version info: $Revision: 1 $ $... | /*****************************************************
* T08_16_Power_Skew_Test_V1, 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 | cmt('Version info: $Revision: 3 $ $Author: hmf1rt $ $Date: 2024/04/19 14:25:16 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0011) # Enable TB1; invert test bus
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on ANAI... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_01_standby_regulator_tr... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0011) # Enable TB1; invert test bus
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on AN... | /*****************************************************
* T10_02_standby_regulator_measurement_V2, 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: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0011) # Enable TB1; invert test bus
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on AN... | /*****************************************************
* T10_03_Standby_Regulator_Char_V2, 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:
* JSH5SGH: fix some bugs.
... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on ANAIO2
wac('TM_ADDR... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_04_VDDD_DC_LDO_measurem... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on ANAIO2
wac('TM_ADDR... | /*****************************************************
* T10_05_VDDD_DS_LDO_measurement_V2, 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/08/07 15:18:41 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on ANAIO2
w... | /*****************************************************
* T10_06_VDDD_DC_LDO_Char_R1, 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:
* JSH5SGH: fix some bugs.
* JSH5... |
generate cpp file from given test case python file | cmt('Version info: $Revision: bai430aa_rel/1 $ $Author: hmf1rt $ $Date: 2024/08/07 15:18:41 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0001) # Enable TB1
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on ANAIO2
w... | /*****************************************************
* T10_07_VDDD_DS_LDO_Char_R1, 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:
* JSH5SGH: fix some bugs.
* JSH5... |
generate cpp file from given test case python file | #############################################################################################################
# description: ACC bandgap trimming
# - VSS_A to ANAIO1, VERF_AA to ANAIO2 with buffer 2 enabled only
############################################################################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_11_acc_bandgap_trimming... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0011) # tm_se_meas=0 tm_bus_inv=1 tm_buf_pwrup=1 (tbuf_tb1_on)
# bus_inv. because ... | /*****************************************************
* T10_12_ACC_bandgap_measurement_V2, 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: ACC bandgap characterization
# Characterization loop derived from T10_11_acc_bandgap_trimming
# - VSS_A to ANAIO2, VREF_AA to ANAIO1 with buffer 1 enabled only
###################################... | /*****************************************************
* T10_13_ACC_Bandgap_Char_V2, 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:
* JSH5SGH: fix some bugs.
******... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0011) # tm_se_meas=0 tm_bus_inv=1 tm_buf_pwrup=1 (tbuf_tb1_on)
# bus_inv. because ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_14_VDDA_LDO_measurement... |
generate cpp file from given test case python file | #############################################################################################################
# description: ACC bandgap characterization
# similar to T10_13_ACC_Bandgap_Char.py
# - VDDA to ANAIO1, VSS_A to ANAIO2 with buffer 1 enabled only
###############################################################... | /*****************************************************
* T10_15_VDDA_LDO_Char_V2, 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:
* JSH5SGH: fix some bugs.
*********... |
generate cpp file from given test case python file | #############################################################################################################
# description: ACC bias current trimming
# - ibias_acc@ANAIO2 by default, invert to anaio1
#############################################################################################################
cmt('Ver... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_16_acc_bias_current_tri... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0110) # tm_se_meas=1 tm_bus_inv=1 (COM_TION instead of COM_TIOP for BUF1_INP)
wac('TM_PIN', 0x0009) # tm... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_17_ACC_bias_current_mea... |
generate cpp file from given test case python file | #############################################################################################################
# description: ACC bias current characterization
# Characterization loop derived from T10_16_acc_bias_current_trimming
# - ibias_acc@ANAIO1
######################################################################... | /*****************************************************
* T10_18_ACC_Bias_Current_Char_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:
* JSH5SGH: fix some bugs.
*... |
generate cpp file from given test case python file | #############################################################################################################
# description: GRY bandgap trimming
# Steps: 1. enable temp adc test mode
# 2. set ATM, measure VBGP1V21 refer to BGP_REFN
# 3. trim loop
##########################################################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_21_gyr_bandgap_trimming... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
# Config Buffer, TM_CONF
wac('EXT_MODE', 0xc00f) # Page Test, Reg TM_CONF
wcb('tm_buf_pwrup',0x1) # Enable TB1 only
wcb('tm_bus_inv',0x1) # Invert tset bus
# Config ANAIO pad... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_22_GYR_bandgap_measurem... |
generate cpp file from given test case python file | #############################################################################################################
# description: GYR bandgap characterization
# Characterization loop derived from T10_21_gyr_bandgap_trimming
# Steps: 1. enable temp adc test mode
# 2. set ATM, measure VBGP1V21 refer to BGP_REFN
# ... | /*****************************************************
* T10_23_GYR_Bandgap_Char_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:
* JSH5SGH: fix some bugs.
******... |
generate cpp file from given test case python file | #############################################################################################################
# description: VDDG LDO trimming, VDDG, typ 1.5V
#############################################################################################################
from test_sub_functions import *
cmt('Version info:... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_24_vddg_ldo_trimming_V4... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to TST register page
wac('TM_CONF', 0x0011) # Enable TB1; invert test bus
wac('TM_PIN', 0x0095) # Enable ANAIO1/2; TB1_OUT on ANAIO1; TB2_INP on AN... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_25_VDDG_LDO_measurement... |
generate cpp file from given test case python file | #############################################################################################################
# description: VDDG LDO characterization, VDDG, typ 1.5V
# Characterization loop derived from T10_24_vddg_ldo_trimming
###########################################################################################... | /*****************************************************
* T10_26_VDDG_LDO_Char_V2, 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:
* JSH5SGH: fix some bugs.
*********... |
generate cpp file from given test case python file | #############################################################################################################
# description: GYRA bias current trimming
# ib_gyr@ANAIO1
# Notes: 1. gyr_trm_res_prog_i selected from trim loop
# 2. gry_trm_res_prog_i2/a/fe/vco calculated based on gyr_trm_res_prog_i
#################... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_27_gyr_bias_current_tri... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0100) # tm_se_meas=1 tm_bus_inv=0 (COM_TIOP for BUF1_INP)
wac('TM_PIN', 0x0009) # tm_int2_sel=4 (BUF1_IN... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_28_GYR_Bias_Current_Mea... |
generate cpp file from given test case python file | #############################################################################################################
# description: GYRA bias current characterization
# Characterization loop derived from T10_27_gyr_bias_current_trimming
# ib_gyr@ANAIO1
##########################################################################... | /*****************************************************
* T10_29_GYR_Bias_Current_Char_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:
* JSH5SGH: fix some bugs.
*... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0101) # tm_se_meas=1 (BUFF2_INP= VSS) tm_bus_inv=0 tm_buf_pwrup=1 (tbuf_tb1_on)
#... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_30_VDD_FOSC_measurement... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc00f) # Switch to the TEST register page
wac('TM_CONF', 0x0111) # tm_se_meas=1 (BUFF2_INP= VSS) tm_bus_inv=1 tm_buf_pwrup=1 (tbuf_tb1_on)
#... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_31_VDD_BGP_measurement_... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc005) # Switch to the FIFO register page
wac('OCP_MASK', 0x0102) # activate bit 8 (fifo_acc_en) and bit 1 (fifo_en)
wac('FIFO_CONF', 0x0102) # fifo_acc_en=1 fifo_en=1... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_33_VDDD_RAM_measurement... |
generate cpp file from given test case python file | cmt('Version info: $Revision: 2 $ $Author: laj1mu23 $ $Date: 2024/03/25 20:34:28 GMT $')
wac('EXT_MODE', 0xc006) # Switch to FCU register page
wcb('temp_mode', 0x1) # Keep temp always on
wcb('temp_test_odr', 0x4) # Set temp test ODR to 800
wr('FCU_TEST_CMD', 0x8000) ... | /*****************************************************
* Description
* 1.
* 2.
* Change History
* First Editor: GON3SGH
*
*****************************************************/
#include "testmethod.hpp"
#include "mapi.hpp"
#include "../Common.hpp"
using namespace std;
class T10_34_VDDT_LDO_measurement... |
generate cpp file from given test case python file | #############################################################################################################
# description: Bandgap temperature coefficient characterization
# Characterization loop derived from T10_16_acc_bias_current_trimming
# The ACC BIAS current is routed to the pin INT2.
# For all the 16 values of... | /*****************************************************
* T10_36_ACC_Bias_TC_Char_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:
* JSH5SGH: fix some bugs.
******... |
generate cpp file from given test case python file | #############################################################################################################
# description: FOSC trimming
# Info : osc frequency changes monotonically with pc_trm_ftc= 0 ... 5
# Steps: 1. Route fosc to INT1 pad
# 2. Loop over trim steps and store the frequency values
############... | /*****************************************************
* T10_38_FOSC_FTC_Char_R1, 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:
* JSH5SGH V4: correct wrong comment.... |
generate cpp file from given test case python file | #############################################################################################################
# description: Bandgap temperature coefficient characterization
# Characterization loop derived from T10_11_acc_bandgap_trimming
# - VSS_A to ANAIO2, VREF_AA to ANAIO1 with buffer 1 enabled only
# For all the 1... | /*****************************************************
* T10_39_ACC_Bandgap_TC_Char_V2, 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:
* JSH5SGH: fix some bugs.
***... |
generate cpp file from given test case python file | #############################################################################################################
# description: Bandgap temperature coefficient characterization
# Characterization loop derived from T10_16_acc_bias_current_trimming
# - VSS to ASDX(ANAIO2), VREFD to INT2(ANAIO1) with buffer 1 enabled only
#
... | /*****************************************************
* T10_40_Standby_Regulator_TC_Char_V2, 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:
* JSH5SGH: fix some bugs... |
generate cpp file from given test case python file | #############################################################################################################
# description:
# - measure currents for different external voltages, routed VDDD
# (T02_18_enable_vddd_dc_and_vdda_external_bypass executed before)
############################################################... | /*****************************************************
* T10_41_VDDD_DC_Vext_Char_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:
********************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.