The Python-based script is used to convert an Excel to input vectors (ATP files), for testing chips. The protocol supported by the script:
- I2C
- SPI
- SMI (MDC/MDIO)
It requires Python v3.7+ and Pandas to run. No need to intall them individually. It is recommended to install Anaconda, which has involved both of them.
Launch your Windows prompt and enter the directory where the script is located.
$ python .\converter.py -hConvert the Excel file based on I2C protocol
$ python .\converter.py -i2c -input pattern_example.xlsxConvert the Excel file based on I2C protocol, with the specified output filename.
$ python .\converter.py -i2c -input pattern_example.xlsx -output output_i2c.atpConvert the Excel file based on I2C protocol, with the specified output filename and the specified 5-bit control byte
$ python .\converter.py -i2c -input pattern_example.xlsx -output output_i2c.atp -ctrlbyte 1010111Convert the Excel file based on SPI protocol
$ python .\converter.py -spi -input pattern_example.xlsxConvert the Excel file based on SPI protocol, with the specified output filename.
$ python .\converter.py -spi -input pattern_example.xlsx -output output_spi.atpConvert the Excel file based on SMI protocol
$ python .\converter.py -smi -input pattern_example.xlsxConvert the Excel file based on SMI protocol, with the specified output filename.
$ python .\converter.py -smi -input pattern_example.xlsx -output output_smi.atp