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 /*
19  *    Declarations for circuit representation structures.
20  */
21 #ifndef __tkgate_config_h
22 #define __tkgate_config_h
23 
24 /*
25  * Initial tcl script to execute on start up
26  */
27 #define TCLSCRIPT "scripts/tkgate.tcl"
28 
29 /*
30  * Various limitations
31  */
32 #define STRMAX		1024		/* Maximum length of a string */
33 #define MINSIZE		40		/* Minumum size for a logic block */
34 #define NUMORIENTS	4		/* Number of orientations */
35 #define SNAPSIZE	6		/* */
36 #define DEFAULT_PADMAX	16		/* Maximum number of "pads" on a gate */
37 #define MAXKBINDS	16		/* Maximum number of key bindings for creating a gate */
38 #define MAKEENTRYMAX	128		/* Max entries on a make page */
39 #define NETALIASLIST_STEPSIZE 5		/* Allocation increment for net alias lists */
40 #define TKGATE_STUBLEN	15		/* Default length of wires on new gates */
41 #define MAXMODS		128		/* Maximum number of modules in text buffer */
42 #define MODULE_PATH_MAX	2048		/* Maximum module depth */
43 
44 
45 /*
46   Distances for hit testing.  The values should be the square of
47   the hit distance.
48  */
49 #define MAXPORTRANGE	(12*12)		/* Maximum range for port hit */
50 #define MAXWIRERANGE	(3*3)		/* Maximum range for wire hit */
51 #define GATERANGE 	(15*15+1)	/* Maximum range for gate hit */
52 #define SELMODETHRESH	(15*15)		/* Drag distance to activate select mode */
53 
54 /*
55  * Default prefix
56  */
57 #define TKGATE_DEFAULT_PREFIX "_GG"	/* Prefix for tkgate primitive cells */
58 
59 /*
60  * Name of default technology
61  */
62 #define TKGATE_DEFAULT_TECH "default"
63 
64 /*
65  * Debug options
66  */
67 #define LOCALE_DEBUG	0		/* Debug of locale handling */
68 
69 #endif
70 
71