qucs_s icon indicating copy to clipboard operation
qucs_s copied to clipboard

Fix MOSFET symbol zooming

Open tomhajjar opened this issue 2 years ago • 8 comments

Qucs-S and Qucs is using the symbol for depletion mode MOSFET when placing an enhancement mode MOSFET onto the schematic. The symbol is correct in the left component or library panel and is correct when dragging the component onto the schematic BUT when you click the mouse the wrong symbol is placed. Doesn't matter if it is the n, p or version with substrate. It always places the depletion version of the device.

2022-06-10_161222

tomhajjar avatar Jun 10 '22 20:06 tomhajjar

Sorry I put Qucs first. Attached is Qucs-S doing same thing.

2022-06-10_162413 g

tomhajjar avatar Jun 10 '22 20:06 tomhajjar

Yes, the MOSFET library was inherited from Qucs and the behavior will be the same. It seems that the default symbol in the library is wrong.

ra3xdh avatar Jun 11 '22 05:06 ra3xdh

I performed a more investigations on this issue. The default symbol in the library is correct and usual MOSFET is also affected. The origin of this issue is related to the way how Qt processes the line thickness scaling. If you will zoom in the schematic, you will see the correct symbol. The Qucs uses a custom widget to render the schematic. If the schematic would be ported to QGraphicsScene, it probably would to fix this issue. Another way is to fix the MOSFET symbol in mosfet.cpp image

ra3xdh avatar Jun 11 '22 06:06 ra3xdh

I understand. Still odd the symbols look OK in the left panel menus and when dragging onto the schematic. They look wrong once placed.

tomhajjar avatar Jun 11 '22 18:06 tomhajjar

Left panel uses pre-rendered PNG icons and therefore doesn't depend on Qt scaling. The symbol outline is rendered using line width=1 while dragging. The final symbol view uses thick lines that cause Qt rendering issues.

ra3xdh avatar Jun 11 '22 18:06 ra3xdh

Is there a reason the choices for MOSFET symbols is so limited? There isn't a choice for enhancement mode devices. It makes schematics look odd when you have to choose the symbol for a depletion mode device with substrate for a common power MOSFET. I realize there is the Qucs legacy choices but they don't make it easy to enter Spice parameters.

2022-06-11_154154

tomhajjar avatar Jun 11 '22 19:06 tomhajjar

I cannot say why the SPICE MOSFET symbols (dark red) were designed as depletion mode MOSFET. Probably it was simpler to draw one line instead of three lines. Concerning the parameters input, you may enter the model in the Line_2, Line_3 parameters and use continuation line with + sign. Also you can put the model file to the $HOME/.qucs/user_lib directory and then drag'n'drop the model using the library manager. The .MODEL component will be created automatically in a such case. You need to reference it in the SPICE device.

ra3xdh avatar Jun 11 '22 19:06 ra3xdh

I decided to correct the MOSFET symbols in one of the next versions. I have added this issue to the GUI improvements list #92 but classified it as low priority, because it doesn't affect the simulator operation.

ra3xdh avatar Jun 16 '22 12:06 ra3xdh

I have fixed MOSFET symbols look. The fix will be available since v1.0.2 release. image

ra3xdh avatar Feb 13 '23 07:02 ra3xdh