Table of Contents

Name

sortlosig - sort the logical signals of a figure by name

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Synopsys

#include mlo412.h"
void sortlosig(signals)
losig_list **signals;

Parameters

**signals
Pointer to the head of the list of signals that is to be sorted

Description

sortlosig sorts the list of signals pointed to by signals. The signals are sorted by names, but since names are not the signals identifier, the getsigname(3) routine is called to retrieve a signal name. The standart qsort(3) function library is called for sorting. Therefore, a table the number of signal wide is created, requiring a lot of memory with big circuits. Also, even if qsort(3) runs in n log n time, getsigname(3) is called twice, and the natural comparison function once, and this is quite time consuming with big circuits. It is recommended to use this function only if needed.

Example

#include mlo412.h"
void savesorted(figname)
char *figname;
{
lofig_list *figure = getlosig(figname, `A'); sortlocon(&figure->LOCON);
sortlosig(&figure->LOSIG);
savelofig(figure);
}

See Also

mbk(1) , losig(3) , addlosig(3) , dellosig(3) , getsigname(3) , sortlocon(3) , qsort(3) .

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.