42 char *str1 = (
char*) NULL;
43 char *str2 = (
char*) NULL;
47 long *p = (
long*) NULL;
75 Node_List[out].depend = (
long*) malloc((
size_t) ((
long) (
sizeof (
long)) * (num+1L)));
76 if ((
long*) NULL ==
Node_List[out].depend) {
78 (void) fprintf(
STDERR,
" dynamic memory allocation error\n");
123 char *str = (
char*) NULL;
124 long *p = (
long*) NULL;
125 int first, flag, err;
133 out = determined_ptr;
148 for (i = 0L; i < ndel; i++) {
157 out = determined_ptr;
161 for (i = 0L; i < ndel; i++) {
176 for (out = determined_ptr; out <
Num_Nodes; out++) {
189 for (i = 0L; i < determined_ptr; i++) {
208 out = determined_ptr;
216 (void) fprintf(
STDERR,
"\nNAPA Error: (static loop)\n");
217 (void) fprintf(
STDERR,
"\n These nodes are involved in one or several static loops:\n");
219 for (out = determined_ptr; out <
Num_Nodes; out++) {
221 for (out2 = determined_ptr; out2 <
Num_Nodes; out2++) {
244 out = determined_ptr;
252 for (out = determined_ptr; out <
Num_Nodes; out++) {
254 flag = ((
Node_List[out].determined) && (flag)) ?
true :
false;
258 (void) fprintf(
STDERR,
"\n");
260 (void) fprintf(
STDERR,
" In Segment [%ld]\n", nseg);
262 for (out = determined_ptr; out <
Num_Nodes; out++) {
269 (void) fprintf(
STDERR,
" -> node %s\n", str);
277 (void) fprintf(
STDERR,
"\n Your description is not correct. NAPA is not able to sort the nodes of your netlist. \n");
278 (void) fprintf(
STDERR,
" Check for missing or mispelled nodes or loops of nodes containing no delay or only delays\n\n");
280 (void) fprintf(
STDERR,
" You are using 'stuck' instructions. This is generally safe, except if you stuck a node \n");
281 (void) fprintf(
STDERR,
" to another node. In this case, the resulting netlist could be impossible to simulate (loop!).\n");
282 (void) fprintf(
STDERR,
" You could try to remove these particular instructions.\n\n");
void print_error_location(const char *type, const unsigned long *mlin, const unsigned long *mfil)
void swap_nodes(long i, long j)
long node_id(const char *identifier)
long record_id(const char *identifier)
void swap_delay_inputs(long i, long j)
EXTERN RECORD_TYPE Record_List[127L]
EXTERN NODE_TYPE Node_List[4095L]
EXTERN long Delay_Input[4095L]
void print_error_banner_and_exit(void)
char * get_sign_and_token(char *str, char *sgn, char *tok)
void build_node_dependencies(void)