Main Content

ac0Reader

Converts AC analysis simulation results from Synopsys to CSV file or MATLAB table

Since R2023b

Description

ac0Reader(inputFileName) converts the AC analysis simulation results from the FINESIM and HSPICE Synopsys® simulator to a CSV file or a MATLAB® table, as defined by OutputType. If you define the OutputType as mat, the function creates a MATLAB table and saves it to a .mat file.

Synopsys saves the AC analysis simulation results in a ac0 file. The function only supports binary ac0 files.

If you do not define the location of the ac0 file, the function looks for them in the present working directory. If you do not define the location of the output file to be saved, the function saves them in the present working directory.

ac0Reader(inputFileName, Name=Value) converts the AC analysis simulation results using one or more name-value pair arguments in addition to the input argument in the previous syntax. Unspecified arguments take default values.

Input Arguments

collapse all

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: ac0Reader('AC.ac0',OutputType='mat',OutputFileName='ACSim') converts the simulation results contained in the AC.ac0 file to a MATLAB table named ACSim.

Name of the ac0 file to be converted to a CSV or MAT file, specified as a string.

Note

You must provide a filename for the function to read.

Data Types: string

Location of the ac0 file that needs to be converted, specified as a string. The default location is the present working directory.

Data Types: string

Type of the output file, specified as either csv or mat.

If you define the OutputType as mat, the function creates a MATLAB table and saves it to a .mat file.

Data Types: string

Location of the converted output file that needs to be saved, specified as a string. The default location is the present working directory.

Data Types: string

Name of the converted output file, specified as a string.

Note

If you include the character * in the file name, the function replaces it with the file number. If multiple files must be written and the file name does not contain *, the file number is appended with the provided file name.

Data Types: string

Version History

Introduced in R2023b