#7 e source lookup table (for IBIS support)

closed
5
2009-12-13
2009-11-17
Anonymous
No

lookup table for E and G sources would be good for better IBIS support:

E|G{name} {+node} {-node} TABLE {expression} = (invalue_1, outvalue_1) (invalue_2, outvalue_2) ... (invalue_n, outvalue_n)
Examples:
ECOMP 3 0 TABLE {V(1,2)} = (-2.5,5) (2.5,-5)

Discussion

  • Dietmar Warning

    Dietmar Warning - 2009-11-21

    OK - E/G sources are not possible (yet). But you can use b sources with pwl since release 20, e.g.:
    Btest 1 0 I = pwl(v(1), -4,0, -2,2, 2,-2, 4,0)
    Same for voltages.
    DW

     
  • Mario Baussmann

    Mario Baussmann - 2009-12-08

    Thanks for your comment.
    But I can't understand: what is this pwl function inside the B source? I didnt find it in the ngspice manual and in http://newton.ex.ac.uk/teaching/CDHW/Electronics2/userguide/.

    I tried:
    vin 1 0 dc 0 sin(0 3 50 0 0)
    Btest 1 0 I = pwl(v(1), -4,0, -2,2, 2,-2, 4,0)
    Rtest 1 0 1k

    but with the precompiled version for windows I get:
    ******
    ** ngspice-20 : Circuit level simulation program
    ** The U. C. Berkeley CAD Group
    ** Copyright 1985-1994, Regents of the University of California.
    ** Please submit bug-reports to: ngspice-bugs@lists.sourceforge.net
    ** Creation Date: Nov 18 2009 00:07:28
    ******
    Circuit: testschaltung lookup-table
    PWL-INFO: prepare_PTF_PWL building a PTF_PWL
    internal error -- segmentation violation

     
  • Dietmar Warning

    Dietmar Warning - 2009-12-08

    You are correct: there is something wrong with the windows binary - I will ask maintainer for that.

    The following deck is working with the actual cvs version:

    demonstrates usage of the pwl function in an ASRC
    Vin 1 0 DC=0V
    Btest 1 0 I = pwl(v(1), -4,-5, -2,0, 0,2, 2,0, 4,4)
    .control
    dc Vin -5 5 0.2
    plot -Vin#branch vs v(1)
    display all
    .endc
    .end

     
  • Mario Baussmann

    Mario Baussmann - 2009-12-09

    Thanks for your help!
    (I wait for the next release and will try again)

    Mario

     
  • Dietmar Warning

    Dietmar Warning - 2009-12-13

    Is solved in cvs by using B sources and will be avaiable in win binary in file section.

     
  • Dietmar Warning

    Dietmar Warning - 2009-12-13
    • assigned_to: nobody --> dwarning
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks