-
Notifications
You must be signed in to change notification settings - Fork 149
hps: switch SPI flash to DDR mode #308
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
Conversation
Signed-off-by: Dan Callaghan <[email protected]>
|
FYI @kgugala this works nicely on HPS, and gives a reduction in resource usage. But I confirmed this only reduces model evaluation time by ~0.35%. |
kgugala
left a comment
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.
LGTM
is this with picolibc and LTO? |
|
Yes, these are the numbers I have in my spreadsheet running on HPS proto2 board, evaluating HPS model. commit 10400f2 (last week) commit 740150c (current main) this PR It suggests picolibc and LTO give a good speed improvement, as you reported, but effectively no change from doubling the SPI flash clock. It doesn't seem right. |
|
maybe to biggest bottleneck is not in flash now? |
|
@danc86, @kgugala: I'd like to merge litex-hub/litespi#60 that simplifies DDR mode but need feedback (I was only able to test on Arty), could you do a test with it? Thanks. |
I tried with that PR applied and it doesn't work (CPU never boots from SPI flash). I haven't looked closer at why not. I'll write a comment with more details on that Litespi PR. |
|
I want to do more investigation on this (including to understand why there is no effective difference in model evaluation time) but I think we should merge it now and continue from here. |
No description provided.