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

Improve KLayout-based SPICE handling to support Calibre LVS with generic devices #371

Merged
merged 18 commits into from Apr 4, 2024

Conversation

nikosavola
Copy link
Member

  • Convert Calibre LVS netlist output to a NetworkX Graph through KLayout SPICE handling.
    • Parameter values included and visible in plot_nets

@nikosavola nikosavola added the Verification DRC and LVS label Apr 4, 2024
@nikosavola nikosavola requested a review from joamatab April 4, 2024 14:22
@nikosavola nikosavola self-assigned this Apr 4, 2024
@nikosavola nikosavola added the feature feature added label Apr 4, 2024
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nikosavola - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟡 Testing: 1 issue found
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

gplugins/klayout/netlist_spice_reader.py Show resolved Hide resolved
@@ -32,28 +33,26 @@ def spice_netlist(tmpdir_factory) -> str:
return netlist_path


@pytest.mark.parametrize("fully_connected", [True, False])
@pytest.mark.skip(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (testing): Consider updating test cases to reflect new implementation details.

The test is currently skipped due to the change in implementation that focuses on detected devices. It might be beneficial to update or add new test cases that align with the current implementation, especially considering the handling of generic devices and parameters in CalibreSpiceReader.

gplugins/klayout/netlist_graph.py Outdated Show resolved Hide resolved
gplugins/klayout/netlist_spice_reader.py Outdated Show resolved Hide resolved
gplugins/klayout/netlist_spice_reader.py Outdated Show resolved Hide resolved
spice_reader_instance = None
match Path(filepath).suffix:
case ".l2n" | ".txt":
l2n = kdb.LayoutToNetlist()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): We've found these issues:

joamatab and others added 5 commits April 4, 2024 14:25
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Copy link
Contributor

@joamatab joamatab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Niko!

@nikosavola nikosavola merged commit 8e076bf into main Apr 4, 2024
8 of 13 checks passed
@nikosavola nikosavola deleted the more-spice-handling branch April 4, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature added Verification DRC and LVS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants