YosysHQ / apicula

Project Apicula 🐝: bitstream documentation for Gowin FPGAs
MIT License
488 stars 67 forks source link

Add parameter check and DUTY handling #134

Closed yrabbit closed 1 year ago

yrabbit commented 1 year ago

As stated in the documentation: "For example, when the phase shift setting is "0" (00000), 50% duty cycle will be "8" (1000). If the phase shift setting is "180", the 50%, the 50% duty cycle setting is "0" (0000)."

As there are fuses for all DUTY values at the moment we do not check for special missing cases 0, 1, 15.

In the case of static divider assignment, check the permissible frequency range for the desired chip.

Signed-off-by: YRabbit rabbit@yrabbit.cyou

yrabbit commented 1 year ago

I think the PLL examples need to be reworked so that several images with different output frequencies are generated for each board. hm...

yrabbit commented 1 year ago

About support for different feedback and clkin routes - gowin_pack of course does not do routing, it just removes restrictions on usage, the routes themselves are created in nextpnr :)