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

Quartus: be sure timing constraints are applied correctly #239

Closed
enjoy-digital opened this issue Aug 11, 2019 · 4 comments
Closed

Quartus: be sure timing constraints are applied correctly #239

enjoy-digital opened this issue Aug 11, 2019 · 4 comments
Labels

Comments

@enjoy-digital
Copy link
Owner

See litex-hub/litex-boards#9:

The problem was in SDC file generated it does try to timing constraints to PORTS while using internal clock net names, this causes those constraints to be ignored by Quartus.

@AnttiLukats
Copy link
Contributor

not sure what the better fix is, to force the constraint to use net, or then set the constraint on actual input port, both would work..

a function that would "emit" a string to SDC file from target python could also do the trick

@enjoy-digital
Copy link
Owner Author

I did some tests this morning using net, quartus was removing the net since it was equivalent to the port (even when setting a keep attribute on the wire). I'll need to spend more time looking at that, for now, we can constraint using the port's name with lookup_request:

        platform.add_period_constraint(platform.lookup_request("eth_clocks").tx, 1e9/12.5e6)
        platform.add_period_constraint(platform.lookup_request("eth_clocks").rx, 1e9/12.5e6)
        platform.add_false_path_constraints(
            platform.lookup_request("clk12"),
            platform.lookup_request("eth_clocks").tx,
            platform.lookup_request("eth_clocks").rx
        )

@AnttiLukats
Copy link
Contributor

that will do also! tnx

@enjoy-digital
Copy link
Owner Author

Cyclone 10 Ref Kit can now be used as reference to apply constraints on Intel design: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/partner/targets/c10lprefkit.py#L130-L136

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

No branches or pull requests

2 participants