support OBSERVE_ONLY attribute in cell description (like input attribute)

part 2 of fix for
[ 1875737 ] Syntax errors/Port index warning parsing ATMEL BSDL files


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@935 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent 5450f80daf
commit 06e611385f

@ -3,6 +3,10 @@
* src/bsdl/bsdl_bison.y, src/bsdl/bsdl_sem.c, src/bsdl/bsdl.h:
handle vectored ports correctly, part 1 of fix for
[ 1875737 ] Syntax errors/Port index warning parsing ATMEL BSDL files
* src/bsdl/bsdl_bison.y, src/bsdl/bsdl_sem.c, src/bsdl/bsdl_flex.l:
support OBSERVE_ONLY attribute in cell description (like input attribute)
part 2 of fix for
[ 1875737 ] Syntax errors/Port index warning parsing ATMEL BSDL files
2008-01-20 Kolja Waschk <kawk>

@ -822,6 +822,8 @@ Cell_Function : INPUT
{ $$ = CLOCK; }
| BIDIR
{ $$ = BIDIR; }
| OBSERVE_ONLY
{ $$ = OBSERVE_ONLY; }
;
Safe_Value : IDENTIFIER
{ $$ = $1; }

@ -241,6 +241,7 @@ Control CONTROL
Controlr CONTROLR
Internal INTERNAL
Clock CLOCK
Observe_Only OBSERVE_ONLY
Bidir BIDIR
Bidir_In BIDIR_IN
Bidir_Out BIDIR_OUT
@ -267,7 +268,6 @@ Runbist_Execution RUNBIST_EXECUTION
Intest_Execution INTEST_EXECUTION
Bsdl_Extension BSDL_EXTENSION
Compliance_Patterns COMPLIANCE_PATTERNS
Observe_Only OBSERVE_ONLY
%%
{Entity} {return(ENTITY); }
{Port} {yyextra->Base = DECIMAL; /* Default number base */
@ -350,6 +350,7 @@ Observe_Only OBSERVE_ONLY
<BOU,PAC>{Control} {return(CONTROL); }
<BOU,PAC>{Internal} {return(INTERNAL); }
<BOU,PAC>{Clock} {return(CLOCK); }
<BOU,PAC>{Observe_Only} {return(OBSERVE_ONLY); }
<BOU>{Bidir} {return(BIDIR); }
<PAC>{Bidir_In} {return(BIDIR_IN); }
<PAC>{Bidir_Out} {return(BIDIR_OUT); }
@ -357,7 +358,6 @@ Observe_Only OBSERVE_ONLY
<PAC>{Sample} {return(SAMPLE); }
<PAC>{Intest} {return(INTEST); }
<PAC>{Runbist} {return(RUNBIST); }
<PAC>{Observe_Only} {return(OBSERVE_ONLY); }
<PAC>{Pi} {return(PI); }
<PAC>{Po} {return(PO); }
<PAC>{Upd} {return(UPD); }

@ -619,6 +619,8 @@ void bsdl_ci_apply_cell_info(parser_priv_t *priv, int bit_num)
case OUTPUT3:
cmd[2] = "O";
break;
case OBSERVE_ONLY:
/* fall through */
case INPUT:
/* fall through */
case CLOCK:

Loading…
Cancel
Save