<?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>Building (and testing) the Cheap and Tiny FPGA board.</title><link>/technologies/fpga-group/b/blog/posts/building-and-testing-the-cheap-and-tiny-fpga-board</link><description>Those of you with long memories will remember the first blog about this board: Ultra cheap and Tiny FPGA Board I&amp;#39;ve built up a couple of boards and got them running some very simple start up software and VHDL.The good news is that there are o...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Building (and testing) the Cheap and Tiny FPGA board.</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/building-and-testing-the-cheap-and-tiny-fpga-board</link><pubDate>Mon, 31 Dec 2018 22:10:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e2fd130d-6b8a-40de-8fbd-18cddac8ab49</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very good post.&lt;/p&gt;&lt;p&gt;Great detective work in finding a good option.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6223&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building (and testing) the Cheap and Tiny FPGA board.</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/building-and-testing-the-cheap-and-tiny-fpga-board</link><pubDate>Mon, 31 Dec 2018 20:06:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e2fd130d-6b8a-40de-8fbd-18cddac8ab49</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Michael,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It looks like a fun board : )&lt;/p&gt;&lt;p&gt;I&amp;#39;m not too great on macros, (kind of used to quickly closing any header file, if I cant see it then it doesn&amp;#39;t exist : )&lt;/p&gt;&lt;p&gt;so a guess is something to do with needing to split the comma during a first pass, but maybe the GPIO0 define is preventing that unless it is done in a second macro? &lt;/p&gt;&lt;p&gt;I tried this on my PC, since curiosity got the better of me..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=%23include+%3Cstdio.h%3E%0A%0A%23define+LED+GPIO0%2C4%0A%2F%2F+comment+out+the+two+macros+for+now%0A%2F%2F%23define+GPIO%28g%2C+p%29+GPIO_%28g%2C+p%29%0A%2F%2F%23define+GPIO_%28g%2C+p%29+g%0A%0A%2F%2F%23define+PIN%28g%2C+p%29+PIN_%28g%2C+p%29%0A%2F%2F%23define+PIN_%28g%2C+p%29+p%0A%0A%2F%2F+try+just+single+macros%3A%0A%23define+GPIO%28g%2C+p%29+g%0A%23define+PIN%28g%2C+p%29+p%0A%0A%0A%23define+GPIO0++++%28%28mxc_gpio_regs_t*%29MXC_BASE_GPIO0%29%0A%0A%0A%23define+PIN_SET%28p%29+%28GPIO%28p%29-%3Eout_set+%3D+1+%3C%3C+PIN%28p%29%29%0A%23define+PIN_CLR%28p%29+%28GPIO%28p%29-%3Eout_clr+%3D+1+%3C%3C+PIN%28p%29%29%0A%0Atypedef+struct+bob%0A%7B%0A++char+out_set%3B%0A++char+out_clr%3B%0A%7D+mxc_gpio_regs_t%3B%0A%0A%0Amxc_gpio_regs_t+reg%3B%0Amxc_gpio_regs_t*+MXC_BASE_GPIO0%3B%0A%0Aint%0Amain%28void%29%0A%7B%0A++MXC_BASE_GPIO0%3D%26reg%3B%0A++MXC_BASE_GPIO0-%3Eout_set%3D0%3B++%2F%2F+set+to+some+initial+value%0A++MXC_BASE_GPIO0-%3Eout_clr%3D0%3B%0A%0A++PIN_SET%28LED%29%3B++%2F%2F+try+it+out%21%0A%0A++printf%28%22out_set+is+0x%25x%5Cn%22%2C++MXC_BASE_GPIO0-%3Eout_set%29%3B%0A%0A%0A++return%280%29%3B%0A%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For me, the single macro seems to give the right result, it prints out_set is 0x10) but this is with gcc on x86.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6223&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building (and testing) the Cheap and Tiny FPGA board.</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/building-and-testing-the-cheap-and-tiny-fpga-board</link><pubDate>Mon, 31 Dec 2018 16:24:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e2fd130d-6b8a-40de-8fbd-18cddac8ab49</guid><dc:creator>genebren</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very nice update on this tiny board. Almost twelve years ago I ran into the exact same problem on my first attempt using ARM based microprocessors.&amp;nbsp; After many experiments I was able to get up to the magical 8MHz toggle rate using a peripheral clock rate of 48MHz.&amp;nbsp; I was shocked and dismayed with such a low rate, as I had designed a whole system around the concept of getting much faster clocking.&amp;nbsp; Oh well, at least you have an FPGA ready to handle faster clocks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6223&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building (and testing) the Cheap and Tiny FPGA board.</title><link>https://community.element14.com/technologies/fpga-group/b/blog/posts/building-and-testing-the-cheap-and-tiny-fpga-board</link><pubDate>Mon, 31 Dec 2018 16:18:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e2fd130d-6b8a-40de-8fbd-18cddac8ab49</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I’m trying to break the macro riddle, to see why it is multi step. On paper because I’m away from compilers until Sunday.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;An idea for a breakout board that’s FPGA-interesting? 2 DACs, so you can build a dsp that takes digitised sound in and then manipulates the signals?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6223&amp;AppID=19&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>