code cleanups ("schematic" attribute)
This commit is contained in:
parent
795f89215e
commit
4a1b1483b9
|
|
@ -2045,9 +2045,9 @@ void get_additional_symbols(int what)
|
|||
my_strdup(_ALLOC_ID_, &verilog_sym_def, get_tok_value(xctx->inst[i].prop_ptr,"verilog_sym_def",4));
|
||||
my_strdup(_ALLOC_ID_, &vhdl_sym_def, get_tok_value(xctx->inst[i].prop_ptr,"vhdl_sym_def",4));
|
||||
|
||||
dbg(1, "get_additional_symbols(): schematic=%s\n", get_tok_value(xctx->inst[i].prop_ptr,"schematic",6));
|
||||
/* resolve schematic=generator.tcl( @n ) where n=11 is defined in instance attrs */
|
||||
my_strdup2(_ALLOC_ID_, &sch, get_tok_value(xctx->inst[i].prop_ptr,"schematic", 6));
|
||||
dbg(1, "get_additional_symbols(): schematic=%s\n", sch);
|
||||
schematic_token_found = xctx->tok_size;
|
||||
my_strdup2(_ALLOC_ID_, &sch, translate3(sch, 1, xctx->inst[i].prop_ptr, NULL, NULL, NULL));
|
||||
dbg(1, "get_additional_symbols(): sch=%s tok_size= %ld\n", sch, xctx->tok_size);
|
||||
|
|
@ -2061,7 +2061,7 @@ void get_additional_symbols(int what)
|
|||
dbg(1, "get_additional_symbols(): schematic not existing\n");
|
||||
dbg(1, "using: %s\n", symbol_base_sch);
|
||||
}
|
||||
if(schematic_token_found && sch[0]) { /* "schematic" token exists and a schematic is specified */
|
||||
if(schematic_token_found && sch[0]) { /* `schematic` token exists and a schematic is specified */
|
||||
int j;
|
||||
char *sym = NULL;
|
||||
char *symname_attr = NULL;
|
||||
|
|
|
|||
|
|
@ -5852,7 +5852,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
|||
* Return the base_name field of a symbol with name or number `n`
|
||||
* Normally this is empty. It is set for overloaded symbols, that is symbols
|
||||
* derived from the base symbol due to instance based implementation selection
|
||||
* (the instance "schematic" attribute) */
|
||||
* (the instance `schematic` attribute) */
|
||||
else if(!strcmp(argv[1], "symbol_base_name"))
|
||||
{
|
||||
int i = -1, found = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue