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

sdff* cells are not parseable by yosys #96

Open
antonblanchard opened this issue Nov 27, 2022 · 1 comment
Open

sdff* cells are not parseable by yosys #96

antonblanchard opened this issue Nov 27, 2022 · 1 comment

Comments

@antonblanchard
Copy link

Expected Behavior

sdff* liberty files should be parseable by yosys.

Actual Behavior

ERROR: Syntax error in liberty file on line 4303.

Steps to Reproduce the Problem

yosys -p "read_liberty cells/sdffsnq/gf180mcu_fd_sc_mcu7t5v0__sdffsnq_4__tt_025C_1v80.lib"

The issue is in the test_cell() stanzas, the clear and preset statements are not quoted, eg:

        preset : !SETN ;

Adding quotes fixes it, and the liberty spec suggests they are required:

        preset : "!SETN" ;
@antonblanchard
Copy link
Author

I can submit a patch, but I wasn't sure if the liberty files are auto created from the json or not.

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