-
Notifications
You must be signed in to change notification settings - Fork 71
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
HCLK Support #258
Merged
Merged
HCLK Support #258
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2bdf122
Add exact_table_cover and parse_tile_exact functions for more specifi…
Seyviour 05ccc12
Merge branch 'YosysHQ:master' into master
Seyviour 33b56e5
Merge branch 'YosysHQ:master' into master
Seyviour 1af82e3
Add HCLK tables
Seyviour 5fe65e0
Update HCLK wire names
Seyviour 1f61404
Add HCLK bels for GW2A-18 and GW2A-18C
Seyviour a748435
Implement bitstream generation logic for HCLK
Seyviour 42e0ee4
Bugfix: HCLK Bel creation
Seyviour 717d9cd
BugFix: CLKDIV DIV_MODE parameter handling
Seyviour a0030e5
Add HCLK Support for GW1N-9C
Seyviour 6d31bc9
Add DVI and blinky examples utilising CLKDIV
Seyviour 76311a5
Add HCLK documentation
Seyviour 322d38c
Merge branch 'YosysHQ:master' into hclk_support2
Seyviour 8e418f8
Extend HCLK examples to Tang Primer 20k
Seyviour fecb7e6
BugFix: Adjust PLL output frequency
Seyviour 69ba33a
Treat 'device' as global
Seyviour 54deb00
Merge branch 'YosysHQ:master' into master
Seyviour f674084
Merge branch 'master' into hclk_support2
Seyviour 14a103c
Bug fix: Shorten wirenames to appese nextpnr-gowin
Seyviour b05e7a2
Bug fix: Shorten wirenames to appease nextpnr-gowin
Seyviour 310bed3
Merge branch 'master' into hclk_support2
yrabbit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# HCLK | ||
|
||
The High-speed CLocK tiles house the `CLKDIV` and `CLKDIV2` bels, among other functions. `CLKDIV` can drive `IOLOGIC`'s `FCLK` (via `HCLK_OUT`) but can also be used as a generic clock source. In contrast, the output of `CLKDIV2` can not be used as a generic clock source; however it can drive `CLKDIV`'s `HCLKIN`, `IOLOGIC`'s `FCLK`, and (per Gowin's documentation), PLLs. | ||
|
||
![Prototypical HCLK](fig/hclk.svg) | ||
|
||
|
||
The above diagram shows a prototypical HCLK. The GW1N-9C notably bucks this trend, having some wires repurposed, presumably to enable more direct connections by bypassing some fuses and muxes. It is also worthy of note that in the GW1N-9C, CLKDIV's CLKOUT cannot be connected directly to HCLK_OUT, and must thus take a roundtrip through the centre tiles. | ||
|
||
As a general rule, signals in one HCLK section are not allowd to connect to another HCLK section. As such, when the input to CLKDIV comes from one HCLK section, it's output must also go to the same section. For ease with following this rule in PnR, the current implementation of HCLK pretends that there are two `CLKDIVs` rather than one. The GW1N-9C once again breaks the norm, having special wires that connect the output of CLKDIV2 in the upper sections to HCLK_OUT in the lower sections. | ||
|
||
`HCLKMUX` (for sharing input signals between HCLKs) and `HCLKEN` are currently undocumented and unsupported ;). |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no need to pass device here - this is already a global variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true! I'll correct that. I didn't notice that it was global earlier.