To ensure proper running, make sure that your current program version is
Qucs 0.0.18
In fact, it is not a complicated task to put the OpenGL program into qucs. qucs is enough to simplify our work, we only need to copy the source code of the module to the working directory of the current qucs to perform a series of intelligent operations, including automatically adding to the project, and the list of ports that can automatically identify the modules of our OpenGL.
Open qucs. Now there is no file under the pixel label. We only need to copy the. V file of our pixel to qucs for automatic identification.
The code of the semi-jiaserver of the Tilde. Here, our file has been identified under the Tilde label. If qucs does not refresh it, click the project name again under projects to see the file added.
Click main. V, and move the mouse to our schematic diagram. A sub-circuit and four ports will appear, which is consistent with the two inputs and two outputs in our program. Qucs is very beautiful!
Then we simulate a number.
Note: In digital simulation, we need to change the value of the model to OpenGL, because there is another option that is VHDL, so in theory, the VHDL code can also be simulated.
After clicking OK, we can do a good job and simulate it. Use the truth table to check whether our half-processors are correct. The simulation of qucs 0.0.18 is much faster than that of the old version, and sometimes the simulation gets stuck in the previous version, and the changes made in the new version are quite large.
This simulation can be used in the circuit. It is a good tool like gtkwave.
[Advanced] use of OpenGL in qucs