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

allow backslash in string, fixes issue #45 #46

Merged

Conversation

christian-lanius
Copy link
Contributor

This pull request fixes the issue reported in #45 by adding the literal \ (backslash) to the definition of the type STRING. I could not find specifically if "port_instance" in the spec allows for this, but commerical EDA tools support it across the board (and generate such files), thus this library should support it as well.

I have added a testcase in the escaped_name.sdf file, which has crashed before, but has been fixed by the change.

Signed-off-by: Christian Lanius christian.lanius@rwth-aachen.de

@mithro mithro requested a review from kgugala April 3, 2021 01:40
@mithro
Copy link
Contributor

mithro commented Apr 6, 2021

Hi!

Thank you for your contribution! You will need to rebase this change before we can merge it.

Tim @mithro Ansell

Signed-off-by: Christian Lanius <christian.lanius@rwth-aachen.de>
Copy link
Contributor

@mithro mithro left a comment

Choose a reason for hiding this comment

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

Looks like some empty .github/check_license.sh and .github/check_python_scripts.sh files where accidentally added?

@christian-lanius
Copy link
Contributor Author

Yeah, I am currently attempting to figure out what to do with them. They are not empty (as they exist in the repo), but their mode has changed. I'll ping you once I have figured it out.

sdf_timing/sdflex.py Outdated Show resolved Hide resolved
@christian-lanius christian-lanius marked this pull request as draft April 6, 2021 17:24
Signed-off-by: Christian Lanius <christian.lanius@rwth-aachen.de>
Signed-off-by: Christian Lanius <christian.lanius@rwth-aachen.de>
@christian-lanius
Copy link
Contributor Author

christian-lanius commented Apr 6, 2021

@kgugala Alright, I fixed the string definition as well as the file mode for the two scripts which I did not touch.

@christian-lanius christian-lanius marked this pull request as ready for review April 6, 2021 17:49
Copy link
Member

@kgugala kgugala left a comment

Choose a reason for hiding this comment

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

LGTM

@kgugala kgugala merged commit 5b9dc79 into chipsalliance:master Apr 6, 2021
@christian-lanius christian-lanius deleted the escaped_character_fix branch July 6, 2021 10:45
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

Successfully merging this pull request may close these issues.

None yet

3 participants