YosysHQ / apicula

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

Tang Nano 9k: rPLL is not working at all #244

Closed tmssngr closed 3 months ago

tmssngr commented 6 months ago

Am I doing something obvious wrong or is the rPLL not supported (with this configuration)?

pepijndevos commented 6 months ago

Could you try with #241 ?

tmssngr commented 6 months ago

Which official build I should try (I can't build on my own)?

pepijndevos commented 6 months ago

There isn't an official release with an unmerged pull request. We do however compile a Python package on CI, as well as build the examples. So if you can obtain a new enough nextpnr you could use it together with the provided python package. If you are unable to obtain a nextpnr newer than 3 weeks, you can at least verify that the PLL examples in the himbaechel folder work correctly.

If you scroll down to artifacts you will find examples-main-master with ready to use bitstreams, and python-dist for use with a recent nextpnr. https://github.com/YosysHQ/apicula/actions/runs/8593362463?pr=241

yrabbit commented 6 months ago

Still waiting for nextpnr-himbaechel to be added: https://github.com/YosysHQ/oss-cad-suite-build/pull/109

And so the LEDs are blinking, I can take a video signal from the pins, but something tells me that everything is fine there too.

#!/bin/sh
yosys -p "read_verilog top.v gowin_rpll/gowin_rpll.v VbsGenerator.v; synth_gowin -top top -json synth.json"
nextpnr-himbaechel --json synth.json --write project.json --device GW1NR-LV9QN88PC6/I5 --vopt family=GW1N-9C --vopt cst=tangnano9k.cst
gowin_pack -d GW1N-9C -o project.fs project.json
openFPGALoader -c ft2232 project.fs

https://github.com/YosysHQ/apicula/assets/6075465/c17cd8b6-c6e2-415b-8050-78d356e629b2

tmssngr commented 6 months ago

That looks perfectly fine. I'll wait until an official build will contain the fix/change.

pepijndevos commented 3 months ago

fixed in #241