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

Can't handle multiline 'ref statements in the .tf file #4

Open
horror-vacui opened this issue Sep 7, 2020 · 0 comments
Open

Can't handle multiline 'ref statements in the .tf file #4

horror-vacui opened this issue Sep 7, 2020 · 0 comments

Comments

@horror-vacui
Copy link

tf import returns with an error related to the first line below:

            'ref "Vx.S.1_V1, Vx.S.1_V1, VxBAR.S.Vx.2_V1, VxBAR.S.Vx.2_V1, \
            Vx.S.1_V1, Vx.S.1_V1, VxBAR.S.Vx.2_V1, VxBAR.S.Vx.2_V1, \
            VxBAR.S.Vx.2_V1, VxBAR.S.Vx.2_V1, VxBAR.S.2_V1, VxBAR.S.3_V1, \
            VxBAR.S.Vx.2_V1, VxBAR.S.Vx.2_V1, VxBAR.S.3_V1, VxBAR.S.3_V1"

Unfortunately I am not allowed to share the technology file, but I think I can say so much as that the above line is inside a spacingTables() function/object and also inside in a minCutClassSpacing, which is only defined for vias. The error occurs at the first such minCutClassSpacing block.

The error message:

ERROR: (eval):3332: (eval):3332: syntax error, unexpected tCONSTANT, expecting ']'
            "VxBAR.S.Vx.2_V1,",  "VxBAR.S.Vx.2_...
             ^~~~~
(eval):3332: no .<digit> floating literal anymore; put 0 before dot
            "VxBAR.S.Vx.2_V1,",  "VxBAR.S.Vx.2_V1,", ...
                       ^
(eval):3332: trailing `_' in number
            "VxBAR.S.Vx.2_V1,",  "VxBAR.S.Vx.2_V1,",  "...
                         ^
(eval):3332: syntax error, unexpected tINTEGER, expecting '('
            "VxBAR.S.Vx.2_V1,",  "VxBAR.S.Vx.2_V1,",  "...
                          ^
  /home/zoltan/.klayout/salt/tf_import/ruby/import_tf.rb:195:in `eval'
  /home/zoltan/.klayout/salt/tf_import/ruby/import_tf.rb:195:in `import_techfile'
  /home/zoltan/.klayout/salt/tf_import/macros/import_tf.lym:32:in `<module:TechfileToKLayout>'
  /home/zoltan/.klayout/salt/tf_import/macros/import_tf.lym:17:in `<main>' (class SyntaxError)

After I've removed the '' characters and joined the lines together, the techfile was read in, and the layer names & purposes have been recognized.

I've used KLayout 0.26.5 with tf_import 1.0.

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

No branches or pull requests

1 participant