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

Fix broken synthesis after cleanup #468

Merged
merged 3 commits into from
Oct 7, 2023
Merged

Conversation

lekcyjna123
Copy link
Contributor

@lekcyjna123 lekcyjna123 commented Oct 6, 2023

This fix #465. There was no type analysis activated for constants directory, so the error wasn't detected by pyright. Additionally there was one more type error, which is fixed by this MR.

Synthesis job: https://github.com/kuznia-rdzeni/coreblocks/actions/runs/6433713558

@lekcyjna123 lekcyjna123 marked this pull request as ready for review October 6, 2023 16:04
Copy link
Member

@Kristopher38 Kristopher38 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -123,9 +123,12 @@ class ECP5BG756Platform(LatticeECP5Platform):
default_clk = "clk"
default_rst = "rst"

clk_pin = pins.named_pin(ecp5_bg756_pclk)
if clk_pin is None:
Copy link
Member

Choose a reason for hiding this comment

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

this is required only to satisfy the typechecker, right?

Copy link
Member

Choose a reason for hiding this comment

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

I would much rather throw an exception in the PinManager, and keep this code clean.

@tilk tilk merged commit e496a63 into master Oct 7, 2023
@tilk tilk deleted the lekcyjna/autumn-cleaning-1-1 branch October 7, 2023 10:39
github-actions bot pushed a commit that referenced this pull request Oct 7, 2023
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.

Broken synthesis benchmark after cleanup
4 participants