timvideos / HDMI2USB-litex-firmware

A version of the HDMI2USB firmware based around LiteX tools produced by @Enjoy-Digital (based on misoc+migen created by @M-Labs)
https://hdmi2usb.tv
BSD 2-Clause "Simplified" License
145 stars 71 forks source link

firmware: fix MMCM multiplier & divisor calculation #462

Closed rohitk-singh closed 5 years ago

rohitk-singh commented 5 years ago

Previously, the resulting pixel clock was 1/10th of the actual value. This PR fixes the calculation. Also added a warning in case the VCO frequency goes outside the allowed range.

The HDMI output is now working in Mimas A7 with this fix.

rohitk-singh commented 5 years ago

@mithro @enjoy-digital Admittedly, we need better multiplier and divisor calculation. In the meantime, I've just added a warning in case VCO is configured with frequency outside the range.