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

Subcircuit instance model name are unresolved in CDL netlisting. #1223

Open
ThomasZecha opened this issue Jan 29, 2025 · 1 comment
Open
Assignees
Labels

Comments

@ThomasZecha
Copy link
Contributor

This is a follow-up of the discussion from IHP-GmbH/IHP-Open-PDK#336.

Summary:
In a CDL netlist device hierarchy all nodes must be subcircuits, all leafs must be primitive devices.
This rule is violated in the present case.

One possible solution would be (from original):

Introduce the following per global settings on/off switchable special treatment of subcircuit instances during CDL netlisting:

As a preparation step during CDL netlist export:

  1. Found all subcircuit instances in the current schematic.
  2. For every instance from 1. check whether the referenced subcircuit exists in the current schematic.
  3. For every instance from 2. where the subcircuit don’t exist do:
    a. Check whether the second letter of the instance name refer a CDL primitive device (R, C, L , M, Q, ...)
    b. If a. holds check whether the number of pins match the allowed pin-numbers of the primitive device from a.
    c. If b. holds remove the first letter from the instance name for the CDL-netlisted instance name.
@ra3xdh
Copy link
Owner

ra3xdh commented Jan 29, 2025

The solution may be to introduce a property named CDL_letter for all devices in Microelectonics group. The default is the same as SPICE letter. Current inplementation of cdl_netlist() method returns the spice_netlist. A separate handling may be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants