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

Dev/tze/feature export cdl netlist #1154

Closed

Conversation

ThomasZecha
Copy link
Contributor

No description provided.

ThomasZecha added 8 commits December 23, 2024 11:12
-introduced new parameter for cdl-type netlist export to Component::spice_netlist
 and all derivatives under components/

Signed-off-by: ThomasZecha <[email protected]>
-introduced new parameter for cdl-type netlist export to Component::spice_netlist
 derivatives under spicecomponents/

Signed-off-by: ThomasZecha <[email protected]>
-Added cdl_netlist() as default to class Component and as implementation
 to CDL supporting derived components. Besides some port-number checking
 this implementation is a wrapper for spice_netlist.
-Implemented necessary spice_netlist() adjustments to meet CDL requirements.
-Improved spice_netlist() derived default parameter 'isXyce' to be
 explicitly set.
-Fixed using of tabs/trailing spaces.

Signed-off-by: ThomasZecha <[email protected]>
-Introduced new parameter for cdl-type netlist export to Component::getExpression() and
 derivatives. It is used for CDL type specific netlist parameter export.

Signed-off-by: ThomasZecha <[email protected]>
-Changed Schematic::giveNodeNames() to public to be usable from new
 class CdlNetlistWriter
-Changed AbstractSpiceKernel::collectSpiceLibs() to public static since it
 don't use any instance member and to be usable from new class CdlNetlistWriter
-Added new class CdlNetlistWriter implementing CDL netlist export

Signed-off-by: ThomasZecha <[email protected]>
-integrated CdlNetlistWriter in application GUI

Signed-off-by: ThomasZecha <[email protected]>
-Fixed compiler warnings regarding missing virtual destructor

Signed-off-by: ThomasZecha <[email protected]>
-Fixed wrong usage of Q_ASSERT testing connect() result

Signed-off-by: ThomasZecha <[email protected]>
@ThomasZecha ThomasZecha deleted the dev/tze/featureExportCdlNetlist branch December 23, 2024 10:42
@ThomasZecha ThomasZecha restored the dev/tze/featureExportCdlNetlist branch December 23, 2024 10:48
@ra3xdh
Copy link
Owner

ra3xdh commented Dec 24, 2024

It may be better to keep this PR open, but marking this as WIP to prevent merging by accident. This will allow to test mergeabity and apply CI.

Considering this PR I have noticed that you have introduced bool isCdl parameter for spice_netlist() methods. This is not a good solution. It would be better to introduce an enum like the following in spicecompat.h:

enum SpiceDialect { SPICEDefault = 0, SPICEXyce = 1, CDL = 2 };

The spice_netlist should accept a single SpiceDialect enum value instead of chain of bool type values.

@ThomasZecha
Copy link
Contributor Author

Re-worked according to comments, dev-branch pushed.

@ra3xdh ra3xdh added the IHP label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants