<?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>Tang Nano 9k: Using Internal PSRAM in Gowin FPGAs</title><link>/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas</link><description>Table of Contents

 Introduction 
 PSRAM Overview 
 Adding Gowin IP 
 VHDL Walk-Through 

 Entity: Ports to the Outside World 
 PLL Component 
 PSRAM Component 
 Process: Asynchronous Reset 
 Function 
 Process: Registered Portion 

 Read Operation Underway</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Tang Nano 9k: Using Internal PSRAM in Gowin FPGAs</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas</link><pubDate>Tue, 13 Oct 2026 14:42:39 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:777db40d-df82-4686-8796-456a9951fa69</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;One thing I&amp;#39;m having difficulty with;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="233" src="/resized-image/__size/1662x466/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-777db40d-df82-4686-8796-456a9951fa69/PicoScope_5F00_FMbW0ehJef.png" width="831" /&gt;&lt;/p&gt;
&lt;p&gt;Testbed photo for those interested.. I was able to get &lt;a href="https://github.com/shabaz123/tang_nano_examples/tree/main/uart_loopback" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;UART working&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="466" src="/resized-image/__size/1242x932/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-777db40d-df82-4686-8796-456a9951fa69/psram_2D00_testbed.jpg" width="621" /&gt;&lt;/p&gt;
&lt;p&gt;I only had 10-way header/socket pins unfortunately. Also, I&amp;nbsp;avoided blocking the&amp;nbsp;TFT connector area in case I ever purchase that.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="424" src="/resized-image/__size/1132x848/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-777db40d-df82-4686-8796-456a9951fa69/tnano_2D00_header_2D00_pins.jpg" width="566" /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30277&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Tang Nano 9k: Using Internal PSRAM in Gowin FPGAs</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas</link><pubDate>Sun, 11 Oct 2026 06:00:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:777db40d-df82-4686-8796-456a9951fa69</guid><dc:creator>shabaz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;There&amp;#39;s an &amp;quot;oscilloscope&amp;quot; feature with the Gowin software, for live troubleshooting. It instruments the project&amp;nbsp;with attachments to all the signals of interest, so that when the FPGA runs, it sends those signals to the PC.&lt;/p&gt;
&lt;p&gt;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,&amp;nbsp;and&amp;nbsp;have a&amp;nbsp;similar history playback feature.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="605" src="/resized-image/__size/1800x1210/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-777db40d-df82-4686-8796-456a9951fa69/opengwscope_5F00_demo.gif" width="900" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="401" src="/resized-image/__size/1344x802/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-777db40d-df82-4686-8796-456a9951fa69/gao_2D00_demo.gif" width="672" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;img src="https://community.element14.com/aggbug?PostID=30277&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Tang Nano 9k: Using Internal PSRAM in Gowin FPGAs</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas</link><pubDate>Fri, 09 Oct 2026 08:54:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:777db40d-df82-4686-8796-456a9951fa69</guid><dc:creator>michaelkellett</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great blog Shabaz.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve installed but not used the latest Gowin tools so nice to see what they do.&lt;/p&gt;
&lt;p&gt;Where are you getting the block diagrams - is that an output from the Gowin tools ?&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30277&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Tang Nano 9k: Using Internal PSRAM in Gowin FPGAs</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/tang-nano-9k-using-internal-psram-in-gowin-fpgas</link><pubDate>Thu, 08 Oct 2026 23:58:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:777db40d-df82-4686-8796-456a9951fa69</guid><dc:creator>dang74</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks&amp;nbsp;[mention:b0bc65b9ecdc4307bd967592f00e340a:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp;the Gowin Designer software looks pretty good.&amp;nbsp; I am glad that the design process isn&amp;#39;t limited to command line.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30277&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>