question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gw_sh can't find GoWin FPGA model

See original GitHub issue

tried to run:

python3 -m litex_boards.targets.sipeed_tang_nano_4k --build --load --cpu-variant=minimal

with litex + gcc-riscv + ninja + migen installed. I have compiled everything, but when the script runs gw_sh shell it fails in

set_device -name GW1NSR-4C GW1NSR-LV4CQN48PC7/I6

with the following error:

*** GOWIN Tcl Command Line Console  *** 
can't find device: GW1NSR-LV4CQN48PC7/I6 GW1NSR-4C

    while executing
"set_device -name GW1NSR-4C GW1NSR-LV4CQN48PC7/I6"
    (file "run.tcl" line 1)
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/root/litex/litex-boards/litex_boards/targets/sipeed_tang_nano_4k.py", line 169, in <module>
    main()
  File "/root/litex/litex-boards/litex_boards/targets/sipeed_tang_nano_4k.py", line 156, in main
    builder.build()
  File "/root/litex/litex/litex/soc/integration/builder.py", line 357, in build
    vns = self.soc.build(build_dir=self.gateware_dir, **kwargs)
  File "/root/litex/litex/litex/soc/integration/soc.py", line 1277, in build
    return self.platform.build(self, *args, **kwargs)
  File "/root/litex/litex/litex/build/gowin/platform.py", line 41, in build
    return self.toolchain.build(self, *args, **kwargs)
  File "/root/litex/litex/litex/build/generic_toolchain.py", line 113, in build
    self.run_script(script)
  File "/root/litex/litex/litex/build/gowin/gowin.py", line 147, in run_script
    raise OSError("Error occured during Gowin's script execution.")
OSError: Error occured during Gowin's script execution.

I have used GoWin Education IDE versions 1.9.8.03 and 1.9.8 and both of them were not able to synthesize the sample project.

I have also tried to run set_device -name GW1NSR-4C GW1NSR-LV4CQN48PC7/I6 in standalone gw_sh shell without the script, but I get the same error.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
enjoy-digitalcommented, Aug 4, 2022

Hi @Chandler-Kluser,

thanks for the feedback. The build has been tested with “GowinSynthesis V1.9.7.06Beta” and is still working with it. It seems Gowin changed things in 1.9.8, this would need to be investigated.

0reactions
Chandler-Klusercommented, Aug 5, 2022

solved the issue!

GoWin Educational IDE accepts only GW1NSR-LV4CQN48PC6/I5 part number, take a look at gw_sh output:

% set_device GW1NSR-LV4CQN48PC6/I5
current device: GW1NSR-4C  GW1NSR-LV4CQN48PC6/I5

I could check the Educational IDE by opening the wizard of the IDE for a new project:

I will open a pull request by updating litex_boards/platforms/sipeed_tang_nano_4k.py file to accept the Educational IDE.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gowin RISC-V | IP and Reference Design | Support
Go to http://gowinsemi.com/support/home/ and Click on “Apply License” for the GOWIN EDA FPGA Design License. Go to http://www.gowinsemi.com/support/enquires/ ...
Read more >
GOWIN Semiconductor: Home
Our commitment to technology and quality enables customers to reduce the total cost of ownership from using FPGA on their production boards. Our...
Read more >
Untitled
Ekin elif turkoglu, Ebe bandz can't come home, Krispy kreme nutrition apple fritter! ... Mio cid castellano antiguo, Everyday symbols we see.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found