
  _____ ___  ____    ___ ____ ___ ____    ____  _   _ __  __ __  __ ___ _____ 
 |  ___/ _ \|  _ \  |_ _| __ )_ _/ ___|  / ___|| | | |  \/  |  \/  |_ _|_   _|
 | |_ | | | | |_) |  | ||  _ \| |\___ \  \___ \| | | | |\/| | |\/| || |  | |  
 |  _|| |_| |  _ <   | || |_) | | ___) |  ___) | |_| | |  | | |  | || |  | |  
 |_|   \___/|_| \_\ |___|____/___|____/  |____/ \___/|_|  |_|_|  |_|___| |_|  
                                                                              

---------------------------------------------------------------------------------------
This folder contains demo files/models for "AMI Modeling using Script and Spice Model",
which is to be presented for IBIS summit at EPEPS, Asian Shanghai and Taipei in 2017.

On windows 64 platform, user may invoke the Run.bat under both Script and Spice folders
to see the demo process.

*** For Script:
The Run.bat will invoke the free SPISimAMI_Win64.exe to drive the SPISimProxy_WIN64.dll
and FFE_Proxy_Matlab.ami. The .ami file contains path to the Octave_AMI_Init.bat and/or
Matlab_AMI_Init.bat, which will invoke user installed octave or matlab in batch mode
 respectively.

User may need to change paths to the installed octave or matlab in these .bat files

Octave/Matlab script which implements FFE functions are in Matlab_AMI_Init.m
TxInput.csv is csv input pattern to drive the model


*** For Spice:
The Run.bat will drive SPISimAMI_WIN64.dll and spisimami.ami through the
SPISimAMI_Win64.exe. The .dll file has spice libraries built-in so that 
NgSPice/SSolver compatible simulator can run the SimpleRC.sp

User may also uncomment the paths to installed HSpice or SSolver in the .ami file.
Then model will simulate the specified spice circuit through these simulators.

SpiceInp.csv is the input to the model. SimpleRC.sp is provided here just as an
example. User may substitute with spice model which is compatible with the simulator
used. (e.g. HSpice)

*** Results:
After calling Run.bat, at least the following three files will be generated:
SPISimAMI_WIN64_USER.csv
SPISimAMI_WIN64_USER.raw
SPISimAMI_WIN64_USER.txt

The .csv and .raw are waveform output by the AMI models after AMI_Init or AMI_GetWave.
The .raw format is Berkeley spice compatible binary waveform format and can be viewed
with many open source tools and/or free SPILite provided by SPISim

The .txt files are the ami parameters parsed by SPISim_Win64.exe and sent to the model.

*** Note:
Do NOT remove or alter the LICENSE_INFO settings in the .ami files.
SPISimAMI.exe and SSolver.exe are free tools available at www.spisim.com

For further info. or comments, please contact support@SPISim.com
