<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FPGA</title><link>https://community.element14.com/technologies/fpga-group/</link><description>FPGA discusses the latest trends in programmable logic devices, and offers access to education, workshops, webinars on FPGAs, SoCs, and other programmable devices.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Forum Post: RE: FPGA SoC for ASIC/RTL portfolio projects: Arty Z7-20 vs Kria KR260, plus STM32?</title><link>https://community.element14.com/technologies/fpga-group/f/forum/57470/fpga-soc-for-asic-rtl-portfolio-projects-arty-z7-20-vs-kria-kr260-plus-stm32/239136</link><pubDate>Wed, 18 Nov 2026 16:13:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8ecad648-c16e-4696-88b4-999591e62d8e</guid><dc:creator>michaelkellett</dc:creator><description>You are obviously close to the start of your FPGA journey. I strongly urge you not splash your budget out on an expensive board - the Digilent Arty is plenty to get on with. You could start cheaper but the support will be worse. Maybe re-consider getting into a system on a chip approach - if you look at the questions that arise about FPGAs on E14 you&amp;#39;ll see that a lot of them are people getting bogged down in fighting the Linux OS on the FPGA - you can do that cheaper elsewhere. If you get an entry level job it is very unlikely that you will be let loose to do everything from RTL to computer architecture - there are lots of Linux experts - few RTL experts so I suggest you start off trying to do useful stuff with non SOC type FPGA board. One based on AMD Artix 7 or Spartan 7 would be suitable. It&amp;#39;s always hard to think of good learning projects that will impress employers - so do stuff that is interesting to you. At the beginning concentrate on Verilog (if you must - I prefer VHDL but you will need to be capable in both - I think learning VHDL first teaches better habits but it&amp;#39;s not important to you yet) RTL, Timing, constraints (not just timing) Using AMD/Xilinx is probably the best bet - the free tools will be adequate. Do the usual traffic lights, pong, video controller A good challenge project is to make an Ethernet controller which can send and receive UDPs without using a ready written MAC or on chip processor or processor IP. Learn embedded C on a processor - almost anything will do. MK</description></item><item><title>Forum Post: RE: How much hands-on FPGA practice is actually needed before applying for entry-level roles?</title><link>https://community.element14.com/technologies/fpga-group/f/forum/57311/how-much-hands-on-fpga-practice-is-actually-needed-before-applying-for-entry-level-roles/239135</link><pubDate>Wed, 18 Nov 2026 15:35:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:099b3134-20ec-4faf-bcc1-2aafc0720663</guid><dc:creator>fpgaguru</dc:creator><description>For the AMD case, I think a tutorial for beginners showing how to install and then use Ross AI would give you the most bang for your training/learning buck.</description></item><item><title>Forum Post: RE: FPGA SoC for ASIC/RTL portfolio projects: Arty Z7-20 vs Kria KR260, plus STM32?</title><link>https://community.element14.com/technologies/fpga-group/f/forum/57470/fpga-soc-for-asic-rtl-portfolio-projects-arty-z7-20-vs-kria-kr260-plus-stm32/239134</link><pubDate>Wed, 18 Nov 2026 15:32:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f1d1c21b-c382-4111-a404-6b70f1ebdc73</guid><dc:creator>fpgaguru</dc:creator><description>For serious work I recommend the Kria KR260 board, it is well within your budget and it has a Zynq UltraScale+ FPGA as opposed to the much older 7-Series alternatives. It is targeted for robotic and industrial applications, if that&amp;#39;s your cup of tea. It comes with a Vivado/Vitis license for this board included so you are not limited by the free version of the tools. I also suggest you take a look at Ross AI, AMD&amp;#39;s free and AI agnostic AI agent, it should be able to help with learning and using the tools.</description></item><item><title>Forum Post: RE: FPGA SoC for ASIC/RTL portfolio projects: Arty Z7-20 vs Kria KR260, plus STM32?</title><link>https://community.element14.com/technologies/fpga-group/f/forum/57470/fpga-soc-for-asic-rtl-portfolio-projects-arty-z7-20-vs-kria-kr260-plus-stm32/239133</link><pubDate>Wed, 18 Nov 2026 14:34:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1292f50e-cd97-4e83-901e-267cff4b56d0</guid><dc:creator>veluv01</dc:creator><description>[quote userid=&amp;quot;527635&amp;quot; url=&amp;quot;~/technologies/fpga-group/f/forum/57470/fpga-soc-for-asic-rtl-portfolio-projects-arty-z7-20-vs-kria-kr260-plus-stm32&amp;quot;]I’m interested in an FPGA SoC with a built-in processor so I can write my own RTL and learn memory-mapped interfaces, interrupts, and DMA.[/quote] You can also use an {Programmable Logic}PL fabric only FPGA Dev board like the Arty A7-100 or even the Nexys A7 too. It&amp;#39;s just that you&amp;#39;ll be using the softcore processor like the Microblaze-V, which is available for free in the Vivado IP catalog and you can try all of the stuff you listed out, and additionally you can also try to build your own RISC-V soft core processor too. If you&amp;#39;re gonna need a SoC FPGA i.e FPGA with a ARM processor go with the Arty Z7-20 [Zynq 7020], Digilent has some really good documentation for getting started. KR260 isn&amp;#39;t beginner friendly as it&amp;#39;s an MPSoC and does require a lot of resources (to work with it, in this ongoing RAM crisis) when compared to the Zynq 7020 and Artix A100.</description></item><item><title>Forum Post: FPGA SoC for ASIC/RTL portfolio projects: Arty Z7-20 vs Kria KR260, plus STM32?</title><link>https://community.element14.com/technologies/fpga-group/f/forum/57470/fpga-soc-for-asic-rtl-portfolio-projects-arty-z7-20-vs-kria-kr260-plus-stm32</link><pubDate>Wed, 18 Nov 2026 11:37:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5d899f1a-7b08-4a91-8c6a-9be119d47d17</guid><dc:creator>Khalil_11</dc:creator><description>I’m looking for advice on building strong independent skills and a portfolio for entry-level ASIC/RTL design roles. My main interests are digital logic, RTL, and computer architecture, but I also want enough embedded knowledge to work comfortably with hardware/software interfaces. I’ve used Verilog, Libero, and ModelSim during an FPGA internship, plus some ESP32, but I need to become more independent at designing, verifying, and debugging projects. I’m interested in an FPGA SoC with a built-in processor so I can write my own RTL and learn memory-mapped interfaces, interrupts, and DMA. ChatGPT suggested the Digilent Arty Z7-20 and AMD Kria KR260, but I’d appreciate an independent opinion on whether either fits my goals. I’m open to other recommendations. I’m also considering an STM32 board alongside the FPGA SoC. Would that add useful experience, or would it spread my attention too thin? My hardware budget is up to $1,000, but I’d prefer to spend less and avoid expensive software or IP licenses. My main questions are: • How should I prioritize SystemVerilog, verification, timing constraints, computer architecture, and embedded C? • What projects would demonstrate useful engineering ability beyond following tutorials? • What hardware would you buy for those projects, and what would you build first? Please connect any board recommendation to concrete projects and mention relevant tool or licensing limitations.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-series-and-gowin-fpgas-for-beginners-a-practical-guide-part-1?CommentId=5c645097-0c2b-4eb1-89cb-53b9979fce80</link><pubDate>Mon, 19 Oct 2026 11:59:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5c645097-0c2b-4eb1-89cb-53b9979fce80</guid><dc:creator>shabaz</dc:creator><description>Good idea, that does look a very simiilar size!</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-series-and-gowin-fpgas-for-beginners-a-practical-guide-part-1?CommentId=b9e91f19-8499-4c21-9c1c-43b26ed3817c</link><pubDate>Mon, 19 Oct 2026 05:48:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b9e91f19-8499-4c21-9c1c-43b26ed3817c</guid><dc:creator>Jan Cumps</dc:creator><description>If that contraption doesn&amp;#39;t hold: There is a Schottky on the backside of the board, that seems to fit the footprint of the fuse: It has more space available. You can unsolder it, and place it where the fuse was. You can then scrape the path between the original diode and the capacitor to the right of it. And solder your PMEG2005EGW there. I think it would fit in.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-series-and-gowin-fpgas-for-beginners-a-practical-guide-part-1?CommentId=cc83ec4d-dc07-430c-a152-6a67c95a7fb6</link><pubDate>Sun, 18 Oct 2026 15:06:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:cc83ec4d-dc07-430c-a152-6a67c95a7fb6</guid><dc:creator>shabaz</dc:creator><description>One thing I don&amp;#39;t like is that there&amp;#39;s no practical way to feed in power to these boards other than via USB-C. For instance on the Tang Nano 20k, VBUS from the USB-C connector goes through an 0805-sized fuse to 5V. That 5V supply rail then goes to a header pin (which I wished to use to feed in power) but the rail is also all over the place on the board (there are a lot of voltage regulators). I decided to see what happens if I remove that fuse on the Tang Nano 20k and change it to a diode. There are some extremely tiny parts nearby (0201 perhaps), so I covered them with Kapton tape: The desoldering still wasn&amp;#39;t easy. The smallest diode I had was PMEG2005EGW (Schottky, 500mA) so I went with that.. not enough space to solder it on both pads so there&amp;#39;s a wire bridge. The leftmost PCB pad needs to go to the anode. Finally a drop of glue using the end of a toothpick to dispense it: It seems to work for now, but I don&amp;#39;t know if it will impact some projects or not.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=61ce8af7-e489-4d44-ac8e-e80da61610e6</link><pubDate>Wed, 14 Oct 2026 15:58:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:61ce8af7-e489-4d44-ac8e-e80da61610e6</guid><dc:creator>michaelkellett</dc:creator><description>Page 11 of the It describes how to force things to use Clock or other resources. It might be worth checking why pdm_clk_d has been made - I think there is a schematic viewer in the tools. MK</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=0b0b1165-97ec-47d5-992d-aed8b80a698b</link><pubDate>Wed, 14 Oct 2026 14:28:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0b0b1165-97ec-47d5-992d-aed8b80a698b</guid><dc:creator>shabaz</dc:creator><description>Hi Michael, Thanks for this! I used the double-register (2-FF) method on the toggle-based handshake signals (in both directions), whereas for the 256-bit registers there is a guaranteed minimum delay between write and read, because they are not used until after the 2-FF handshake. Hm, perhaps because of that, because it is seeing absence of FIFO on those data registers, it&amp;#39;s refusing to use dedicated clock routing for that second clock : ( The reason I&amp;#39;d initially avoided it was because I wanted to test using the BSRAM first separately, since I&amp;#39;d never used it. I&amp;#39;d have benefited from using a FIFO, because I did encounter other problems(not related to such clock-domain-crossing issues, but scenarios where I nevertheless still needed to move from two to three registers though! It was the quite embarrassing obvious conditions of sometimes wanting to only consume only 257, or 513 or 769 bits etc). I&amp;#39;ve learned from this mistake and I&amp;#39;d use a FIFO right from the start in future for such scenarios. EDIT: just figured out how to remove some of the warnings: There is a &amp;quot;clock groups&amp;quot; constraint option, where it was possible to place the two normal clock constraints I&amp;#39;d defined earlier. There&amp;#39;s a &amp;quot;Asynchronous&amp;quot; option there, so I selected that: Also, I couldn&amp;#39;t understand why a signal I had not created was being reported, it was called pdm_clk_d (which I don&amp;#39;t have in my VHDL source nor did I think was generated internally): Turns out I&amp;#39;d not been searching properly, it was right there: By doing those changes in the GUI, the constraints file now contains: create_clock -name clk -period 37.037 -waveform {0 18.518} [get_ports {clk}] create_clock -name pdm_clk -period 166.667 -waveform {0 83.334} [get_ports {pdm_clk}] create_clock -name pdm_clk_d -period 166.667 -waveform {0 83.334} [get_nets {pdm_clk_d}] set_clock_groups -asynchronous -group [get_clocks {clk}] -group [get_clocks {pdm_clk}] I don&amp;#39;t like not understanding this properly, why there are two clock constraints there, one for pdm_clk and one for that internal net pdm_clk_d, so I still need to get to the bottom of that. However just as a quick test, with those changes, I see: So, annoyingly it&amp;#39;s still not using proper clock routing. I&amp;#39;ll keep plugging away. Also, that PSRAM instance CLKOUT.default_gen_clk is something that doesn&amp;#39;t seem to exist in searches in that constraints GUI, but I can&amp;#39;t be the only one to have used the in-built PSRAM in these devices so I&amp;#39;ll search online a bit more. EDIT 2: Finally solved that PSRAM clock warning! Again, a very silly mistake.. I should have searched in &amp;quot;pins&amp;quot; - obvious really, since as far as the FPGA is concerned, that PSRAM chip is attached to real pins, since it&amp;#39;s a separate die. Timing constraints file now: create_clock -name clk -period 37.037 -waveform {0 18.518} [get_ports {clk}] create_clock -name pdm_clk -period 166.667 -waveform {0 83.334} [get_ports {pdm_clk}] create_clock -name pdm_clk_d -period 166.667 -waveform {0 83.334} [get_nets {pdm_clk_d}] create_clock -name psram_clkout -period 24.691 -waveform {0 12.345} [get_pins {psram_instance/clkdiv_s0/CLKOUT}] set_clock_groups -asynchronous -group [get_clocks {clk}] -group [get_clocks {pdm_clk}] I&amp;#39;m down to one remaining warning: WARN (PR1014) : Generic routing resource will be used to clock signal &amp;#39;pdm_clk_d&amp;#39; by the specified constraint. And then it may lead to the excessive delay or skew</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=88e0e483-6246-4281-851e-fc6ee7d8b0e1</link><pubDate>Wed, 14 Oct 2026 08:59:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:88e0e483-6246-4281-851e-fc6ee7d8b0e1</guid><dc:creator>michaelkellett</dc:creator><description>The tool is correctly warning you that the two clocks are not synched. Xilinx Vivado will warn you in the same way even if you have used their synching pragmas to set up domain crossing - to suppress the warnings you have to explicitly set up exceptions for the places where the clocks cross. As you have noticed the design may well work. However, you are (potentially) violating a real problem area: This from Google AI, search was: flip flop for crossing clock domains in fpga Your vector is multi-bit and you might get issues. Although it would involve a lot of re-wiring a nicer way to resolve your problem is to fill a dual clock fifo from the PSRAM (in the 40.5MHz domain) and read from it in the PDM clock domain. The tools have IP to make the FIFO and can use a block RAM. MK</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=b9f5b645-a050-4094-baad-17d91fb2cb5a</link><pubDate>Tue, 13 Oct 2026 17:07:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b9f5b645-a050-4094-baad-17d91fb2cb5a</guid><dc:creator>shabaz</dc:creator><description>Hi Michael, That&amp;#39;s correct, two clocks are being used. I don&amp;#39;t have a FIFO but am using a couple of buffers per audio channel to achieve the same effect. The main 40.5 MHz clock (from the PLL) is used to fetch 256 bits of data from PSRAM and place it in one of four 256-bit registers (two sets of two; two for left audio and two for right). Initially both sets, i.e. all four 256-bit registers, are filled up. As each buffer is filled, its corresponding bit in a 4-bit vector called ready_toggle is toggled to indicate that new data has been placed in that buffer. Initially this results in ready_toggle becoming &amp;quot;1111&amp;quot;. The process then continually looks for buffers that have been consumed by the serial playback side, by comparing ready_toggle with a 2-stage flip-flopped (for crossing the clock domain) 4-bit vector called consumed_toggle initially set to &amp;quot;0000&amp;quot; that is only set by the playback side. When two bits from the toggle vectors match, the corresponding buffer is free and can be refilled from PSRAM. In another entity there are two serial playback processes, one for the left channel and one for the right. These are clocked from the much slower external clock (a few MHz maximum), called pdm_clk . The left process runs on the falling edge of pdm_clk, while the right process runs on the rising edge. Each process takes data from its current 256-bit buffer and serialises it one bit at a time. When it finishes a buffer, it toggles the bit in consumed_toggle and then proceeds to play out the other buffer, which should already be filled by the far quicker PSRAM side process. The architecture uses the following continuous (concurrent) connection to combine the results from the two playback processes, i.e. acting as a multiplexer, so that there is data output on every clock edge: pdm_data &amp;lt;= right_bit when pdm_clk=&amp;#39;1&amp;#39; else left_bit; The timing constraints file contains: create_clock -name clk -period 37.037 -waveform {0 18.518} [get_ports {clk}] create_clock -name pdm_clk -period 166.667 -waveform {0 83.334} [get_ports {pdm_clk}] These are the options in the GUI though: These are the warnings: WARN (TA1132) : &amp;#39;psram_instance/clkdiv_s0/CLKOUT.default_gen_clk&amp;#39; was determined to be a clock but was not created. WARN (TA1117) : Can&amp;#39;t calculate clocks&amp;#39; relationship between: &amp;quot;pdm_clk&amp;quot; and &amp;quot;psram_instance/clkdiv_s0/CLKOUT.default_gen_clk&amp;quot; WARN (TA1117) : Can&amp;#39;t calculate clocks&amp;#39; relationship between: &amp;quot;psram_instance/clkdiv_s0/CLKOUT.default_gen_clk&amp;quot; and &amp;quot;pdm_clk&amp;quot; WARN (PR1014) : Generic routing resource will be used to clock signal &amp;#39;pdm_clk_d&amp;#39; by the specified constraint. And then it may lead to the excessive delay or skew I think this could be a test to see if Gowin support is useful.. I&amp;#39;ll send them this problem, see what they suggest.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=b383bda2-da33-4b3d-b6df-624036272ed2</link><pubDate>Tue, 13 Oct 2026 15:10:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b383bda2-da33-4b3d-b6df-624036272ed2</guid><dc:creator>michaelkellett</dc:creator><description>Am I correct in thinking that your PSRAM clock is 40.5MHz from internal PLL and that there is another clock from the signal generator being used to clock out the bits. If so then at some point data synchronous with the 40.5 MHz clock must become data synchronised with the Owon clock. The usual way to do this would be with a dual clock FIFO. MK.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=ba027bd7-ab00-4f6a-b869-198e30babd8b</link><pubDate>Tue, 13 Oct 2026 14:42:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ba027bd7-ab00-4f6a-b869-198e30babd8b</guid><dc:creator>shabaz</dc:creator><description>One thing I&amp;#39;m having difficulty with; I&amp;#39;ve successfully managed to output from PSRAM to a serial bitstream (green), but this time based on an external clock (yellow). In other words, the serial bitstream rate is dependent on the external clock. However, I want data on _both_ clock edges (as you can see, the green output changes on falling and rising clock edges). That works, but I cannot seem to make the Gowin software treat the yellow signal as a clock, it treats it as a normal logic signal, hence timing could potentially break. The warning I get is &amp;quot;Can&amp;#39;t calculate clock&amp;#39;s relationship&amp;quot; (between the clock being used in the process which is the 40.5MHz clock as mentioned in the blog post, and the external clock shown in yellow in the &amp;#39;scope trace. I have for sure attached that yellow signal to a pin on the FPGA which supports clocks. Testbed photo for those interested.. I was able to get UART working and use that to fill up the PSRAM, and then the PSRAM data is played out as shown in the green trace above. I&amp;#39;m using a low-cost Owon signal generator to create that external clock, and a Kingst logic analyzer to capture the clock and data. I only had 10-way header/socket pins unfortunately. Also, I avoided blocking the TFT connector area in case I ever purchase that.</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=5a5d4a95-1c51-466e-812d-f0434efa4146</link><pubDate>Mon, 12 Oct 2026 00:05:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5a5d4a95-1c51-466e-812d-f0434efa4146</guid><dc:creator>shabaz</dc:creator><description>There&amp;#39;s enough to try out if anyone wants to, although it&amp;#39;s still a work-in-progress. I called it OpenGWScope. OpenGWScope installer (Windows only currently). It will prompt the user to copy a folder called Programmer from their existing Gowin app folder, into C:\Program Files\OpenGWScope\runtime\gowin (if that&amp;#39;s where this software was installed). Then use the Gowin FPGA Designer in the usual way, and select the &amp;quot;Lite&amp;quot; version of GAO, and then when the FPGA is running the code, use OpenGWScope. Using the app should be mostly self-explanatory, If it doesn&amp;#39;t connect to the FPGA, it is likely related to the port number. On my PC it was port 289 that worked, and that&amp;#39;s the default in this app. To change it, go to %APPDATA%\OpenGWScope (I have no menu for this, so it needs file explorer) and there is a .json file there, it can be edited. Example screenshot: I won&amp;#39;t work on this for a bit unless anyone hits a serious bug, because this app was originally just supposed to be a quick helper for my actual task (an FPGA-based mic simulator).</description></item><item><title>Blog Post: Tang Nano Series and Gowin FPGAs for Beginners, Part 2: Double Blinky! A VHDL Walk-Through</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-series-and-gowin-fpgas-for-beginners-part-2-double-blinky-a-vhdl-walk-through</link><pubDate>Sun, 11 Oct 2026 16:15:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:850d5de0-5e34-46d6-8487-3a8abc2f9a14</guid><dc:creator>shabaz</dc:creator><description>Table of Contents Introduction Start a Project Library and Package Declarations IO Ports List (Entity and Port Declaration) VHDL Architecture Body Architecture Declaration (Constants and Internal Signals) Architecture Statement Region (Concurrent Statements) VHDL Code Summary Physical Constraints (Pins) Synthesis Assigning Pins Constraints using the FloorPlanner Timing Constraints Place and Route Programming the Bitfile (Bitstream) Instrumenting with GAO: Gowin Analyzer Oscilloscope Summary Click here for Part 1 Introduction The Tang Nano series of boards were introduced in FPGA for Beginners Part 1 , and in particular, it was covered what pins do what, and how the FPGA works at a high level. Now it was time to start coding a simple demo. The demo will just blink a couple of LEDs. I’ll walk through the VHDL code line-by-line, so it’s hopefully clear what is going on. To recap from the previous blog post, ensure you’ve got a good quality USB-A-to-C cable, and register, download and install the Gowin FPGA Designer (also known as Gowin EDA) app; I installed the &amp;quot;Education build&amp;quot;. Start a Project For a first experiment with the Tang Nano, launch the Gowin application, and click File-&amp;gt;New-&amp;gt;Project . A prompt appears for the device; I decided to target the Tang Nano 9k, and selected the GW1NR series (there&amp;#39;s a table in the previous blog post listing which FPGA is in which Tang Nano board). You might need to fill in more parameters until all that’s left is one selection that matches your FPGA, then select it. The IDE is easy to use. Notice the left pane has Design , Process and Hierarchy tabs underneath it. In the Design tab, it is possible to right-click and add existing or new files. In the Process tab, you can perform actions to ultimately transform those source files all the way through to the final bitstream/bitfile that needs to be transferred to the FPGA. I right-clicked, and selected New File , selected VHDL , and gave it a name of double_blinky (a .vhd suffix will get appended). Double-click on that file in the Design tab, and the text editor pane will appear on the right. Here is the HDL code I used (I am not a VHDL engineer, so please don’t assume I’m using best practise!). I’ll go through this line-by-line next, but it&amp;#39;s best to keep a separate window open with that entire code in view, so it&amp;#39;s easier to mentally navigate through it. Library and Package Declarations First off, the following is boilerplate and is generally required for VHDL projects. The 1164 refers to an IEEE standard. library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; IO Ports List (Entity and Port Declaration) Like most digital circuits, double_blinky makes use of a clock to progress the circuitry along, and a reset line is very normal too, to make it start in a desired state. Therefore, double_blinky is expected to have four physical connections to the outside world: clock, reset, and two LED signals. The LED signals can be expressed as a two-bit array (called a vector in VHDL). The entity declaration, including its port list, describes these four input or output signals. The reset signal is named reset_n just to make it clear that the signal is expected to go low to perform the reset action. This is commonly called an active-low reset. entity TOP is port ( led : out STD_LOGIC_VECTOR(1 downto 0); clk : in STD_LOGIC; reset_n : in STD_LOGIC ); end TOP; VHDL Architecture Body Here&amp;#39;s where the FPGA developer gets to type out how they wish the circuit to function! The architecture has a name, and in this example I&amp;#39;ve called it RTL . The name can be almost anything you like, but RTL is common. It stands for Register Transfer Level, which basically means describing the circuit in terms of registers and the logic operating between them. This is a very normal way to describe digital circuits intended for implementation in an FPGA. architecture RTL of TOP is The architecture body is split into two sections: the declarative region and the statement region. They will both be described next. Architecture Declaration (Constants and Internal Signals) These are fairly self-explanatory. Since the clock input may be running at a high speed, a counter is needed. The constants here are used to indicate how many clock pulses are needed before the LED state will be changed: -- CONSTANTS constant CLK_FREQ_HZ : integer := 27_000_000; constant MSEC_CONST : integer := CLK_FREQ_HZ / 1000; constant LED_DELAY_CONST : integer := MSEC_CONST * 500; It stands to reason that signals representing the binary count value will be required, and that those signals will probably come from a register, since flip-flops/registers are normally used for anything that needs to remember a state, such as the current counter value. For that reason I called the signal counter_reg , just to make it clear that the value is stored in a register. Although I&amp;#39;ve declared it as an integer, the synthesis tool will work out how many bits are needed to implement it in hardware. Similarly, an internal signal is needed to hold the LED states, so I called it led_reg . This is a two-bit vector, containing the individual bits led_reg(1) and led_reg(0) . -- INTERNAL SIGNALS signal counter_reg : integer range 0 to LED_DELAY_CONST - 1 := 0; -- LEDs are active-low: &amp;#39;1&amp;#39; = off, &amp;#39;0&amp;#39; = on. -- Start with only the rightmost LED on. signal led_reg : STD_LOGIC_VECTOR(1 downto 0) := &amp;quot;10&amp;quot;; Architecture Statement Region (Concurrent Statements) Here is where all the meat of the project resides. Unlike conventional software code, which executes instructions sequentially, a different way of thinking is needed with HDL. All the main statements underneath the following begin keyword are concurrent, meaning they operate alongside one another rather than executing one after the other. When the design is synthesized, these statements describe hardware that operates in parallel within the FPGA. There are two main elements in this example. begin The first element is a concurrent signal assignment, which effectively describes a permanent connection from the internal LED register outputs to the LED output ports declared at the start of the VHDL. -- Continuously connect the internal LED register outputs to the LED signals led Save , to save the changes to that .rao file ( GAO Config File ). After that, I went into the Process pane, did a clean Synthesize, followed by a clean Place &amp;amp; Route, and then programmed the board as before. GAO did not work for me using SRAM load , so I selected Flash when programming the device. The LEDs blinked as before, i.e. the VHDL code was running fine. To connect to the embedded logic analyzer, I went to Tool-&amp;gt;Gowin Analyzer Oscilloscope , and selected the same value channel to connect to as I had used for the programmer, which in my case was numbered 289 . The logic analyzer pane appeared, and there was a blue icon to start a capture, and a ‘continuous capture’ icon next to that. The animated GIF here shows what I saw with the continuous capture. Summary Several of the Tang Nano boards were introduced in the first blog post. This second blog explored the Gowin software which is needed to build projects and transfer them onto the board. For creating projects targeting FPGAs such as those on Tang nano boards, the Gowin FPGA Designer software is quite user-friendly, and straightforward to use. It doesn’t take up much space on the PC either (ballpark 2 GB, which is small in FPGA world! Xilinx software takes up tenfold space). In this blog post, a VHDL project was created from scratch, to make a couple of LEDs perform a double-blinky sequence. The Gowin software was then used to synthesize the design, and graphical tools were used to set the pin and clock constraints, before doing the placement/routing. The programming went fine, but the Tang Nano boards are quirky in that a normal USB-C-to-C cable might not always work, and I don’t think the supplied USB-A-to-C cables are trustworthy either. Best to use your own known working USB-A-to-C cable. Finally, the ability to debug hardware in action, using the Gowin Analyzer Oscilloscope (GAO), was briefly explored. Thanks for reading!</description><category domain="https://community.element14.com/technologies/fpga-group/tags/GW1NR">GW1NR</category><category domain="https://community.element14.com/technologies/fpga-group/tags/tang%2bnano">tang nano</category><category domain="https://community.element14.com/technologies/fpga-group/tags/fpga">fpga</category><category domain="https://community.element14.com/technologies/fpga-group/tags/gowin">gowin</category><category domain="https://community.element14.com/technologies/fpga-group/tags/GW2AR">GW2AR</category><category domain="https://community.element14.com/technologies/fpga-group/tags/GW1NZ">GW1NZ</category><category domain="https://community.element14.com/technologies/fpga-group/tags/GAO">GAO</category><category domain="https://community.element14.com/technologies/fpga-group/tags/fpga%2bbasics">fpga basics</category></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=8d40f052-983e-42a6-9a50-0f8f2369dc12</link><pubDate>Sun, 11 Oct 2026 14:17:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8d40f052-983e-42a6-9a50-0f8f2369dc12</guid><dc:creator>shabaz</dc:creator><description>Hi Michael, I had the identical question to yours, how to adjust any IP that&amp;#39;s already been created! : ) ChatGPT helped (i.e. that there is an icon to click that looks like a folder). That was unintuitive in the Gowin app, but once you know you know as you say. . I&amp;#39;ve not tried the VGA example so far. Regarding AI, I&amp;#39;m using a combination of two, ChatGPT initally usually, since it&amp;#39;s low-cost (I have the &amp;#39;plus&amp;#39; level which is the basic paid one, about $20 per month), and hard to use that up fully although there is a file upload limit I learned a few days ago.. but not too bad, I had to wait an hour, but in the meantime I could simply paste the file contents into the chat. (2) for projects where a lot of coding is needed, Antigravity (but I&amp;#39;ve heard good things about Claude, but not tried it so far). The workflow I&amp;#39;m using is here: (+) Using Antigravity with a Real Project: A Practical Workflow - element14 Community and it&amp;#39;s quite easy to exceed the limit with the $20 account (but it is possible to buy more tokens but I try to avoid that). I&amp;#39;m currently trying to get this app improved, so I tried this long prompt into ChatGPT (and uploaded my entire project source code): (1) If no Tang board is connected, and the user clicks on Single or Run, it&amp;#39;s not possible to stop, and close does display the closing message, but it never closes. I have to Ctrl-C in the Powershell that launched the app, to close it. It probably needs to display a message, or not allow Single or Run to be clicked, if the board is not attached. (2) Does the code indicate to the user if there&amp;#39;s no jtagserver running and no Programmer folder? It should probably prompt the user on startup, to either launch that, or to place that folder. But continue running the program regardless, don&amp;#39;t exit. (3) The app needs an icon, currently it has the default Flutter icon. Please create an appropriate one. I have attached a possible example. (4) Change the minimum vertical height of the app to be about 50% of whatever the current allowable vertical height is, so we can check out the behaviour when the number of signals are too many to fit on the screen simultaneously. (5) What happens if there are more signals than will fit in the view vertically? My feeling is that when the RAO file is opened, show the signal names and sizes in the Signals column. I suspect the signals and waveform viewer will need to be scrollable vertically (but don&amp;#39;t waste space on a vertical scrollbar) but only if performance is not impacted. (6) Implement a per-project config file, that automatically gets saved in the .rao folder, with the same name as the .rao file (minus the .rao suffix), but with _opengwscope_config.json (or .xml) appended. That file ought to contain a checksum of the .rao file, so that if the .rao file ever changes, we know about it. (7) When stopped/not running, it should be possible to click on the text &amp;quot;Signals&amp;quot; (don&amp;#39;t make it look like a button, that&amp;#39;s clutter) and a popup should show a scrollable table, and allow the user to choose which signals to show or hide, using check-boxes (and have a select all/select none), and also have up/down buttons to choose the order, and also a reset button. When the user navigates away, then these settings should be stored in that config file mentioned in point 6 above, and that file can be loaded automatically if present, when the .rao file is loaded. I think that will be quite clean behaviour, but if this config file does not match the .rao file then the ordering/enablement that is saved in the config file can be deleted and ignored, since it doesn&amp;#39;t match the .rao file, and the user will need to do that from scratch. (8) When not running, for all signals with width 2 or more, in the Signals list, there should be a way to choose the presentation. For example, allow hex, decimal, signed decimal (where it uses the most significant bit as the sign), ASCII (if the number of bits are 7 or 8), I think that is sufficient, but if you think there are other low-hanging fruit presentation options that should be present, then add them, provided they don&amp;#39;t impact performance to any noticeable extent. At some point state names would be extremely useful (they could get stored in the same config file) so design such that this is not ruled out, so it can be done in a later phase. It has returned me a modified bundle, so I&amp;#39;m about to test now, I&amp;#39;m sure there will be bugs but I want to get it to something stable and then I&amp;#39;ll switch to AntiGravity for the rest of the features (e.g. Find, save in a format that can be used with other apps, etc).</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=95d61b35-df94-48f7-a084-04df43d552ed</link><pubDate>Sun, 11 Oct 2026 13:51:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:95d61b35-df94-48f7-a084-04df43d552ed</guid><dc:creator>michaelkellett</dc:creator><description>Very good - which AI are you using ? I&amp;#39;ve never liked the built in logic analyser things in Lattice Diamond or Xilinx Vivado (found they often messed up the design and made timing closure fail). I prefer to use simulation to the max and add my own instrumentation if required. I&amp;#39;ve been immersed in Aldec and Viavado for the last three and abit weeks so thought I&amp;#39;d take a little break an look at the Gowin toolsand maybe get my Tang Primer 25K going. Now that you are established as the E14 GoTo for Gowin: - it needed three bites for Claude to help work out how to tweak the IP in the Gowin Fifo example. (Open the IP generator and then open the .ipc file for the IP.) It&amp;#39;s not that terrible if you know how but there doesn&amp;#39;t seem to be any help in the IDE. Is there a better way ? And what does the vga text example actually do ???? MK</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=157367f3-7384-4d03-bfb4-55013385afde</link><pubDate>Sun, 11 Oct 2026 06:00:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:157367f3-7384-4d03-bfb4-55013385afde</guid><dc:creator>shabaz</dc:creator><description>There&amp;#39;s an &amp;quot;oscilloscope&amp;quot; feature with the Gowin software, for live troubleshooting. It instruments the project with attachments to all the signals of interest, so that when the FPGA runs, it sends those signals to the PC. While their app works, their display update rate was quite low, so I spent some time with the AI reverse-engineering the protocol, and came up with a nicer-looking app, although not as feature-rich as as the Gowin one.. but a lot faster though. I&amp;#39;ll create a GitHub repo for this when it&amp;#39;s got a few more features (like markers for instance). I copied some ideas from Rohde&amp;amp;Schwarz &amp;#39;scope displays, and have a similar history playback feature. This is the Gowin software (this is in a &amp;quot;Lite&amp;quot; setting, there is another mode with a lot more features like triggered captures, but I&amp;#39;ve not tried that:</description></item><item><title /><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas?CommentId=05da6449-dafd-4ffb-acb0-33148c831b46</link><pubDate>Fri, 09 Oct 2026 13:33:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:05da6449-dafd-4ffb-acb0-33148c831b46</guid><dc:creator>michaelkellett</dc:creator><description>Hello Shabaz, That&amp;#39;s pretty good. Most of the vendor tools can produce some kind of block diagram output from the VHDL/Verilog but they are often hard to decipher. AMD/Xilinx have their block diagram design tool but it requires the use of the complicated AXI bus and is fine for linking up big dollops of pre-built IP. I use the block diagram editor in Aldec Active HDL which I find helps a great deal but it is very expensive. The upside of the Aldec tool is that the blocks generate code and the simulator annotates the blocks when it runs. Your approach requires more work from the operator but has the advantage of being free ! I use a different PCB CAD (easy PC) for drawing general purpose block diagrams and timing diagrams. MK</description></item></channel></rss>