various small fixes for cursor b backannotation, updated xschemtest netlist hashes
This commit is contained in:
parent
c06034e33e
commit
7afbd6a51d
|
|
@ -208,6 +208,19 @@ static void backannotate_at_cursor_b_pos(xRect *r)
|
|||
if(ss != s) break;
|
||||
}
|
||||
}
|
||||
if(p >= ofs + xctx->graph_npoints[dataset]) {
|
||||
double sweep0, sweep1;
|
||||
p--;
|
||||
sweep0 = xctx->graph_values[sweepvar][ofs];
|
||||
sweep1 = xctx->graph_values[sweepvar][p];
|
||||
if(fabs(sweep0 - xctx->graph_cursor2_x) < fabs(sweep1 - xctx->graph_cursor2_x)) {
|
||||
p = ofs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
dbg(1, "ofs=%d, npoints=%d, close to cursor=%g, p=%d\n",
|
||||
ofs, xctx->graph_npoints[dataset], sweep, p);
|
||||
for(i = 0; i < xctx->graph_nvars; i++) {
|
||||
|
|
@ -300,6 +313,11 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
/* set cursor position from master graph x-axis */
|
||||
else if(event == MotionNotify && (state & Button1Mask) && (xctx->graph_flags & 32 )) {
|
||||
xctx->graph_cursor2_x = G_X(xctx->mousex);
|
||||
if(tclgetboolvar("live_cursor2_backannotate")) {
|
||||
backannotate_at_cursor_b_pos(r);
|
||||
redraw_all_at_end = 1;
|
||||
}
|
||||
else need_redraw = 1;
|
||||
}
|
||||
if(xctx->ui_state & GRAPHPAN) break; /* After GRAPHPAN only need to check Motion events for cursors */
|
||||
if(xctx->mousey_snap < W_Y(gr->gy2)) {
|
||||
|
|
@ -506,7 +524,6 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
/* move cursor2 */
|
||||
else if(event == MotionNotify && (state & Button1Mask) && (xctx->graph_flags & 32 )) {
|
||||
if(tclgetboolvar("live_cursor2_backannotate")) {
|
||||
backannotate_at_cursor_b_pos(r);
|
||||
redraw_all_at_end = 1;
|
||||
}
|
||||
else need_redraw = 1;
|
||||
|
|
|
|||
|
|
@ -190,10 +190,10 @@ proc test_xschem_simulation {{f simulate_ff.sch}} {
|
|||
proc netlist_test {} {
|
||||
global netlist_dir
|
||||
foreach {f t h} {
|
||||
rom8k.sch spice 2107101451
|
||||
rom8k.sch spice 2248266091
|
||||
greycnt.sch verilog 3378316826
|
||||
autozero_comp.sch spice 3864091521
|
||||
loading.sch vhdl 2601437773
|
||||
autozero_comp.sch spice 2275498269
|
||||
loading.sch vhdl 584526899
|
||||
mos_power_ampli.sch spice 1004049459
|
||||
hierarchical_tedax.sch tedax 998070173
|
||||
LCC_instances.sch spice 3904804413
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
v {xschem version=3.1.0 file_version=1.2 }
|
||||
v {xschem version=3.1.0 file_version=1.2
|
||||
}
|
||||
G {}
|
||||
K {}
|
||||
V {}
|
||||
|
|
@ -178,3 +179,7 @@ tclcommand="
|
|||
xschem raw_read $netlist_dir/[file tail [file rootname [xschem get current_name]]].raw
|
||||
"
|
||||
}
|
||||
C {ngspice_probe.sym} 520 -490 0 0 {name=r3}
|
||||
C {ngspice_probe.sym} 200 -490 0 1 {name=r3}
|
||||
C {ngspice_probe.sym} 360 -190 0 0 {name=r3}
|
||||
C {ngspice_probe.sym} 240 -190 0 1 {name=r3}
|
||||
|
|
|
|||
Loading…
Reference in New Issue