Skip to content
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

[WIP] Update qucs-test/testset -> Qucs sample projects #34

Closed
wants to merge 79 commits into from

Conversation

andresmmera
Copy link
Contributor

The purpose of this PR is to group the projects inside qucs-test/testsuite and improve their readability. The idea (see Qucs/qucs#934) is to use the qucs-test/testsuite as source for the Qucs sample projects set.

So far, the projects were grouped by topic and, consequently, run.py was modified to explore the directory tree. Some minor changes were made (missing graphs, text overlapping, etc.) and succinct explanations were included as far as I was able to. Please find attached a document with details of the commit history and some notes.

Qucs examples update.odt.zip

Missing projects from http://qucs.sourceforge.net/examples.html were added. Notice that some of them contain more than one schematic. AFAIK, just one schematic per project can be tested.

My intention is to add more examples from my field of interest and expertise during the next weeks/months.

In order to group examples by topic it is needed to modify run.py in
order to find projects inside subfolders.

Currently, the qucsator test is not passing. HELP NEEDED!

Modify run.py so as to explore subdirectories

This commit is the first in a series in which the qucs examples will be
updated. As suggested at Qucs/qucs#934 the
qucs examples set will be fetched from the qucs-test repo.

Since the qucs (test/example) projects will be grouped by topic, run.py
needs to be modified to as to find Qucs projects inside subdirectories
A new file tree is proposed in order to bring some order to the
testsuite
A equation block was moved a little bit down because it overlapped with
the simulation box
A equation block was moved a little bit down because it overlapped with
the simulation box
A equation block was moved a little bit down because it overlapped with
the simulation box
The circuit description was extended to be clearer. Moreover, the
project name was changed to DC_SW_Wheatstone_Bridge_prj since that seems
to be more meaningful
The name of the project was changed to DC_SW_BJT_differential_pair_prj.
It seems like a more appropriate name for it.
The schematic opened the data display window despite the fact that the
graph was on the schematic. Moreover, the graph was moved to the left
and the simulation blocks were put together
The schematic opened the data display window despite the fact that the
    graph was on the schematic. Moreover, the graph was moved to the
left    and the simulation blocks were put together
The open display option was disabled. A graph was added to display the
voltage of the output and input nodes
…_bandpass_prj

Some component values overlapped with the symbol
…_AC_active_bp_prj

The simulation boxes were put on the bottom. A graph was added in order
to show the frequency response.
…_AC_active_lp_prj

The text overlaps with the equation and the simulation blocks. A graph
was added in order to show the frequency response.  The data display box
was set not to open automatically.
…_AC_notch_prj

Text blocks overlapped each other. A graph was added and some elements
were moved. The data display box option was set not to open
automatically.
…n_prj

Certain component values overlapped with the symbols. The data display
box option was set not to open automatically. A graph was added.
…mp_gyrator_prj

Text overlapped with symbols and simulation boxes. It was added a text
block with the derivation of the input impedance of the gyrator.
Moreover, the input impedance is plotted in terms of resistance and
inductance. That proves that a 5H inductor was synthesized. Finally, the
feedback was changed to be negative feedback. The positive feedback is
highly likely to be unstable.
Some text overlapped with the symbols. A graph was added to show the
output (rectified) voltage. The data display box option was set not to
open automatically.
The data display option was set not to open automatically. It was added
a graph to show the waveforms. Some comments were added to improve the
understanding of the circuit.
- The data display option was set not to open automatically.
- It was added a graph showing the voltage at each node.
- The value of the load was set to 10MOhm in order to avoid the voltage
drop.

On the other hand, the doubler cells are Greinacher circuits, not
Villard’s [1] so the project was renamed as
TR_Greinacher_Multiplier_prj. It seems to be more appropriate.

A reference was included in the schematic for more details.

[1]
https://books.google.es/books?id=nHqQnSM71_cC&lpg=PP1&dq=High-voltage%20Test%20Techniques&hl=es&pg=PA29#v=onepage&q=villard&f=false
The data display option was set not to open automatically. Some text
were moved because they overlapped with the symbols. Some graphs and
design equations were added.
The simulation tolerances were increased so as to make the simulation
more robust against different values of R-C. It were added two graphs
showing the ramp and square waveforms.
…_prj

The position of certain components was changed to improve readability.
The data display option was set not to open automatically. A graph was
added to show the inputs and the output.
The data display option was set not to open automatically. A graph was
added to show the gain. Some text overlapped with the symbols. It was
copied some theory from the product datasheet in the schematic since it
helps to understand the circuit.
The project name was renamed as Broadband_RFIC_NE5205_prj since it seems
to be more convenient.
The data display option was set not to open automatically. A graph was
added to show the voltage gain. Some text overlapped with the symbols.
The data display option was set not to open automatically. A diagram and
some design notes were added in order to help to understand how the
circuit works.
The data display option was set not to open automatically. Some text
overlapped with the symbols. It were added two graphs showing the
voltage drop at the inductor and the capacitor as well as some math
formulae to explain how the voltage overshoot increases with Q in a
series resonator. The project was moved to
“testsuite/RFMW/Resonators/AC_SW_resonance_prj”.
The data display option was set not to open automatically. A graph was
added to show the frequency response of the filter.
The data display option was set not to open automatically. A graph was
added to show the frequency response of the filter.
The data display option was set not to open automatically. A graph was
added to show the frequency response of the filter.
The new netlist files contained the path to my local Qucs testsuite.
The data display option was set not to open automatically. Added a
graph.
The data display option was set not to open automatically. It was added
a window to show the LO, RF and IF waveforms and an Octave script
showing the power spectrum.
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet. For the sake of consistency with previous projects, the
graphs will be moved to the schematic sheet.
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet. For the sake of consistency with previous projects, the
graphs will be moved to the schematic sheet. The project is renamed as
DC_SW_Cascode_MOS_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet. For the sake of consistency with previous projects, the
graphs will be moved to the schematic sheet. The project is renamed as
DC_SW_Simple_MOS_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet. For the sake of consistency with previous projects, the
graphs will be moved to the schematic sheet. The project is renamed as
DC_SW_ThreeTransistor_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet but, for the sake of consistency with previous projects,
the graphs will be moved to the schematic sheet. The project is renamed
as DC_SW_Low_Voltage_MOS_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet but, for the sake of consistency with previous projects,
the graphs will be moved to the schematic sheet. The project is renamed
as DC_SW_Widlar_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/Mirrors_prj.tar.gz. It comes with a
display sheet but, for the sake of consistency with previous projects,
the graphs will be moved to the schematic sheet. The project is renamed
as DC_SW_Wilson_Current_Mirror_prj and moved to testsuite/DC
circuits/Current Mirrors
This project was copied from
qucs.sourceforge.net/examples/2StageAmplifier_prj.tar.gz. The project
includes several schematics. In order to do the testing, the main
schematic (Amplifier.sch) was renamed as 2StageAmplifier and the project
whole project as SP_2StageAmplifier_prj. The data displays because they
are a lot. At the same time, this approach preserves the work of the
author.
This project was downloaded from
qucs.sourceforge.net/examples/UHF_Amplifier_prj.tar.gz. Some text
overlapped with the simulation box and the data display option was set
not to open automatically once the simulation ends. The project will be
skipped in the automatic test because the netlist generated during the
test includes the full path to the Qucs user folder in the S2P
component. This makes the test crash because the S2P is in the project
folder, not in the Qucs user folder (/home/username/.qucs).
This project was downloaded from
qucs.sourceforge.net/examples/1838MHz_PLL_prj.tar.gz. Some text
overlapped with symbols, so some cosmetic changes are made. The project
is renamed as DC_AC_1838MHz_PLL_prj in order to include this project in
the testsuite.
This project was downloaded from
http://qucs.sourceforge.net/examples/BCD_prj.tar.gz. The project will be
skipped in the automatic test because the digital simulation seems not
to be working.
This project was downloaded from
http://qucs.sourceforge.net/examples/High_Voltage_Supply_prj.tar.gz
Some text overlapped with the simulation boxes.
“High_Voltage_Supply.sch” will be tested automatically whereas
“Rectifier.sch” doesn’t. Currently, (AFAIK) just only one schematic per
project can be tested. In this sense, the project is renamed as
“DC_TR_SW_ High_Voltage_Supply_prj”.
Graphs are missing, so some diagrams are included to show the output
voltage (DC and TR).
It seems that “Power Supply” is more appropiate for these projects.
This project was downloaded from
http://qucs.sourceforge.net/examples/LM317_prj.tar.gz
“LM317-test1.sch” will be included in the automatic test. For the sake
of consistency with previous projects, the graphs will be moved to the
schematic sheet. The project will be renamed as “TR_LM317_prj” and
consequently, “LM317-test1.sch” need to be renamed as “LM317.sch”
This project was downloaded from
http://qucs.sourceforge.net/examples/MillerAmp_prj.zip

For the sake of consistency with previous projects, the graphs will be
moved to the schematic sheet. The project includes two schematics:
“MilAmp1.sch” and “MilAmp2.sch”. “MilAmp1.sch” will be included in the
automatic test so it will be renamed as needed.
This project was downloaded from
http://qucs.sourceforge.net/examples/Amp4.zip

The project is renamed as “DC_AC_Audio_Amplifier_prj”. In contrast with
the previous projects, the display sheet will be kept because it
includes several diagrams. Moving these diagrams to the schematic sheet
would overpopulate it.
This project was downloaded from
http://qucs.sourceforge.net/examples/PVcell_Miguel_Pareja.zip

The project is renamed as DC_SW_Photovoltaic_cell_prj.
“Tester_Generic_Model.sch” will be included in the automatic test. The
project is copied into “testsuite/DC circuits/General/”
This project was downloaded from
http://qucs.sourceforge.net/examples/vfile_test_tran.tar.gz

It was renamed as “TR_File_Based_Voltage_Source_prj” and copied into
“testsuite/RFMW/General/”. Unfortunately, it must be excluded from the
automatic test because the generated netlist includes the path to the
Qucs user folder (/home/username/.qucs) as it happens with the
Touchstone file components.
This project was downloaded from
http://qucs.sourceforge.net/examples/qucs-radiometer-model.tgz

It cannot be included in the automatic test because of the Touchstone
file components.
Downloaded from http://qucs.sourceforge.net/examples/RADAR2010_prj.zip

For the moment, it will be skipped from the automatic test.
“curtice1_MESFET_prj” was moved to “testsuite/RFMW/Device models”. Four
projects are added:
- Flicker noise model. Downloaded from
http://qucs.sourceforge.net/examples/flicker.sch
- Shot noise model.  Downloaded from
http://qucs.sourceforge.net/examples/shot.sch
- Pentode model.  Downloaded from
http://qucs.sourceforge.net/examples/pentode.sch
- Triode model.  Downloaded from
http://qucs.sourceforge.net/examples/triode.sch
All these projects are excluded from the automatic test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant