alliance-programmers '01
ALC : CVS loginfo, ocp/src


VANCOUR Emmanuel [Mai] (mai0009@messiaen.lip6.fr)
Fri, 14 Sep 2001 13:52:12 +0200

=================================================================== Modification le : Fri Sep 14 13:51:56 CEST 2001 Par : mai0009 =================================================================== Update of /users/outil/alliance/cvsroot/alliance/sources/ocp/src In directory bizet.lip6.fr:/users/dsk03/mai0009/alliance/sources/ocp/src Modified Files: PPlacement.cpp PPlacement.h Log Message: ajout de la fonction AddRowend - modification de Save dans PPlacement =================================================================== Index: PPlacement.cpp =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocp/src/PPlacement.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -r1.15 -r1.16 486c486 < // void Save() const --- > // void Save() 489c489 < PPlacement::Save() const --- > PPlacement::Save() 521c521,523 < --- > > AddRowend(physicalfig); > 527a530,616 > // void AddRowend(struct phfig* physicalfig) > // ====================================================================== > void PPlacement::AddRowend(struct phfig* physicalfig) > { > long xmax = (long) (BBox.GetMaxX()); > long ymax = (long) (BBox.GetMaxY() / ROWHEIGHT); > > // tab represents the circuit > bool tab[xmax][ymax]; > > for (long tabx = 0 ; tabx < xmax ; tabx++) > for (long taby = 0 ; taby < ymax ; taby++) > tab[tabx][taby] = false; > > // look for rowend instances already present > // if any, we save the highest number of them > // we will then create instances whith a bigger number > // this prevents having two instances with the same name > int inscount = 0; > for (struct phins* It = physicalfig->PHINS ; It ; It = It->NEXT) > { > if ( strncmp(It->INSNAME,"rowendx0_",9) == 0 ) > { > char *nb = strdup(It->INSNAME + 9); > if ( atoi(nb) > inscount ) inscount = atoi(nb); > } > > // fill the tab with instances (true = instance is present) > struct phfig* insfig = getphfig(It->FIGNAME, '0'); =================================================================== Ce message est envoyé au personnes abonnées à alliance-programmers Pour plus d'information sur cette mailling-list, visitez : http://www-asim.lip6.fr/alliance/mailing-lists/

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 17 September 2001.