-
Notifications
You must be signed in to change notification settings - Fork 6
Feature: VLSIR-based Netlisting Support #51
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| exclude: '\.(ngspice|xyce)$' | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -594,6 +594,8 @@ def hv_gen(c, c_inst, volt, dg_encx: float = 0.1, dg_ency: float = 0.1) -> None: | |
| v5x.xmin = dg.xmin | ||
| v5x.ymin = dg.ymin | ||
|
|
||
| # TODO: Implement/delete | ||
| raise NotImplementedError() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Unconditional NotImplementedError in hv_gen will break any existing callers. This will cause any code calling |
||
| # return c | ||
|
|
||
|
|
||
|
|
@@ -819,6 +821,8 @@ def bulk_gr_gen( | |
| ) | ||
| ) | ||
|
|
||
| # TODO: Implement/delete | ||
| raise NotImplementedError() | ||
| # return c | ||
|
|
||
|
|
||
|
|
@@ -1437,6 +1441,24 @@ def nfet( | |
| ) | ||
| ) | ||
|
|
||
| # VLSIR Simulation Metadata | ||
|
|
||
| # Model selection | ||
|
|
||
| c.info["vlsir"] = { | ||
| "model": "nmos_3p3" if volt == "3.3V" else "nmos_6p0", | ||
| "spice_type": "MOS", | ||
| "spice_lib": "nmos_3p3_t" if volt == "3.3V" else "nmos_6p0_t", | ||
| "port_order": ["d", "g", "s", "b"], | ||
| "port_map": {}, # TODO: Add GDSF Ports | ||
| "params": { | ||
| "w": w_gate, | ||
| "l": l_gate, | ||
| "nf": nf, | ||
| "m": 1, # TODO: Mentioned in function docstring? | ||
| }, | ||
| } | ||
|
|
||
| return c | ||
|
|
||
|
|
||
|
|
@@ -1971,6 +1993,21 @@ def pfet( | |
| # bulk guardring | ||
|
|
||
| c.add_port(name="s", port=sd_diff.ports["e1"]) | ||
|
|
||
| c.info["vlsir"] = { | ||
| "model": "pmos_3p3" if volt == "3.3V" else "pmos_6p0", | ||
| "spice_type": "MOS", | ||
| "spice_lib": "pmos_3p3_t" if volt == "3.3V" else "pmos_6p0_t", | ||
| "port_order": ["d", "g", "s", "b"], | ||
| "port_map": {}, # TODO: Add GDSF Ports | ||
| "params": { | ||
| "w": w_gate, | ||
| "l": l_gate, | ||
| "nf": nf, | ||
| "m": 1, # TODO: Mentioned in function docstring? | ||
| }, | ||
| } | ||
|
|
||
| return c | ||
|
|
||
|
|
||
|
|
@@ -2570,6 +2607,15 @@ def nfet_06v0_nvt( | |
| nat.xmin = dg.xmin | ||
| nat.ymin = dg.ymin | ||
|
|
||
| c.info["vlsir"] = { | ||
| "model": "nmos_6p0_nat", | ||
| "spice_type": "SUBCKT", | ||
| "spice_lib": "nmos_6p0_nat_t", | ||
| "port_order": ["d", "g", "s", "b"], | ||
| "port_map": {}, # TODO: Add GDSF Ports | ||
| "params": {"w": w_gate, "l": l_gate, "nf": nf}, | ||
| } | ||
|
|
||
| return c | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick (typo): Incomplete TODO text is unclear and slightly confusing.
The phrase
we must deducedseems truncated and ungrammatical, which obscures the intent of the TODO. Please rephrase to clearly state what must be deduced for SPICE modelling (e.g., model name, biasing, or parameter extraction).