![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/297/f06/71c/297f0671c6fcfb5eff57424b67d43578.jpg)
Gowin has clear advantages over Xilinx in the educational FPGA board market: Gowin boards are several times less expensive, the synthesis speed is several times faster, and the EDA package is two orders of magnitude smaller: we are talking about 1G versus 100G disk space. Of course, Xilinx is still the king of high-end prototyping boards that cost $10K-100K, but for the students such boards are irrelevant; such boards are for ASIC design companies. A beginning EE student needs a board for less than $100, and Gowin not only fits the bill but also covers all the needs, specifically:
Basic logic design labs: gates, muxes, arbiters, flops, FSMs.
Generating graphics, with LCD and DVI/HDMI output.
Sound recognition and sound generation.
Processing data from a camera.
Microarchitecture labs: data pipelines, FIFOs, memory controllers.
Simple CPUs / microcontroller-class cores with 3-5 pipeline stages.
A mid-range CPU with caches and TLBs that can run Linux (although for this one, you need Tang Mega 138K or at least Tang Primer 25K since Tang Nano 9K is too small for such an application).
In this post, we present a platform based on Sipeed Tang Nano 9K that reliably covers the needs for 1, 2, 3, 5 and 6. We are using Basic-Graphics-Music example set from the corresponding github repository).
We did not test our setup with a camera and we don’t think it is suitable to synthesize Linux-capable CPU cores, but it is more than enough for the first two years of digital electronic lab and computer architecture curriculum. And it costs less than $40 (compare it with Digilent Nexys A7 with Xilinx Artix-7 FPGA for $350 and Digilent Basys-3 for $165).
Gowin also wins a comparison against Altera, although not as clearly as against Xilinx:
There are inexpensive Altera-based boards from China, for example Saylinx for $54.
Altera Quartus synthesis is faster than Xilinx Vivado, although not to the degree of Gowin.
Altera EDA package is smaller, although not to the degree of Gowin.
Some may argue that Xilinx Spartan-6 boards are also inexpensive, but we cannot use them to teach the students. Spartan-6 is supported only by older EDA software Xilinx ISE, which does not support SystemVerilog, only Verilog-2001. We live in the 21st Century, and we want to teach the students SystemVerilog, that’s for sure.
Last but not least, Gowin users have the option to use both commercial and Yosys-based open toolchains. Yosys support for Xilinx does exist, but probably not as smooth as for Gowin (we did not evaluate Yosys for Xilinx firsthand).
There are more FPGA platforms, Lattice and Efinix; we are still in the process of evaluating them.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/7fb/c6f/357/7fbc6f357c7c382e2a58929f8a8fc6cc.jpeg)
Now, let’s go back to Sipeed Tang Nano 9K. We plan to use it as one of the main platforms in Hacker Dojo in Mountain View, California, and for planned seminars in Central Asia. We already tried Gowin, Tang Primer 20K Dock board, as one of the boards on a seminar in Azerbaijan back in February 2024.
We presented our calculations in the following spreadsheet:
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/db7/069/c75/db7069c75c42322fbf408e24b78c07fe.png)
We will describe Tang Nano 20K and Tang Primer 25K Dock in separate posts. We should note that Tang Primer 25K Dock does not have LCD interface, so we have to buy an additional $35 HDMI screen for it to run all the labs.
Here is the list of all components of our Tang Nano 9K set:
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/bba/59a/937/bba59a93737d9c81c7f1236aba1b19ff.png)
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/8b1/008/2f1/8b10082f1187f97e224e1642f48fb2c1.png)
TM1638 – a very convenient peripheral, especially for microarchitectural and CPU labs
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/cbe/448/9d6/cbe4489d69713b5964e113002b44929d.png)
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/96c/e7c/2d2/96ce7c2d236cbfafbae6e238c7928d1d.png)
I2S GY-PCM5102, for sound output.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/f70/de3/e84/f70de3e84ecdbedcde17eafd049243de.png)
Make sure you know how to put solder bridges, see the discussion here:
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/d2f/6d7/862/d2f6d7862c64a5ce5da9a747bdd368ea.jpeg)
High-quality full-size breadboard
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/629/8b9/e4d/6298b9e4d94102a84c188a9fccc5448a.png)
High-quality half-size breadboard, another option
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/de5/b8c/4e9/de5b8c4e9b25e27109d8f707cfe78506.png)
Jumper 10cm Male-Male. If you prefer to put everything on a breadboard, you need to buy Male-Male jumpers; in other configurations you can use Male-Female and Female-Female jumpers.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/643/4ec/f23/6434ecf23951232115ad3356f85cb205.png)
Ear bud. It is without microphone, which is important. An ear bud with a microphone will not work with GY-PCM5102.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/b69/6fc/ac7/b696fcac70d538fa64a53e4f5a6d297f.png)
Rotary encoder. Useful for a practical exam.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/aeb/84e/769/aeb84e7699f857db29dce9d7c47a293a.png)
Ultrasonic Sensor. Useful for a practical exam.
![](https://webcf.waybackmachine.org/web/20240825105253/https://habrastorage.org/getpro/habr/upload_files/af9/c36/b43/af9c36b4397375e9408e31987aa401b4.png)
If you want to participate in porting labs and projects to the new boards, you can join Verilog meetups in Hacker Dojo in Mountain View, California, every Sunday from 11 am to 2 pm. If you are unable to come to Mountain View, you can join us online over Zoom at the same time. Please send an email to [email protected], join Google Group meetsv and Telegram channel verilog_meetup to introduce yourself and get started.
If you are going to the Design Automation Conference (DAC) in San Francisco, California, I will be there on Monday, June 24, 2024. You can contact me on LinkedIn and we can discuss the board and education topics.