Skip to content

Problem reading numerical expressings ending with certain characters #2564

Todo

Description

@klayoutmatthias

Certain numerical expressions such as "2*n" are parsed incorrectly. Reason is that the "n" is mistaken as part of "nan" and the result is "nan".

Problems exist when the numerical expressions ends with "n", "na", "i" or "in".

For example, this netlist statement renders "n=nan" for the "XP" subcircuit:

.SUBCKT pmos b d g s w=1 n=1 iso=pn
XP d g s b basic_pmos iso=iso w=w+0.2u n=n
.ENDS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions