-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checking some ideal functions blocks #258
Comments
These devices are represented as the Qucsator netlists that are stored in the library. Qucs-S converts them back to SPICE and uses |
Vadim I did a lot of work on the Ideal library back in 2021 so it would work with ngspice. I recreated the schematics of the functions and modified most of them to work with ngspice. In a few cases there are two variations for the same functions. There is still functions like VCO, Integrator, Quantizer etc to modify but not as many as starting from scratch. I made a new Ideal library with cleaned up graphics placed in user_lib. It needs to be updated as functions get updated. |
I dug up my work from 2021 on ideal.lib. I have fixes for many of the functions to work with ngspice. After these are finished, I will work on the rest of the functions. I need to convert my test schematics into subcircuits. I also reordered the library by function and redid the graphics. user_lib folder holds the modified ideal.lib used for testing. It is missing functions I haven't worked on. It will eventually updated to its final form. I made 2 versions of LPF1. Either is OK. I tried to multiple ways to create "Delay". My lack of experience in ngspice led to using a TLine to create the delay. Here are a few problems with Int, Diff, AP1 and AP2. The Int and Diff test schematics I made have output amplitudes that look odd. I need a test input signal with a known output to confirm. AP1 and AP2 never worked in Qucs. AP1 and AP2 use "ModelIncludes" which I can't find details on. HP1.sch, LP1.sch, BP2.sch and VSub.sch don't exist anywhere I can see. AP1: AP2: Attached is my ideal function test folder and two "ideal" test libraries placed in the "user_lib" folder. I modify these libraries to avoid corruption of the main library. |
The following functions have not been worked on: SQRT, QNT, LIM, HardLimiter, DIV, SUM, VCO and OpAmp. OpAmp is different than in the original Qucs ideal.lib. |
@tomhajjar Thanks for providing fixed library. I will try to correct the SPICE entries for Ideal devices where possible by the next release (planned in January or February next year). |
Here is the first cut at a new Ideal.lib. A number of functions haven't been worked on yet. Qucs-S won't let you create and name a new library the same name as in C:....share\qucs-s\library even though it is stored in user_lib. I made the mistake of naming the file Ideal_modified.lib and Qucs-S appends "Ideal_modified" like a hundred times throughout the file.... |
More ideal functions like VCO, Limiter, Quantizer... could probably be made to work in ngspice if the syntax for the formulas used in the EDD function are corrected. I don't know what changes to make to the formulas. As seen in "AnalogueCM.lib issues #152" there are issues that cause formulas to be processed improperly. |
Ideal.lib is finished for now. @Radvall fixed a number of broken models. 21 of the original 22 models now work. Only VCO is missing. Ideal.lib is in both project folders. Attached are the files used to create and test the models and library. |
Fixed by #428 |
Hello everyone, i'm checking some ideal functions blocks for a small project simulation. But i can't make them work properly. Please can you help me. thanks in advance
![git](https://user-images.githubusercontent.com/70080894/231605675-919d0456-c8ab-4d28-96ce-9b6c3ba78c05.PNG)
Ideal_01.zip
The text was updated successfully, but these errors were encountered: