YosysHQ / apicula

Project Apicula 🐝: bitstream documentation for Gowin FPGAs
MIT License
465 stars 66 forks source link

Gowin - tang nano 4K, 9K Yosys generated bitstreams cannot be programmed with Gowin EDA #271

Closed fedor-goncharov closed 3 weeks ago

fedor-goncharov commented 1 month ago

I have two Gowin tang nano boards 4K and 9K and I generate bitstream via OSS-CAD suite.

Sometimes there are problems to flash .fs files to board via openFPGALoader, so I would like to use native Gowin EDA - Programmer which seem to be quite stable.

However, when I choose .fs file generated by Yosys, Gowin tells me that the board id-code is not good :

For example for 9K :

in Gowind EDA it is 1100481B in your make id-code it is 1100481b

i.e., difference in 'B' vs 'b' (maybe it is simply shitty python style of EDA). Do you know this issue?

In other direction, could you tell me where in the OSS cad suite source code I could change 'b' -> to 'B' to allow myself to use Gowin programmer?

yrabbit commented 4 weeks ago

Two points:

0000011000000000000000000000000000010001000000000100100000011011
       6                           1   1   0   0   4   8   1   b