Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not use nextpnr-gowin with --family GW2A-18C #1330

Closed
janeoa opened this issue Jun 20, 2024 · 2 comments
Closed

Could not use nextpnr-gowin with --family GW2A-18C #1330

janeoa opened this issue Jun 20, 2024 · 2 comments

Comments

@janeoa
Copy link

janeoa commented Jun 20, 2024

I am using m1 mac with macos and trying to run

nextpnr-gowin --json uart.json --write uart_pnr.json --freq 27 --device GW2A-LV18PG256C8/I7 --family GW2A-18C --cst tangprimer20k.cst 

I have build the nextpnr from this git using

cmake -DARCH=gowin -DBUILD_GUI=OFF -DARCH="himbaechel" -DHIMBAECHEL_GOWIN_DEVICES="all" -DPYTHON_EXECUTABLE=~/dev/oss-cad-suite/py3bin/python3 .

make -j$(nproc)

sudo make install

and now I have following files

ls /usr/local/share/nextpnr/himbaechel/gowin/
chipdb-GW1N-1.bin	chipdb-GW1N-4.bin	chipdb-GW1N-9.bin	chipdb-GW1N-9C.bin	chipdb-GW1NS-4.bin	chipdb-GW1NZ-1.bin	chipdb-GW2A-18.bin	chipdb-GW2A-18C.bin

But when I envoke nextpnr-gowin for GW2A-18C, it fails

nextpnr-gowin --json uart.json --write uart_pnr.json --freq 27 --device GW2A-LV18PG256C8/I7 --family GW2A-18C --cst tangprimer20k.cst
ERROR: Failed to load chipdb 'gowin/chipdb-GW2A-18C.bin'
0 warnings, 1 error

what am I missing?

@yrabbit
Copy link
Contributor

yrabbit commented Jun 20, 2024

  • You still run nextpnt-gowin, but now you need to use Himbaechel.
  • Tangprimer20k is not GW2A-18C, it's just GW2A-18
#Tangnano20k
nextpnr-himbaechel  --json  uart.json --write  uart_pnr.json --device GW2AR-LV18QN88C8/I7 --vopt family=GW2A-18C --vopt cst=tangnano20k. cst

#Tangprimer20k
nextpnr-himbaechel  --json  uart.json --write  uart_pnr.json --device GW2A-LV18PG256C8/I7 --vopt family=GW2A-18 --vopt cst=primer20k.cst

You can see compilation examples for all supported boards in the Makefile:

https://github.com/YosysHQ/apicula/blob/master/examples/himbaechel/Makefile.himbaechel

@yrabbit
Copy link
Contributor

yrabbit commented Jun 24, 2024

If everything worked out for you, then close this issue, please. 😄

@janeoa janeoa closed this as completed Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants