-
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
Add DHCEN primitive. #261
Merged
Merged
Add DHCEN primitive. #261
Conversation
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
Added parts necessary to generate chip databases with DHCEN support for all supported boards. The packing was made with the necessary fuses set. DHCEN is provided as a wire to disable the input MUXes of HCLK, effectively turning off everything that is "beyond" those MUXes. Most of the work happens in the nextpnr part. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
For now as a draft for two reasons:
|
Added an example of using DHCEN. It uses CLKDIV and CLKDIV2 so it will work on boards that support these primitives. The Tangnano9k board is currently being investigated because there are some unknowns there. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
In the example, DHCEN controls all networks at once depending on the state of the button. In the unpressed position, all HCLK networks are disabled (in fact, all used input MUXes are disabled) and only the first LED flashes. When pressed, the second LED begins to show the operation of CLKDIV/CLKDIV2. pr20.mp4tn20.mp4 |
An interesting mechanism for transmitting signals between HCLK banks (or otherwise parties) has been discovered. We have two points, each of which can receive a signal from any HCLK and transmit it to any other HCLK. No complex signals can be transmitted here - the input lines are limited by HCLK_INx, and we also need to see which components can use the output from these two points, but so far the tests are encouraging: it is possible to transmit a signal from the clock pin from one side of the chip to the opposite and feed CLKDIV2 there using just a couple wires! Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Seems like this is waiting for YosysHQ/nextpnr#1349 ? |
Optimistic delays for now, pending future revision. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Added parts necessary to generate chip databases with DHCEN support for all supported boards. The packing was made with the necessary fuses set.
DHCEN is provided as a wire to disable the input MUXes of HCLK, effectively turning off everything that is "beyond" those MUXes.
Most of the work happens in the nextpnr part.