YosysHQ / apicula

Project Apicula 🐝: bitstream documentation for Gowin FPGAs
MIT License
446 stars 64 forks source link

Examples. Describe the Tangnano4k clock pin. #234

Closed yrabbit closed 5 months ago

yrabbit commented 5 months ago

The point is that the external crystal on this board is soldered to a pin, which is a PLL input, not a clock pin. Therefore, common routing is used.

By specifying that this is a buffered network, we are forcing the router to use global clock wires.

yrabbit commented 5 months ago

The fact that the network has become buffered may have a very minor effect in cases where you really need to use this pin as an input for a PLL.

For now we can simply remove CLOCK_LOC "clk" BUFG, but in the future we will need to make a small correction to our global router to catch PLL input pins.

yrabbit commented 5 months ago

Also runber, let's wait https://github.com/YosysHQ/nextpnr/pull/1286