diff --git a/jtag/include/bssignal.h b/jtag/include/bssignal.h index 44c2e33c..8cf3cfe7 100644 --- a/jtag/include/bssignal.h +++ b/jtag/include/bssignal.h @@ -32,6 +32,7 @@ typedef struct signal signal_t; struct signal { char *name; + char *pin; /* djf hack pin number from bsdl */ signal_t *next; bsbit_t *input; bsbit_t *output; diff --git a/jtag/include/jtag.h b/jtag/include/jtag.h index 2616fee0..f2ee9fcb 100644 --- a/jtag/include/jtag.h +++ b/jtag/include/jtag.h @@ -37,6 +37,7 @@ extern chain_t *chain; extern bus_t *bus; extern int big_endian; +extern int debug_mode; int jtag_parse_file( const char *filename ); diff --git a/jtag/include/part.h b/jtag/include/part.h index 123c36dd..a842fc1f 100644 --- a/jtag/include/part.h +++ b/jtag/include/part.h @@ -40,6 +40,7 @@ typedef struct part part_t; struct part { tap_register *id; + char *alias; /* djf refdes */ char manufacturer[MAXLEN_MANUFACTURER + 1]; char part[MAXLEN_PART + 1]; char stepping[MAXLEN_STEPPING + 1]; diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index 89debed4..acd0dd90 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -46,6 +46,7 @@ ssize_t getline( char **lineptr, size_t *n, FILE *stream ); #endif chain_t *chain = NULL; +int debug_mode = 0; int big_endian = 0; extern cfi_array_t *cfi_array; @@ -173,6 +174,7 @@ jtag_parse_line( char *line ) } r = cmd_run( a ); + if(debug_mode & 1)printf("Return in jtag_parse_line r=%d\n",r); free( a ); return r; } @@ -252,7 +254,7 @@ jtag_parse_file( const char *filename ) go = jtag_parse_stream( f ); fclose(f); - + if(debug_mode & 1)printf("File Closed gp=%d\n",go); return go; }