The old formula would result in '0' quads when L was less than 4 and would not properly connect the serial lanes to the PHY.
Replacing the round with ceil fixes that.
PR Type
[x] Bug fix (change that fixes an issue)
[ ] New feature (change that adds new functionality)
[ ] Breaking change (has dependencies in other repos or will cause CI to fail)
PR Checklist
[x] I have followed the code style guidelines
[x] I have performed a self-review of changes
[x] I have compiled all hdl projects and libraries affected by this PR
[ ] I have tested in hardware affected projects, at least on relevant boards
[ ] I have commented my code, at least hard-to-understand parts
[ ] I have signed off all commits from this PR
[ ] I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
[ ] I have not introduced new Warnings/Critical Warnings on compilation
[ ] I have added new hdl testbenches or updated existing ones
PR Description
The old formula would result in '0' quads when L was less than 4 and would not properly connect the serial lanes to the PHY. Replacing the round with ceil fixes that.
PR Type
PR Checklist