Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / api / lbt / lbt_API.h
1 #include "avt_API_types.h"
2 /*
3 MAN lib_DriveFile
4 DESCRIPTION
5 Saves a list of blackboxed timing figures on disk, in a single {.lib} file
6 ARGS
7 fig_list % List of timing figures to print in the {.lib} file. For a single timing figure, use a list of one element (example given below)
8 befig_list % List of behavioral figures to associate with the timing figures. There should be a one-to-one correspondence between the elements in {befig_list} and {fig_list}, and there should be the same number of elements if the two lists. Use {NULL} to fill the gaps in {befig_list}.
9 file % Name of the {.lib} file to create
10 delaytype % Defines if the {cell_rise} and {cell_fall} timing groups will have only maximum delays ({max}), minimum delays ({min}) or both ({both}).
11 EXAMPLE % {lib_DriveFile [list $bbox] NULL cpu.lib max}
12 */
13 void lib_DriveFile (List *fig_list, List *befig_list, char* file, char* delaytype);
14 void lib_drivefile (List *fig_list, List *befig_list, char* file, char* delaytype);
15
16 /*
17 MAN lib_DriveHeader
18 DESCRIPTION
19 Prints a {.lib} header in a file, regarding to the information present in the given timing figure
20 ARGS
21 fig % Pointer on the timing figure to consider
22 file % Pointer on the file where to print the {.lib} header
23 libname % Name to be put in the {library} statement of the {.lib} header
24 */
25 void lib_DriveHeader (TimingFigure *fig, FILE* file, char* libname);
26
27 /*
28 MAN lib_CanonicPinName
29 DESCRIPTION
30 Adapts pin names according to the {.lib} syntax (typically bus delimiter are replaced by {_)}
31 ARGS
32 name % Pin's name
33 */
34 char *lib_CanonicPinName (char *name);
35
36 /*
37 MAN xxxtlf_DriveFile
38 DESCRIPTION
39 ARGS
40 fig_list % List of timing figures to print in the {.lib} file. For a single timing figure, use a list of one element (example given below)
41 befig_list % List of behavioral figures to associate with the timing figures. There should be a one-to-one correspondence between the elements in {befig_list} and {fig_list}, and there should be the same number of elements if the two lists. Use {NULL} to fill the gaps in {befig_list}.
42 file % Name of the {.lib} file to create
43 format % {tlf3} or {tlf4}
44 EXAMPLE % {tlf_DriveFile [list $bbox] NULL cpu.tlf tlf4}
45 */
46
47 void tlf_DriveFile (List *fig_list, List *befig_list, char* file, char* format);