netlist problem with nested dc sweep

Bug #1824336 reported by Dietmar Warning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Jon Evans

Bug Description

If I setup a nested dc sweep e.g. for mos output characteristic with vds sweep at first and vgs sweep as second I got a simulation error because the dc command is wrong, see below

.dc V2 0 3 10mV1 500m 3 500m

A space is missing before V1.

Working with Version 5.1.0_1 release build under Win 7.
Single DC sweep is working.

Revision history for this message
Anton (antonpupkov) wrote :

A short video would help to understand the problem.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Deitmar, would it be possible for you to post your schematic and schematic library? If you cannot post them, would it be possible for you to create a test schematic that duplicates the issue. I'm having trouble duplicating this.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Dietmar Warning (m+s) wrote :

I use your laser driver example laser_driver.pro only to show the Problem.
After loading the schematic in eeschema I open the Simulation->setup and fill out - see the attached picture.
After start the Simulation I got an error.
If I open Simulation->netlist I see in the end:

.save V(VSS)
.dc V1 0 5 100mV2 1 1 1
.end

Please remark that is no White space between 100mV and V2!

This is the Problem for the Simulator error.

Hope it will help you to duplicate the error.

Jon Evans (craftyjon)
Changed in kicad:
status: Incomplete → Confirmed
importance: Undecided → Medium
assignee: nobody → Jon Evans (craftyjon)
Jon Evans (craftyjon)
Changed in kicad:
milestone: none → 5.1.1
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 77706a7ea634a04ddc25006730539568823ffb46
https://git.launchpad.net/kicad/patch/?id=77706a7ea634a04ddc25006730539568823ffb46

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Dietmar Warning (m+s) wrote :

Thanks for fixing the bug.
There is a small problem related to this spice configuration box for dc-sweeps.
Any spice (ngspice too) is able to make nested sweeps with temperature like this:

.dc vb 0 1 0.01 temp -25 125 50

or

.dc temp -25 125 50 vb 0 1 0.1

So it will helpful to provide the parameter "temp" additional to the voltage/current sources in the dc-sweep setup and translate them to netlist lines like shown above.

Sorry if it is more a feature request, perhaps you can change status to "wishlist".

Revision history for this message
Jon Evans (craftyjon) wrote :

Could you please open a new issue with that request? I want to leave this one as-is so that it is noted that the original issue was fixed in 5.1.1
Thanks

Revision history for this message
Dietmar Warning (m+s) wrote : Re: [Bug 1824336] Re: netlist problem with nested dc sweep

Am 15.04.2019 um 18:01 schrieb Jon Evans:
> Could you please open a new issue with that request? I want to leave this one as-is so that it is noted that the original issue was fixed in 5.1.1
> Thanks
>
OK - I want try it. Don't know how to flag it as "wishlist".

You can close the case as fixed.

Thanks

Changed in kicad:
status: Fix Committed → Fix Released
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 77706a7ea634a04ddc25006730539568823ffb46
https://git.launchpad.net/kicad/patch/?id=77706a7ea634a04ddc25006730539568823ffb46

Changed in kicad:
status: Fix Released → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.