<?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>MOS 6526 CIA as a FPGA</title><link>/members-area/personalblogs/b/blog/posts/mos-6526-cia-as-a-fpga</link><description>Hello all! It&amp;#39;s been awhile since perhaps I have posted anything interesting. There are many projects and such I have on back burns that I eventually want to catch up on, but naturally, when i do want to, something that I use frequently and is of gre</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: MOS 6526 CIA as a FPGA</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/mos-6526-cia-as-a-fpga</link><pubDate>Wed, 11 Jul 2018 21:26:47 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7f21b9e1-0c49-4052-9bef-e107efba5827</guid><dc:creator>genebren</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great project.&amp;nbsp; I had to do a similar thing many years ago when a product that our company built relied on an old IEEE controller chip from Intel.&amp;nbsp; We ran out of good choices to procure these chips so we decided to build one from a FPGA.&amp;nbsp; We had no end of trouble in doing this, as the specifications for the controller did a very poor job of defining all of the signal timing.&amp;nbsp; In the end, we bailed and bought chips on the gray market (fairly good yield).&amp;nbsp; But, having said that, if you understand all of the timing and logic, it can be done.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have designed glue logic out of CPLD (smaller than most FPGAs) using VDHL to define the logic.&amp;nbsp; Here are some links to a few tutorials that I wrote on one of those projects.&amp;nbsp; This should help you to understand how to write logic for some of those blocks in your diagram:&lt;/p&gt;&lt;p&gt;&lt;a class="" href="https://www.embeddedrelated.com/showarticle/85.php" title="https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F85.php"&gt;https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F85.php&lt;/a&gt; - VHDL tutorial - A practical example - part 1 - Hardware&lt;/p&gt;&lt;p&gt;&lt;a class="" href="https://www.embeddedrelated.com/showarticle/87.php" title="https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F87.php"&gt;https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F87.php&lt;/a&gt; - VHDL tutorial - A practical example - part 2 - VHDL coding&lt;/p&gt;&lt;p&gt;&lt;a class="" href="https://www.embeddedrelated.com/showarticle/89.php" title="https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F89.php"&gt;https://www.element14.com/community/external-link.jspa?url=https%3A%2F%2Fwww.embeddedrelated.com%2Fshowarticle%2F89.php&lt;/a&gt; - VHDL tutorial - A practical example - part 3 - VHDL testbench&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As to some of your other questions on understanding your block diagram, I suggest that you write detailed questions, so people really understand what you are looking for.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Good luck. We are here to help.&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5103&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>