diff --git a/doc/xschem_man/developer_info.html b/doc/xschem_man/developer_info.html index e1d47ace..ebd464e5 100644 --- a/doc/xschem_man/developer_info.html +++ b/doc/xschem_man/developer_info.html @@ -500,6 +500,8 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns" + + @@ -673,6 +675,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
@@ -1206,6 +1212,8 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
toggle *_ignore=true attribute on selected instances
* = {spice,verilog,vhdl,tedax} depending on current netlist mode
+
+ returns 1 if line {x1 y1 x2 y2} touches point {x0 y0}, 0 otherwise
Translate string 'str' replacing @xxx tokens with values in instance 'n' attributes
Example: xschem translate vref {the voltage is @value}
@@ -1230,8 +1238,10 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
Highlight or select (if 'sel' set to 1) perfectly overlapped instances
this is usually an error and difficult to grasp visually
- - Used by xschem.tcl for configure events+
+ Used by xschem.tcl for configure events (set icon)+
+ return 4 coordinates of wire[n]
Place a new wire
if no coordinates are given start a GUI wire placement
@@ -1276,6 +1286,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
+
diff --git a/src/scheduler.c b/src/scheduler.c
index 63849f6e..f3a9b710 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -1131,6 +1131,8 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
case 'w':
if(!strcmp(argv[2], "wirelayer")) { /* layer used for wires */
Tcl_SetResult(interp, my_itoa(WIRELAYER), TCL_VOLATILE);
+ } else if(!strcmp(argv[2], "wires")) { /* number of wires */
+ Tcl_SetResult(interp, my_itoa(xctx->wires), TCL_VOLATILE);
}
break;
case 'x':
@@ -1220,6 +1222,9 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
* getprop text num attr
* Get attribute 'attr' of text number 'num'
*
+ * getprop wire num attr
+ * Get attribute 'attr' of wire number 'num'
+ *
* ('inst' can be an instance name or instance number)
* ('pin' can be a pin name or pin number)
*/
@@ -1331,6 +1336,14 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
int n = atoi(argv[3]);
Tcl_SetResult(interp, (char *)get_tok_value(xctx->text[n].prop_ptr, argv[4], 2), TCL_VOLATILE);
}
+ } else if(!strcmp(argv[2], "wire")) { /* xschem getprop wire n token */
+ if(argc < 5) {
+ Tcl_SetResult(interp, "xschem getprop wire needs