Skip to content

eric830303/ATP-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATP Generator

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)

Installation

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.

Run on Windows

Launch your Windows prompt and enter the directory where the script is located.

Help

$ python .\converter.py -h

I2C

Convert the Excel file based on I2C protocol

$ python .\converter.py -i2c -input pattern_example.xlsx

Convert the Excel file based on I2C protocol, with the specified output filename.

$ python .\converter.py -i2c -input pattern_example.xlsx -output output_i2c.atp

Convert 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 1010111

SPI

Convert the Excel file based on SPI protocol

$ python .\converter.py -spi -input pattern_example.xlsx

Convert the Excel file based on SPI protocol, with the specified output filename.

$ python .\converter.py -spi -input pattern_example.xlsx -output output_spi.atp

SMI (MDC/MDIO)

Convert the Excel file based on SMI protocol

$ python .\converter.py -smi -input pattern_example.xlsx

Convert the Excel file based on SMI protocol, with the specified output filename.

$ python .\converter.py -smi -input pattern_example.xlsx -output output_smi.atp

About

A Python-based script used to generate input vectors for testing chips.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages