-
Notifications
You must be signed in to change notification settings - Fork 67
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
HCLK Support #258
Conversation
apycula/gowin_pack.py
Outdated
|
||
|
||
_hclk_default_params ={"GSREN": "false", "DIV_MODE":"2"} | ||
def set_hclk_attrs(db, params, num, typ, cell_name, device): |
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.
At first glance this looks great, but after the move all my electronics are still in boxes so it's hard for me to test. |
Thank you @pepijndevos. There's a bug on the nextpnr side that I need to address first. |
Thank you very much! |
My pleasure. Thanks for merging! |
Summary
This pull request documents the CLKDIV and CLKDIV2 HCLK bels for the GW1N-9(C) and GW2A-18(C). A follow up pull request will document pinouts for other devices. This PR also provides two examples of HCLK Bel usage (blinky and DVI), along with documentation on the general structure of HCLK.
Examples
make -f Makefile.himbaechel blinky-clkdiv-tangnano9k.fs
make -f Makefile.himbaechel
dvi-example-tangnano9k.fs`Named/Renamed Wires
Along with naming new HCLK wires, this PR renames some others. Specifically, the wires previously named
HCLK_OUT
have been renamed toHCLK_SECTION_IN
to be more descriptive of their apparent function. This renaming does not affect the rest of the current HCLK implementation since theHCLK_OUT
name still applies to the wires defined to connect out of HCLK.Documentation
doc/hclk.md
provides documentation on the (currently understood) standard structure of HCLK.Companion nextpnr PR: YosysHQ/nextpnr#1340