Bug 1429130 - Erroneous simulation results
Summary: Erroneous simulation results
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ngspice
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 844100 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-04 21:40 UTC by vcarr
Modified: 2017-04-09 10:19 UTC (History)
4 users (show)

Fixed In Version: ngspice-26-8.fc26 ngspice-26-8.fc25 ngspice-26-8.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-05 21:59:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Simulation file (256 bytes, text/plain)
2017-03-04 21:40 UTC, vcarr
no flags Details
bad simulation results (28.12 KB, image/x-eps)
2017-03-04 21:41 UTC, vcarr
no flags Details
Expected simulation results (45.69 KB, image/x-eps)
2017-03-04 21:41 UTC, vcarr
no flags Details
Circuit schematic (17.18 KB, application/postscript)
2017-03-04 21:42 UTC, vcarr
no flags Details

Description vcarr 2017-03-04 21:40:17 UTC
Created attachment 1259990 [details]
Simulation file

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 vcarr 2017-03-04 21:41:05 UTC
Created attachment 1259991 [details]
bad simulation results

Comment 2 vcarr 2017-03-04 21:41:48 UTC
Created attachment 1259992 [details]
Expected simulation results

Comment 3 vcarr 2017-03-04 21:42:57 UTC
Created attachment 1259993 [details]
Circuit schematic

Comment 4 vcarr 2017-03-04 21:47:33 UTC
Sorry I attached file before filling the bug description, it was a mistake. Here is the description.

* Bug description
ngspice version shipped with fedora fails to simulate a simple transmission line circuit. The simulation is performed without errors but the results are wrong.
It worth noting that the same simulation file gives satisfactory results with ngspice shipped with Archlinux or opensuse on differents machines. On the same machine ngspice compliled from source with default options also gives good results.

* Test circuit description :
The scheme is provided is the attached file myspice.ps.
The test circuit is a simple 50 Ohm impedance line driven by a pulse source with an 8 Ohm impedance. The line is terminated with a 40 kOhm load.

vin is the node before the transmission line, vout is the node between the end of the connection line and the load.

See attached myspice.cir simulation file for netlist and simulation parameter.

* Reproducing the bug
Run the following command:
$ ngspice myspice.cir
It's always reproducible.

** Results
Since the impedance matching between the load, the source and the transmission line is poor. The pulse seen by the load is expected to be distorted by multiple reflections at the end of the transmission line. The attached goodsimu.ps file shows this effect, it's obtained using my own compiled version of ngspice.

The attached file badSimu.ps shows the results computed using ngspice shipped with fedora. vin is correct but vout is always 0V and no characteristic ringing is present.




* My system : 
Fedora 25 x86_64 kernel : 4.9.7-201.fc25.x86_64

* ngspice shipped with fedora :
******
** ngspice-26 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please get your ngspice manual from http://ngspice.sourceforge.net/docs.html
** Please file your bug-reports at http://ngspice.sourceforge.net/bugrep.html
** Creation Date: Sun Jul  3 05:32:02 UTC 2016
******

* My own compiled version :

******
** ngspice-26 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please get your ngspice manual from http://ngspice.sourceforge.net/docs.html
** Please file your bug-reports at http://ngspice.sourceforge.net/bugrep.html
** Creation Date: Sat Mar  4 14:10:16 CST 2017
******

For compiling I did not use any special options: I just downloaded the last tarball available at sourceforge (https://sourceforge.net/projects/ngspice/files/ng-spice-rework/26/) and compiled it using ./configure followed by make.

Comment 5 Mamoru TASAKA 2017-03-30 09:45:08 UTC
*** Bug 844100 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2017-03-30 14:40:55 UTC
ngspice-26-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-682cd9d476

Comment 7 Fedora Update System 2017-03-30 14:41:08 UTC
ngspice-26-8.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-10f4ed1314

Comment 8 Fedora Update System 2017-03-30 14:41:19 UTC
ngspice-26-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2b71902776

Comment 9 Fedora Update System 2017-03-30 18:54:29 UTC
ngspice-26-8.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-682cd9d476

Comment 10 Fedora Update System 2017-03-31 03:20:09 UTC
ngspice-26-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2b71902776

Comment 11 Fedora Update System 2017-03-31 03:22:33 UTC
ngspice-26-8.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-10f4ed1314

Comment 12 Fedora Update System 2017-04-05 21:59:57 UTC
ngspice-26-8.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2017-04-09 02:53:35 UTC
ngspice-26-8.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2017-04-09 10:19:29 UTC
ngspice-26-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.