1 /**************************************************************************** 2 Copyright (C) 1987-2015 by Jeffery P. Hansen 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along 15 with this program; if not, write to the Free Software Foundation, Inc., 16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 ****************************************************************************/ 18 #ifndef __delay_h 19 #define __delay_h 20 21 typedef struct GDelayDef_str GDelayDef; 22 struct GDelayDef_str { 23 char *dd_tech; /* Technology */ 24 char *dd_prim; /* Primitive name */ 25 Expr *dd_area; /* Area expression */ 26 Expr *dd_power; /* Power expression */ 27 int dd_numDelays; /* Number of delay specifications */ 28 char *dd_names[MAXDELAYS]; /* Names of delay parameters */ 29 Expr *dd_delay[MAXDELAYS]; /* Array of delay expressions */ 30 GDelayDef *dd_next; /* Next in list of delay definitions */ 31 }; 32 33 int GDelayDef_readFile(const char *file_name); /* Read a delay definition file */ 34 GDelayDef *GDelayDef_find(const char *tech,const char *prim); /* Find a delay definition */ 35 GDelayDef *GDelayDef_findList(const char *prim); /* Find list of delay definitions for a primitive */ 36 GDelayDef *GDelayDef_findTech(GDelayDef *,const char *tech); /* Find delay definition for a technology from a list */ 37 38 int GDelayDef_getDelays(GDelayDef *dd, GCElement *g, int *delays); 39 40 void GDelayDef_begin(const char *tech,const char *prim); 41 void GDelayDef_end(); 42 43 void GDelayDef_flush(); 44 45 char **GDelayDef_getTechList(); /* Get list of defined technologies */ 46 47 #endif 48