31 char *tg = (
char*) NULL;
32 char *nm = (
char*) NULL;
33 unsigned long *ml = (
unsigned long*) NULL;
34 unsigned long *mf = (
unsigned long*) NULL;
38 char brck[3] = {
'\0'};
42 char *str = (
char*) NULL;
64 (void) fprintf(
STDERR,
" number of levels <%s> must be digital type\n", tok1);
71 (void) fprintf(
STDERR,
" input <%s> of the converter must be analog type\n", tok1);
78 (void) fprintf(
STDERR,
" reference <%s> of the converter must be analog type\n", tok1);
91 if ((0 == strcmp(tok1,
"after")) || (0 == strcmp(tok1,
"with"))) {
99 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
100 (void) fprintf(
STDERR,
" input nodes must be all digital type or all analog type\n");
115 (void) fprintf(
STDERR,
" opcode <%s> must be digital type\n", tok1);
126 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
153 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
166 (void) fprintf(
STDERR,
" input <%s> must be analog type\n", tok1);
182 (void) fprintf(
STDERR,
" shift value <%s> must be digital type\n", tok1);
189 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
205 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
223 (void) fprintf(
STDERR,
" input <%s> should be a hexadecimal constant or a digital type node\n", tok1);
235 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
254 (void) fprintf(
STDERR,
" type inconsistency between clip level low <%s> and output node <%s>\n", tok1, nm);
261 (void) fprintf(
STDERR,
" type inconsistency between clip level high <%s> and output node <%s>\n", tok1, nm);
268 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
287 (void) fprintf(
STDERR,
" type inconsistency between inputs <%s> and <%s>\n", tok1, tok2);
303 (void) fprintf(
STDERR,
" offset <%s> must be analog type\n", tok1);
310 (void) fprintf(
STDERR,
" amplitude <%s> must be analog type\n", tok1);
317 (void) fprintf(
STDERR,
" frequency <%s> must be analog type\n", tok1);
325 (void) fprintf(
STDERR,
" phase <%s> must be analog type\n", tok1);
329 (void) fprintf(
STDERR,
" delay <%s> must be analog type\n", tok1);
338 (void) fprintf(
STDERR,
" optional duty cycle <%s> must be analog type\n", tok1);
369 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
383 (void) fprintf(
STDERR,
" number of levels <%s> must be digital type\n", tok1);
390 (void) fprintf(
STDERR,
" input <%s> of the converter must be digital type\n", tok1);
397 (void) fprintf(
STDERR,
" reference <%s> of the converter must be analog type\n", tok1);
426 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
438 (void) fprintf(
STDERR,
" input <%s> must be analog type\n", tok1);
461 (void) fprintf(
STDERR,
" type inconsistency between inputs <%s> and <%s>\n", tok1, tok2);
464 if (0 != strcmp(str,
"")) {
469 (void) fprintf(
STDERR,
" type inconsistency between inputs <%s>, <%s> and precision <%s>\n", tok1, tok2, tok3);
493 (void) fprintf(
STDERR,
" input <%s> must be analog type>\n", tok1);
508 (void) fprintf(
STDERR,
" type inconsistency between parameter <%s> and output node <%s>\n", tok1, nm);
515 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
529 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
541 (void) fprintf(
STDERR,
" bit number <%s> must be digital type\n", tok1);
548 (void) fprintf(
STDERR,
" input node <%s> must be digital type\n", tok1);
561 (void) fprintf(
STDERR,
" control <%s> must be digital type\n", tok1);
568 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok2, nm);
580 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
592 (void) fprintf(
STDERR,
" set <%s> must be digital type\n", tok1);
599 (void) fprintf(
STDERR,
" reset <%s> must be digital type\n", tok1);
611 (void) fprintf(
STDERR,
" control <%s> must be digital type\n", tok1);
619 if (0 == strcmp(tok1,
"void")) {
625 (void) fprintf(
STDERR,
" type inconsistency between the input <%s> and output node <%s>\n", tok1, nm);
642 (void) fprintf(
STDERR,
" type inconsistency between the input <%s> and output node <%s>\n", tok1, nm);
655 (void) fprintf(
STDERR,
" number of delays <%s> must be a positive digital\n", tok1);
662 (void) fprintf(
STDERR,
" type inconsistency between input <%s> and output node <%s>\n", tok1, nm);
674 (void) fprintf(
STDERR,
" DC value <%s> must be analog type\n", tok1);
681 (void) fprintf(
STDERR,
" RMS value <%s> must be analog type\n", tok1);
695 (void) fprintf(
STDERR,
" address <%s> must be digital type\n", tok1);
702 (void) fprintf(
STDERR,
" chip select <%s> must be digital type\n", tok1);
709 (void) fprintf(
STDERR,
" read/write <%s> must be digital type\n", tok1);
716 (void) fprintf(
STDERR,
" type inconsistency between write port <%s> and read port <%s>\n", tok1, nm);
730 (void) fprintf(
STDERR,
" address <%s> must be digital type\n", tok1);
737 (void) fprintf(
STDERR,
" chip select <%s> must be digital type\n", tok1);
749 (void) fprintf(
STDERR,
" control <%s> must be digital type\n", tok1);
756 (void) fprintf(
STDERR,
" type inconsistency between the input <%s> and output node <%s>\n", tok1, nm);
766 (void) fprintf(
STDERR,
" type inconsistency between setting value <%s> and output node <%s>\n", tok1, nm);
778 (void) fprintf(
STDERR,
" mask <%s> must be a hexadecimal constant\n", tok1);
789 (void) fprintf(
STDERR,
" input <%s> must be digital type\n", tok1);
802 (void) fprintf(
STDERR,
" first level <%s> must be analog type\n", tok1);
809 (void) fprintf(
STDERR,
" second level <%s> must be analog type>\n", tok1);
816 (void) fprintf(
STDERR,
" step time <%s> must be analog type\n", tok1);
824 (void) fprintf(
STDERR,
" step time <%s> must be analog type\n", tok1);
839 (void) fprintf(
STDERR,
" type inconsistency between trigger threshold <%s> and input node <%s>\n", tok1, tok2);
851 (void) fprintf(
STDERR,
" decimation factor <%s> must be digital type\n", tok1);
858 (void) fprintf(
STDERR,
" decimation offset <%s> must be digital type\n", tok1);
868 (void) fprintf(
STDERR,
" unknown node kind [#%ld] detected when checking node type\n", kd);
void print_warning_location(const char *type, const unsigned long *mlin, const unsigned long *mfil)
void print_error_location(const char *type, const unsigned long *mlin, const unsigned long *mfil)
long get_type(char *identifier)
long node_id(const char *identifier)
EXTERN NODE_TYPE Node_List[4095L]
#define DIFFERENTIATOR_KIND
#define DIGITAL_DATA_TYPE
char * get_token_between_braces(char *str, char *brc, char *tok)
char * get_sign_and_token(char *str, char *sgn, char *tok)