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

Add support for Sipeed Tang 9k #3

Open
RichardPar opened this issue Feb 24, 2023 · 8 comments
Open

Add support for Sipeed Tang 9k #3

RichardPar opened this issue Feb 24, 2023 · 8 comments

Comments

@RichardPar
Copy link

Hi there,

I recently got one of the above toys.. adding the project to the Gowin FPGA Designer 1.9.8.10 and changing the target, there are many errors abound. (Complains about Verilig versions and syntax) and in the end it doesnt syntheise.

ERROR (PA2024) : The number(335) of ports exceeds the resource limit 59 regular I/Os and 1 RECONFIG_N I/Os of current device, you can also use 4 JTAG, 3 SSPI and 4 MSPI I/Os by configuring Dual-Purpose Pin as regular I/Os.

its clearly on some or other whacky trip :D Loading the project and not changing anything results in errors..
image

Any pointers would be appriciated..

@pthalin
Copy link
Owner

pthalin commented Feb 25, 2023

Please check that your project settings are correct.
config1

If you change the target you must also update the PLL type and pin mapping.

@krisdover
Copy link

@RichardPar did you manage to get this working on your board? I've followed @pthalin's instructions and setup my GOWIN EDA to build this project and program my Tang Nano 4K, but I'm getting corrupted bcdcounts (i.e. time measures) outputted to the screen. I've done some debugging and verified it's definitely not the char_rom.v module. My only guess is that maybe its something to do with the FIFO_HS_Top IPC and the cross clock domains?

IMG_20230717_104833

@pthalin
Copy link
Owner

pthalin commented Jul 19, 2023

I seen this too when using a new gowin ide verson. What version did you use?

@RichardPar
Copy link
Author

RichardPar commented Jul 19, 2023 via email

@krisdover
Copy link

I seen this too when using a new gowin ide verson. What version did you use?
Interesting! I've got a board using the GW1NSR-LV4C FPGA:

IMG_20230720_134320

Btw, thanks for the awesome work porting time-sleuth to this very affordable development board. It's been fun learning Verilog using this project. 👍

@pthalin
Copy link
Owner

pthalin commented Jul 22, 2023

@krisdover @RichardPar
I can confirm that I get the "corrupted bcdcounts" with Gowin IDE 1.9.8.11 Edu but it works with 1.9.8.7 Edu and 1.9.8.9 Edu. I'm struggling to solve this so please let me know if you find the cause of this.

@krisdover
Copy link

Thanks for that update @pthalin. Any idea as to where I can find Gowin IDE 1.9.8.7 Edu? The GOWIN website only has the new 1.9.8.11 Edu version available for download.

I'm struggling to solve this so please let me know if you find the cause of this.

I thought it might be due incompatibilities between the FIFO_HS IP CORE module you stored in the project and new GOWIN EDA toolchain. I've even regenerated the FIFO_HS module in the new v1.9.8.11 EDA and noted that it uses a new encryption version:

image

Unfortunately I still get the corruption even with the new module.

@krisdover
Copy link

@pthalin I just thought I'd share that I've still been playing with code try getting it to work on my Tang 4k and noticed that it would randomly work sometimes, just by chance, when I added or remove some extra registers. So I started to wonder whether these FPGA boards were suffering from some kind of instability, and sure enough I was able to find a few reports online which seem to suggest that it depends on the percentage of FF/LUTs in use:

https://www.reddit.com/r/GowinFPGA/comments/101p9yd/sipeed_tang_nano_4k_9k_gowin_fpgas_become/
YosysHQ/apicula#169

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

3 participants