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

More flexibility on Spice reader #798

klayoutmatthias opened this issue May 12, 2021 · 2 comments

More flexibility on Spice reader #798

klayoutmatthias opened this issue May 12, 2021 · 2 comments


Copy link

This follows the discussion here:

Specifically two requests arise from this discussion:

  • support R models with R=value specification
  • SpiceReaderDelegate enhanced to allow translation of generic lines not following the internal syntax imposed by the element
@klayoutmatthias klayoutmatthias self-assigned this May 13, 2021
@klayoutmatthias klayoutmatthias added this to the 0.27.1 milestone May 13, 2021
Copy link
Collaborator Author

klayoutmatthias commented May 13, 2021

I have added some more flexibility to the Spice reader. Apart from a few new methods for the delegate and the ability to handle more than two nets for R, C and (not used yet) L, the following 2- and 3-terminal resistor flavors are supported:


R$2 3 4 1.7k
R$4 3 4 1.7k RMODEL
R$5 3 4 RMODEL R=1.7k


R$6 3 4 5 RMODEL2 R=1.7k
R$7 3 4 5 1.7k RMODEL2
R$8 3 4 5 1.7k 

Same for caps.

klayoutmatthias added a commit that referenced this issue May 13, 2021
Copy link
Collaborator Author

New NetlistSpiceReaderDelegate methods are:

  • "control_statement": receives a control statement (virtual)
  • "parse_element": low-level parsing of an element line (virtual)
  • "parse_element_components": a helper method for splitting Spice lines
  • "translate_net_name": for normalizing net names (virtual)
  • "value_from_string": a helper method for turning strings (also formulas) into numeric values

For details see here:

These features have been released in version 0.27.1.

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

No branches or pull requests

1 participant