From: Hitoshi T. <HDA...@ni...> - 2005-06-27 13:26:20
|
Hi, I confirmed that the power function in "asrc" does not work well. The test ciruit is as follows. Title: Power function B1 2 0 v=10^v(1) * voltage source and dummy loads V1 1 0 1 R1 1 0 1k R2 2 0 1k * .dc V1 0 3.5 0.01 .plot v(2) .end It seems a bug from Spice3. However, it is working well in SpiceOpus. Where did SpiceOpus improve? Regards, Hitoshi ----- Original Message ----- From: "Matt Flax" <flatmax@Matt.Flax> To: <ngs...@li...> Sent: Monday, June 27, 2005 12:55 AM Subject: [Ngspice-devel] subckt power laws illegal ? > Hello, > > Am I doing something wrong with non-linear voltage sources ??? > > Can anyone verify that this circuit = 10 V alwayse ? > It doesn't work for me. > > ================== BEGIN test.cir ====================== > * circuit to test power functions in subcircuits > * this circuite will try to implement v(2) = 10^v(1) > > * define a subcircuit with a power math function in it. > .subckt test 1 2 > Bout 2 0 v=10^v(1) > .ends test > > * set up a constant to create 10^Vin > vin 1 0 1 > > Xtest 1 2 test > > .control > *tran 0.1 3.5 > ac > plot v(2) > .endc > .end > ==================== END test.cir > > thanks > Matt > -- > http://www.flatmax.org > > Public Projects : > http://sourceforge.net/search/?type_of_search=soft&words=mffm > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Ngspice-devel mailing list > Ngs...@li... > https://lists.sourceforge.net/lists/listinfo/ngspice-devel > |