-
Notifications
You must be signed in to change notification settings - Fork 24
phy: add ddr variant with clk divider #86
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
Open
maass-hamburg
wants to merge
7
commits into
litex-hub:master
Choose a base branch
from
VOGL-electronic:ddr_clk_variable
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
|
@enjoy-digital should it replace the old ddr phy without a clk divider or should it stay as in alternative? |
maass-hamburg
added a commit
to VOGL-electronic/gw__litex
that referenced
this pull request
Aug 22, 2025
use new clk divisor, that is used for SDR and DDR from litex-hub/litespi#86 Signed-off-by: Fin Maaß <[email protected]>
ccfa073 to
65a1e4e
Compare
maass-hamburg
added a commit
to VOGL-electronic/gw__litex
that referenced
this pull request
Aug 26, 2025
use new clk divisor, that is used for SDR and DDR from litex-hub/litespi#86 Signed-off-by: Fin Maaß <[email protected]>
maass-hamburg
added a commit
to VOGL-electronic/gw__litex
that referenced
this pull request
Sep 3, 2025
use new clk divisor, that is used for SDR and DDR from litex-hub/litespi#86 Signed-off-by: Fin Maaß <[email protected]>
|
@enjoy-digital please take a look. I already tested this successfully with efinix titanium and Topaz. |
maass-hamburg
added a commit
to VOGL-electronic/gw__litex
that referenced
this pull request
Sep 4, 2025
use new clk divisor, that is used for SDR and DDR from litex-hub/litespi#86 Signed-off-by: Fin Maaß <[email protected]>
079d10f to
91aec96
Compare
maass-hamburg
added a commit
to VOGL-electronic/gw__litex
that referenced
this pull request
Sep 8, 2025
use new clk divisor, that is used for SDR and DDR from litex-hub/litespi#86 Signed-off-by: Fin Maaß <[email protected]>
91aec96 to
5ac1c85
Compare
improve existing DDR. Signed-off-by: Fin Maaß <[email protected]>
This commit adds a DDR PHY implementation with a clock divider to the LiteSPI project. The clock divider enables the use of a lower frequency clock while still achieving the desired data rate. Signed-off-by: Fin Maaß <[email protected]>
use a clk divider compatible with the ddr one. This way the software doen't have to know which phy is used. for sdr only every 2 values the effective clk divider changes, it is rounded up so we don't so we are never faster than the matching freq. Signed-off-by: Fin Maaß <[email protected]>
be able to set clk dividers independent per core. When using the master sometimes we need a slower speed, in order to not change it for mmap and make that slower too, they now can be set per core module. When the clk divider is not set in the core module (by it being 0), the phy will use the clk divider it's own csr. Signed-off-by: Fin Maaß <[email protected]>
use ddr with clk divider Signed-off-by: Fin Maaß <[email protected]>
start cs timer already when cs is falling, instead of when it's going to be used. Signed-off-by: Fin Maaß <[email protected]>
use comb logic for clk div, when provided by core, so it can directly be used, when it's avalible. NEeded due to the change of start of the cs timer. Signed-off-by: Fin Maaß <[email protected]>
5ac1c85 to
bb3746f
Compare
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.
Uh oh!
There was an error while loading. Please reload this page.