Tutorial:SignalStorm Tutorial

From NCSU EDA Wiki
Jump to: navigation, search

This tutorial takes you through all that you need to perform the re-characterization of the OSU standard cell library for different voltages.

DATA SETUP

You need follow files to run SignalStorm library characterizing feature.

  • The file that contains the sub circuit spice netlist of your standard library: iit018_stdcells.sp
  • The spice model: tsmc18.m
  • The slc setup file: setup.ss
  • Signalstorm characterization script: setup_signalstorm, ss_step1, ss_step2, ss_step3, finish_signalstorm
  • License file: license.dat.cadence, synopsys_hspice.dat
  • Cell area information: tsmc18_cells.area, cells_mergearea
  • Footprint information: footprint.def

NOTE: DON'T CHANGE PERMISSIONS OF THESE FILES.

To this end, download all the tar-balls for the Source Bin and IIT_template. Download these to the directory where re-characterization is going to be performed, unzip and untar. A change of permissions might be in order.

ENVIRONMENT SETUP

Most of the commands below are specific to North Carolina State University.

% add cadence
% add hspice

THE COMMAND BELOW NEEDS TO BE RUN IN ONE SINGLE LINE .. could not get it to work for the html format

% setenv LM_LICENSE_FILE 2012@license1.ece.ncsu.edu:
2012@license2.ece.ncsu.edu:2012@license3.ece.ncsu.edu:
5280@license1.ece.ncsu.edu:5280@license2.ece.ncsu.edu:5280@license3.ece.ncsu.edu
% ipsd
% ipsc
% ipsc -n hspice -i

The above commands lead to the checking out of the licenses required for running SignalStorm and setting up the required simulation requirements for dealing with HSPICE.

RUNNING THE SIGNALSTORM FLOW

The first thing that needs to be done for a re-characterization is the change of the parameters in the setup.ss file where, in this case, we would need to change the voltage. The following commands need to be done in turn to do the characterization:

% setup_signalstorm (This is the traditional route but seems to give errors because of the installation of MAGIC) hence we replace it with
  cleanup_signalstorm
  slc -S ss_step1
% slc -S ss_step2 
% slc -S ss_step3
% finish_signalstorm

The ss_step2 file needed modification where we had to add a db_spice line for each standard cell [for eg. db_spice -keep_log -d AND2X1]). The re-characterization has been automated in recharacterize.pl which creates an IIT_xx folder for each re-characterization voltage "xx" which is listed in the line @voltages = (1.5, 2.0, 2.1, 2.5, 2.7); of the file.

INFORMATION

  • After running setup_signalstorm: a directory tsmc18.ipdb will be created which contains the test vectors of each cell in the standard cell library.
  • After running slc -S ss_step2: two directories sigstormlc.log and sigstormlc.work are created. sigstormlc.log stores the log file of signalstorm library characterization for each std cell. sigstormlc.work stores the characterization (hspice simulation) results. slc.log and slc_cmd.log is the log file and command log file for this characterization.
  • After running slc -S ss_step3: tsmc18.alf & tsmc18.rep created.
  • After running finish_signalstorm: tsmc18.lib, tsmc18.tlf, tsmc18.v, tsmc18.vhdl and tsmc18.v.se are created. tsmc18.lib and tsmc18.tlf are timing libraries. Tsmc18.v is gate level delay for each cell in verilog format. tsmc18.vhdl are gate level delay for each cell in VHDL format.