added xschem set [schsymbolprop|schprop|schverilogprop|schvhdlprop|schtedaxprop] <value> commands for setting global schematic/symbol attributes
This commit is contained in:
parent
cfe97c2ccf
commit
31492b3955
|
|
@ -510,6 +510,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><kbd> abort_operation</kbd></li><pre>
|
||||
|
|
@ -1162,7 +1163,12 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
|
|||
<li><kbd> no_draw </kbd> set no drawing flag (0 or 1) </li>
|
||||
<li><kbd> no_undo </kbd> set to 1 to disable undo </li>
|
||||
<li><kbd> rectcolor </kbd> set current layer (0, 1, .... , cadlayers-1) </li>
|
||||
<li><kbd> sch_to_compare </kbd> st name of schematic to compare current window with </li>
|
||||
<li><kbd> sch_to_compare </kbd> set name of schematic to compare current window with </li>
|
||||
<li><kbd> schsymbolprop </kbd> set global symbol attribute string </li>
|
||||
<li><kbd> schprop </kbd> set schematic global spice attribute string </li>
|
||||
<li><kbd> schverilogprop </kbd> set schematic global verilog attribute string </li>
|
||||
<li><kbd> schvhdlprop </kbd> set schematic global vhdl attribute string </li>
|
||||
<li><kbd> schtedaxprop </kbd> set schematic global tedax attribute string </li>
|
||||
<li><kbd> text_svg </kbd> set to 1 to use svg <text> elements </li>
|
||||
<li><kbd> semaphore </kbd> debug </li>
|
||||
<li><kbd> show_hidden_texts </kbd> set to 1 to enable showing texts with attr hide=true </li>
|
||||
|
|
@ -1332,6 +1338,9 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3883,10 +3883,30 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
|||
change_layer();
|
||||
}
|
||||
}
|
||||
else if(!strcmp(argv[2], "sch_to_compare")) { /* st name of schematic to compare current window with */
|
||||
else if(!strcmp(argv[2], "sch_to_compare")) { /* set name of schematic to compare current window with */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strncpy(xctx->sch_to_compare, abs_sym_path(argv[3], ""), S(xctx->sch_to_compare));
|
||||
}
|
||||
else if(!strcmp(argv[2], "schsymbolprop")) { /* set global symbol attribute string */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strdup(_ALLOC_ID_, &xctx->schsymbolprop, argv[3]);
|
||||
}
|
||||
else if(!strcmp(argv[2], "schprop")) { /* set schematic global spice attribute string */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strdup(_ALLOC_ID_, &xctx->schprop, argv[3]);
|
||||
}
|
||||
else if(!strcmp(argv[2], "schverilogprop")) { /* set schematic global verilog attribute string */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strdup(_ALLOC_ID_, &xctx->schverilogprop, argv[3]);
|
||||
}
|
||||
else if(!strcmp(argv[2], "schvhdlprop")) { /* set schematic global vhdl attribute string */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strdup(_ALLOC_ID_, &xctx->schvhdlprop, argv[3]);
|
||||
}
|
||||
else if(!strcmp(argv[2], "schtedaxprop")) { /* set schematic global tedax attribute string */
|
||||
if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;}
|
||||
my_strdup(_ALLOC_ID_, &xctx->schtedaxprop, argv[3]);
|
||||
}
|
||||
else if(!strcmp(argv[2], "text_svg")) { /* set to 1 to use svg <text> elements */
|
||||
text_svg=atoi(argv[3]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue