Table of Contents

Name

sortlocon - sort the logical connectors 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 sortlocon(connectors)
locon_list **connectors;

Parameters

connectors
Pointer to the head of the connector list that is to be sorted

Description

sortlocon sorts the list of logical connectors pointed to by *connectors. The connectors are sorted by names, using a numerical comparison function that ensures x_12 > x_2.
The standart qsort(3) function library is called for sorting. Therefore, a table the number of connectors wide is created. This is not very memory consuming since the number of connectors in a circuit interface is quite small, nor very time consuming since this algorithm runs in a n log n time.

Example

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

See Also

mbk(1) , locon(3) , addlocon(3) , dellocon(3) , checkloconorder(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.