Skip to content

Move fincFdecTests to software - #1327

Merged
hiddemoll merged 5 commits into
mainfrom
hidde/software-fincfdectests
Jun 25, 2026
Merged

Move fincFdecTests to software#1327
hiddemoll merged 5 commits into
mainfrom
hidde/software-fincfdectests

Conversation

@hiddemoll

@hiddemoll hiddemoll commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What (what did you do)
Move fincFdecTests to software.

Why (context, issues, etc.)
Prerequisite for #1118

Dear reviewer (anything you'd like the reviewer to pay close attention to?)
Requesting @martijnbastiaan for everything except the Rust, and requesting @rslawson specifically for the Rust.

I'm not super happy with the rust firmware (AI generated). It has a lot of very similar functions, but the hardware and software versions differ ever so slightly; HW only needs to set the SpeedChange once, but also set it to NoChange at the end, while SW has to keep doing SPI write operations to the FINC/FDEC register. @rslawson are you happy with it as is? If not, do you have some tips on how to improve it?

AI disclaimer (heads-up for more than inline autocomplete)
Only for the rust code.

TODO

Cross-out any that do not apply

@hiddemoll
hiddemoll force-pushed the hidde/software-fincfdectests branch from ca7b221 to 08cdb34 Compare June 12, 2026 11:40
@martijnbastiaan martijnbastiaan changed the title Hidde/software fincfdectests Move fincFdecTests to software Jun 12, 2026
Comment thread bittide-instances/src/Bittide/Instances/Hitl/GenericDemo/Core.hs Outdated
Comment thread bittide-instances/src/Bittide/Instances/Hitl/FincFdec.hs Outdated
Comment thread bittide-instances/src/Bittide/Instances/Hitl/FincFdec.hs
Comment thread bittide-instances/src/Bittide/Instances/Hitl/FincFdec.hs
@hiddemoll
hiddemoll force-pushed the hidde/software-fincfdectests branch from 08cdb34 to 76fd772 Compare June 12, 2026 14:53
Comment thread bittide-instances/src/Bittide/Instances/Hitl/Driver/FincFdec.hs Outdated
Comment thread bittide-instances/src/Bittide/Instances/Hitl/FincFdec.hs Outdated
@hiddemoll
hiddemoll force-pushed the hidde/software-fincfdectests branch 5 times, most recently from 448bdd6 to 0549d71 Compare June 18, 2026 13:47

@rslawson rslawson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only change I actually would like done for this PR is the one about the unnecessary &dyn, the other ones can be left until a later date.

Comment thread firmware-binaries/hitl-tests/finc-fdec/src/main.rs
Comment thread firmware-binaries/hitl-tests/finc-fdec/src/main.rs Outdated
Comment thread firmware-binaries/hitl-tests/finc-fdec/src/main.rs Outdated
@hiddemoll
hiddemoll force-pushed the hidde/software-fincfdectests branch 4 times, most recently from b21c89c to 35e83a3 Compare June 24, 2026 07:59
@hiddemoll
hiddemoll requested a review from lmbollen June 24, 2026 08:10
@hiddemoll

Copy link
Copy Markdown
Contributor Author

@lmbollen, could you review the very last commit where I add a rust macro to call all tests?

@hiddemoll
hiddemoll requested a review from rslawson June 24, 2026 08:15
`fincFdecTests` uses a domain difference counter to check whether requested
speed changes actually increment or decrement the frequency of the external
clock. To achieve this the external clock needs to be roughly the same frequency
as what the logic runs on.

Previously both were 200 MHz, but our VexRiscv cannot run at that frequency. As
a temporary solution we add a clock configuration for a clock of 125 MHz.

Once we can run a CPU at 200 MHz we will remove the configuration for 125 MHz.
@hiddemoll
hiddemoll force-pushed the hidde/software-fincfdectests branch from 35e83a3 to 2bea23d Compare June 25, 2026 12:53
@hiddemoll
hiddemoll enabled auto-merge June 25, 2026 12:53
@hiddemoll
hiddemoll merged commit e80210f into main Jun 25, 2026
50 checks passed
@hiddemoll
hiddemoll deleted the hidde/software-fincfdectests branch June 25, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants