User Activity

  • Posted a comment on discussion Help on ngspice

    Thanks Holger. That helps with this specific example, but it doesn't appear to work with nested subcircuits, since this completely flattens the netlist. So, if I had a subcircuit inside another subcircuit I couldn't probe the power of that inner subcircuit, only each of the elementary devices within it. Is the inability of probe to access nested elements based on implementation details that make this difficult to accomplish, or it just hasn't been implemented yet?

  • Posted a comment on discussion Help on ngspice

    I'd like to be able to probe the power of an element within a subcircuit instance. However, I'm not sure if this is possible and, if so, how to make the reference in the probe line. Take the following example .title power .subckt series 1 2 r1 1 m 5 r2 m 2 10 .ends Vs vin 0 sin(0 1 1e1) X1 vin 0 series .probe p(x1.r1) .save all .tran 1e-3 1 This doesn't work. I get the message Warning: Could not find the instance line for x1.r1, .probe p(x1.r1) will be ignored The idea here would of course be to...

  • Posted a comment on discussion ngspice-users on ngspice

    Thanks Holger that worked perfectly with ngspice 37. I just needed to upgrade.

  • Modified a comment on discussion ngspice-users on ngspice

    Hi, I'm attempting to probe and save the current value into a subcircuit pin, but having trouble doing this. Here's my netlist, implementing a simple 15V crowbar circuit. .title tl431_crowbar .include tl431.mod .include bc327.mod .include sxx12x.mod Vs vccx 0 pwl(0 15 {stop/10-step} 15 {stop/10} 16 {stop} 16) Rs vccx vcc 0.1 Gs vcc 0 cur = 'i(Rs) > ilim ? i(Rs) - ilim : 0' X1 u1r 0 u1k tl431 R3 u1r u1k 5110.0 R4 u1r 0 1020.0 R1 vcc u1k 56 R2 u1k q1b 1000.0 Q1 q1c q1b vcc bc327-40 X2 vcc q1c 0 S4012R...

  • Modified a comment on discussion ngspice-users on ngspice

    Hi, I'm attempting to probe and save the current value into a subcircuit pin, but having trouble doing this. Here's my netlist, implementing a simple 15V crowbar circuit. .title tl431_crowbar .include tl431.mod .include bc327.mod .include sxx12x.mod Vs vccx 0 pwl(0 15 {stop/10-step} 15 {stop/10} 16 {stop} 16) Rs vccx vcc 0.1 Gs vcc 0 cur = 'i(Rs) > ilim ? i(Rs) - ilim : 0' X1 u1r 0 u1k tl431 R3 u1r u1k 5110.0 R4 u1r 0 1020.0 R1 vcc u1k 56 R2 u1k q1b 1000.0 Q1 q1c q1b vcc bc327-40 X2 vcc q1c 0 S4012R...

  • Posted a comment on discussion ngspice-users on ngspice

    Hi, I'm attempting to probe and save the current value into a subcircuit pin, but having trouble doing this. Here's my netlist, implementing a simple 15V crowbar circuit. .title tl431_crowbar .include tl431.mod .include bc327.mod .include sxx12x.mod Vs vccx 0 pwl(0 15 {stop/10-step} 15 {stop/10} 16 {stop} 16) Rs vccx vcc 0.1 Gs vcc 0 cur = 'i(Rs) > ilim ? i(Rs) - ilim : 0' X1 u1r 0 u1k tl431 R3 u1r u1k 5110.0 R4 u1r 0 1020.0 R1 vcc u1k 56 R2 u1k q1b 1000.0 Q1 q1c q1b vcc bc327-40 X2 vcc q1c 0 S4012R...

  • Posted a comment on discussion ngspice-users on ngspice

    That did the trick, thanks so much @h_vogt!

  • Modified a comment on discussion ngspice-users on ngspice

    I'm trying to create a mixed-signal simulation but I'm getting the following error: Warning: Too many analog/event-driven solution alternations WARNING: Convergence problems at node (n2). Instance: a4 Connection: out Port: 0 Transient solution failed - The MWE triggering this error is below. Basically, it feeds the output of an xspice xnor gate back to one of its inputs via a series resistor and parallel capacitor to ground. The other input is tied to ground. Both xnor inputs interface with the analog...

View All

Personal Data

Username:
matthuszagh
Joined:
2020-09-10 16:21:26

Projects

  • No projects to display.

Personal Tools