<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-238121121804895012</id><updated>2025-08-10T22:53:42.479+05:30</updated><category term="altera"/><category term="de1"/><category term="VHDL Codes"/><category term="cyclone2"/><category term="fpga"/><category term="de2"/><category term="synthesizable"/><category term="ii"/><category term="xilinx"/><category term="de2-70"/><category term="Arduino"/><category term="VHDL Codes. Tips"/><category term="segment"/><category term="seven"/><category term="virtex"/><category term="480"/><category term="640"/><category term="AVR"/><category term="Android"/><category term="atmega16"/><category term="attiny85"/><category term="code"/><category term="m4k"/><category term="rtc"/><category term="tutorial"/><category term="vga"/><category term="7"/><category term="Bluetooth"/><category term="atmel"/><category term="attiny"/><category term="attiny45"/><category term="bcd"/><category term="clock"/><category term="clock divider"/><category term="memory blocks"/><category term="microcontroller"/><category term="monitor"/><category term="real time clock"/><category term="sram"/><category term="vhdl"/><category term="0"/><category term="9999"/><category term="Basics"/><category term="Cell Phone"/><category term="Home Automation"/><category term="alarm"/><category term="counter"/><category term="decoder"/><category term="interface"/><category term="manual set"/><category term="onboard"/><category term="real"/><category term="spartan"/><category term="time"/><category term="vhdl fpga clock divider"/><category term="128x64"/><category term="GLCD"/><category term="Game"/><category term="Oscilloscope"/><category term="PONG"/><category term="Pacman"/><category term="Project"/><category term="RFID"/><category term="adapteva parallella"/><category term="bouncing ball"/><category term="calculator"/><category term="eeprom"/><category term="embedded c optimize code tips"/><category term="flash"/><category term="frequency counter"/><category term="keyboard"/><category term="lcd 26x2"/><category term="mario"/><category term="modified"/><category term="msp430"/><category term="posc4"/><category term="raspberry pi"/><category term="select"/><category term="selection"/><category term="space"/><category term="speed"/><category term="timing"/><category term="to"/><category term="verilog"/><title type='text'>Technology Simplified</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-1999370384917895795</id><published>2014-09-03T19:17:00.001+05:30</published><updated>2017-04-17T15:22:18.705+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="adapteva parallella"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="msp430"/><category scheme="http://www.blogger.com/atom/ns#" term="posc4"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry pi"/><category scheme="http://www.blogger.com/atom/ns#" term="verilog"/><category scheme="http://www.blogger.com/atom/ns#" term="vhdl"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>Website is being updated with new UI!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Hi &lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;E&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;veryone&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Pardon me. It took me very long to get back on managing this website. You all during some part of a time in your life, you get so busy that you forget what you actually need to do to keep up.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;I am moving whole code database on Github so you all will never face any problem with finding codes. Feel free to follow me on Github for updates.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;My Github: &lt;a href=&quot;https://github.com/prasadp4009&quot;&gt;https://github.com/prasadp4009&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Stay tuned for updates.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Thank you all. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/1999370384917895795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2014/09/new-updates-i-am-back.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1999370384917895795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1999370384917895795'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2014/09/new-updates-i-am-back.html' title='Website is being updated with new UI!'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-7260678792224830680</id><published>2013-03-19T11:21:00.003+05:30</published><updated>2013-03-19T11:22:45.683+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="atmega16"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny85"/><category scheme="http://www.blogger.com/atom/ns#" term="Bluetooth"/><category scheme="http://www.blogger.com/atom/ns#" term="microcontroller"/><category scheme="http://www.blogger.com/atom/ns#" term="Project"/><category scheme="http://www.blogger.com/atom/ns#" term="RFID"/><title type='text'>Blu ShopMart</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A Bluetooth and RFID based Shopping trolly concept designed for today&#39;s world. If any company wants to have this product, contact me on: prasadp4009@gmail.com&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/2Ga5XQ0qtQs&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/7260678792224830680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2013/03/blu-shopmart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7260678792224830680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7260678792224830680'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2013/03/blu-shopmart.html' title='Blu ShopMart'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/2Ga5XQ0qtQs/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-686176244807882522</id><published>2012-12-27T00:42:00.001+05:30</published><updated>2013-01-23T02:50:57.438+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="atmega16"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny45"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny85"/><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="Bluetooth"/><category scheme="http://www.blogger.com/atom/ns#" term="Cell Phone"/><category scheme="http://www.blogger.com/atom/ns#" term="Home Automation"/><category scheme="http://www.blogger.com/atom/ns#" term="microcontroller"/><title type='text'>BluHome v1.2: Home Automation with Voice commands using Android and Arduino with Bluetooth</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Everyone,&lt;br /&gt;
Here I come with another development in BluHome project. I have added a Speech or Voice command support to it.&lt;br /&gt;
&lt;br /&gt;
So if you say, &quot;turn on the lights&quot; it will switch on the light and &quot;turn on the fan&quot; for fan.&lt;br /&gt;
Right now I am using ICS Android. It uses online Google Voice Recognition, but in Jelly Bean 4.2 Google has given Offline Voice Recognition, which will make it fast and easy. Hoping for the best to come...&lt;br /&gt;
&lt;br /&gt;
Let me know the projects you want me to work on. Will work and post them for you.&lt;br /&gt;
&lt;br /&gt;
Mail me on: prasadp4009(AtGmailDotCom)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/Ll_DpJFJJ9w&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/686176244807882522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/12/bluhome-v12.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/686176244807882522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/686176244807882522'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/12/bluhome-v12.html' title='BluHome v1.2: Home Automation with Voice commands using Android and Arduino with Bluetooth'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Ll_DpJFJJ9w/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-7365583276782934181</id><published>2012-11-04T22:08:00.000+05:30</published><updated>2012-11-08T14:00:46.997+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="atmega16"/><category scheme="http://www.blogger.com/atom/ns#" term="atmel"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny45"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny85"/><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="Bluetooth"/><category scheme="http://www.blogger.com/atom/ns#" term="Cell Phone"/><category scheme="http://www.blogger.com/atom/ns#" term="Home Automation"/><title type='text'>Home Automation using Android, Bluetooth, AVR.. I call it Jarvis Switch</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just completed the circuit for Wireless AC device interface to be controlled via bluetooth. Software part is yet to be ready. Will post the Video Soon.. Started feeling like Tony Stark..(a bit though..)&lt;br /&gt;
&lt;br /&gt;
Video is Online..!!. &lt;/div&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/897w9AHIkww&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/7365583276782934181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/11/home-automation-using-android-bluetooth.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7365583276782934181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7365583276782934181'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/11/home-automation-using-android-bluetooth.html' title='Home Automation using Android, Bluetooth, AVR.. I call it Jarvis Switch'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/897w9AHIkww/default.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-1431146591256040413</id><published>2012-10-29T18:51:00.000+05:30</published><updated>2012-10-31T17:40:10.160+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="128x64"/><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="atmel"/><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="GLCD"/><category scheme="http://www.blogger.com/atom/ns#" term="Oscilloscope"/><title type='text'>Designed my Own Oscilloscope using Arduino and GLCD..!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just designed my Oscilloscope as I wished to buy one. Its working Awesome..!! gives all waveforms on GLCD, you can control the Time/Div. Also gives the Peak to Peak voltage.&lt;br /&gt;
&lt;br /&gt;
Will post video soon...!!&lt;br /&gt;
&lt;br /&gt;
VHDL Keyboard and LCD and 7seg project coming.. Keep visiting for updates.&lt;br /&gt;
&lt;br /&gt;
Video:&lt;br /&gt; &lt;br /&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/tOTx_lSTZNA&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/1431146591256040413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/10/designed-my-own-oscilloscope-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1431146591256040413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1431146591256040413'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/10/designed-my-own-oscilloscope-using.html' title='Designed my Own Oscilloscope using Arduino and GLCD..!!'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/tOTx_lSTZNA/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-6454726925583838754</id><published>2012-10-01T21:40:00.000+05:30</published><updated>2012-10-16T01:01:10.926+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="lcd 26x2"/><category scheme="http://www.blogger.com/atom/ns#" term="m4k"/><category scheme="http://www.blogger.com/atom/ns#" term="sram"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes. Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="virtex"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>16x2 LCD Controller in VHDL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Everybody. The LCD 16x2 code is ready. Just one bug which is still not recognized. You need to program code 2 times on board to see it work. I dont know why its behaving like that.&lt;br /&gt;
&lt;br /&gt;
The text data is stored in a HEX file and is loaded onto the ROM of 32x8 byte size. It can be reconfigured easily.&lt;br /&gt;
&lt;br /&gt;
I will be uploading code in short of time with some new features.&lt;br /&gt;
&lt;br /&gt;
And after that be ready for a BMP decoder. Get ready with your pic to be seen on Monitor via FPGA.&lt;br /&gt;
&lt;br /&gt;
Updated:&lt;br /&gt;
&lt;br /&gt;
I didnt made&amp;nbsp; changes to code, if you program fpga 2 times without turning it off the code works(It worked on my DE1 board)&lt;br /&gt;
I have uploaded project compiled for DE1 board, mail me your quiries, and if anyone finds bug in code.&lt;br /&gt;
&lt;br /&gt;
Project zip Download: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/LCD16x2/LCD_test.zip&quot;&gt;LCD_TEST.zip&lt;/a&gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/6454726925583838754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/10/16x2-lcd-controller-in-vhdl.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/6454726925583838754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/6454726925583838754'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/10/16x2-lcd-controller-in-vhdl.html' title='16x2 LCD Controller in VHDL'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-9070895738459629612</id><published>2012-09-28T23:59:00.002+05:30</published><updated>2012-09-28T23:59:59.750+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="480"/><category scheme="http://www.blogger.com/atom/ns#" term="640"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="m4k"/><category scheme="http://www.blogger.com/atom/ns#" term="monitor"/><category scheme="http://www.blogger.com/atom/ns#" term="Pacman"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes. Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="virtex"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>Another VHDL game... PacMan</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Everybody, hope you must have liked the PONG and Alarm Clock codes.&lt;br /&gt;
&lt;br /&gt;
This is another video of PacMan game I designed, with storing the sprite images of fruit and PacMan in ROM and retrieving them accordingly. Heres video of it. Enjoy VHDL.&lt;br /&gt;
&lt;br /&gt;
More Codes ahead.&lt;br /&gt;
&lt;br /&gt;
Keep Following..!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/zMPDkNG-hhM?list=UUPXE0PtJM_QfuihPNfva8yA&amp;amp;hl=en_US&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt; 
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/9070895738459629612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/another-vhdl-game-pacman.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/9070895738459629612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/9070895738459629612'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/another-vhdl-game-pacman.html' title='Another VHDL game... PacMan'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/zMPDkNG-hhM/default.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2689137523261403063</id><published>2012-09-20T02:25:00.003+05:30</published><updated>2012-09-20T02:26:51.777+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="alarm"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="clock"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="real time clock"/><category scheme="http://www.blogger.com/atom/ns#" term="rtc"/><category scheme="http://www.blogger.com/atom/ns#" term="segment"/><category scheme="http://www.blogger.com/atom/ns#" term="seven"/><category scheme="http://www.blogger.com/atom/ns#" term="spartan"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes. Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="vhdl fpga clock divider"/><category scheme="http://www.blogger.com/atom/ns#" term="virtex"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>RTC Clock with Alarm in VHDL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is the code for RTC clock with manual setting and Alarm fuction. The video is uploaded on youtube. You can follow it for operation details.&lt;br /&gt;
&lt;br /&gt;
The code is standard with 24MHz input clk. It also has AMPM function which can be set while setting clock. The clock is free running and Alarm can be set on go. It is a new corrected code over Manual Set problem in previous code. &lt;br /&gt;
&lt;br /&gt;
The code files are given below: (The .sof file is precompiled for DE1 board and can be directly programmed to it.)&lt;br /&gt;
&lt;br /&gt;
Project Archieve: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/DIGICLOCK/Digi%20Clock.zip&quot;&gt;DigiClock.zip&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Video:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://2.gvt0.com/vi/N6FlKTj_96I/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/N6FlKTj_96I&amp;fs=1&amp;source=uds&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;embed width=&quot;640&quot; height=&quot;480&quot;  src=&quot;http://www.youtube.com/v/N6FlKTj_96I&amp;fs=1&amp;source=uds&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2689137523261403063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/rtc-clock-with-alarm-in-vhdl.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2689137523261403063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2689137523261403063'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/rtc-clock-with-alarm-in-vhdl.html' title='RTC Clock with Alarm in VHDL'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2266058578765566684</id><published>2012-09-20T02:10:00.000+05:30</published><updated>2012-09-20T02:10:03.992+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="480"/><category scheme="http://www.blogger.com/atom/ns#" term="640"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="Game"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="PONG"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="vga"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes. Tips"/><title type='text'>PONG Game in VHDL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hello Everybody&lt;/span&gt;. So after getting so many requests about PONG, I made it OPEN-SOURCE now. Its my first game and completely working. I have uploaded the video already, you can check it on youtube.&lt;br /&gt;
&lt;br /&gt;
I have compiled the project, for DE1 board users a pre-compiled file is with name Ballm.sof.&lt;br /&gt;
All the vhdl files required are given, the system clock frequency is 50MHz. A PLL is used for generation of 25MHz as clock to VGAsync. (I have added modified VGAS_DE2 file for DE2 users whose VGA controller has &quot;blank&quot; pin.)&lt;br /&gt;
&lt;br /&gt;
So Enjoy PONG then. And yes donate me if you like my projects. In India the paypal Donate facility is disabled so you can send on my mail prasadp4009@gmail.com if you wish to.&lt;br /&gt;
&lt;br /&gt;
If you face any problems working with codes, feel free to mail me at prasadp4009@gmail.com&lt;br /&gt;
&lt;br /&gt;
More projects on way.&lt;br /&gt;
&lt;br /&gt;
Enjoy Programming..!!&lt;br /&gt;
&lt;br /&gt;
The game files are as below.&lt;br /&gt;
&lt;br /&gt;
Compiled file for DE1 users: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/Ballm.sof&quot;&gt;Ballm.sof&lt;/a&gt;&lt;br /&gt;
Top level entity: &lt;a href=&quot;http://db.tt/ElOE80Cl&quot;&gt;PONG.vhd&lt;/a&gt;&lt;br /&gt;
Component files: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/sec_clk.vhd&quot;&gt;sec_clk.vhd&lt;/a&gt;, &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/seg7.vhd&quot;&gt;seg7.vhd&lt;/a&gt;, &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/manu_clk.vhd&quot;&gt;manu_clk.vhd&lt;/a&gt;&lt;br /&gt;
VGAsync files: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/VGAS_DE2.vhd&quot;&gt;VGAS_DE2.vhd&lt;/a&gt;, &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/VGAS.vhd&quot;&gt;VGAS.vhd&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Project Zip: &lt;a href=&quot;http://dl.dropbox.com/u/38289125/PONG/Pong.zip&quot;&gt;Pong.zip&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Video:&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://3.gvt0.com/vi/G_UW7JLT-Es/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/G_UW7JLT-Es&amp;fs=1&amp;source=uds&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;embed width=&quot;640&quot; height=&quot;480&quot;  src=&quot;http://www.youtube.com/v/G_UW7JLT-Es&amp;fs=1&amp;source=uds&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2266058578765566684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/pong-game-in-vhdl.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2266058578765566684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2266058578765566684'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/09/pong-game-in-vhdl.html' title='PONG Game in VHDL'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2517954914587689425</id><published>2012-06-22T15:07:00.001+05:30</published><updated>2012-06-22T15:07:57.715+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="vhdl fpga clock divider"/><title type='text'>Additional info about Clock Divider</title><content type='html'>&lt;div&gt;&lt;p&gt;Hello Coders.&lt;br&gt;
Its a long time I am posting. Busy in some things actually so didnt got time to update.&lt;/p&gt;
&lt;p&gt;Anyway. I am posting this for our fellow coders who were encountering problem while simulating the code.&lt;/p&gt;
&lt;p&gt;Problem: Getting slight diffrence in frequency (a bit lower) than desired.&lt;/p&gt;
&lt;p&gt;Reason: The reason of this is the propogation delay of logic gates. As we are using adder and comparator in code for dividing frequency. This adds a slight delay at o/p. This can be easily observed in simulator.&lt;/p&gt;
&lt;p&gt;Solution: Manipulate your input constant by some factor and simulate till you get desired result as we cant avoid propogation delay.&lt;/p&gt;
&lt;p&gt;Hope you got it. If still not, mail me.&lt;/p&gt;
&lt;p&gt;August will be a month of New Exciting projects. Includes all Hacking Arduino software. Android programming and VHDL. KEEP CHECKING.....&lt;/p&gt;
&lt;p&gt;HAVE A GREAT TIME.&lt;/p&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2517954914587689425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/06/additional-info-about-clock-divider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2517954914587689425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2517954914587689425'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/06/additional-info-about-clock-divider.html' title='Additional info about Clock Divider'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-3030212780323199214</id><published>2012-01-15T21:09:00.001+05:30</published><updated>2013-05-28T20:50:34.724+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="0"/><category scheme="http://www.blogger.com/atom/ns#" term="9999"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="bcd"/><category scheme="http://www.blogger.com/atom/ns#" term="counter"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="virtex"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>0 to 9999 Up Down Counter with diffrent logic.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The code is designed using the &#39;VHDL function&#39; to convert integer to bcd, more specifically binary to bcd.&lt;br /&gt;
&lt;br /&gt;
Features:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Clock based as well as manual count&lt;/li&gt;
&lt;li&gt;Up and down count controlled using switch&lt;/li&gt;
&lt;li&gt;Push button to count manually&lt;/li&gt;
&lt;li&gt;LED to display count mode&lt;/li&gt;
&lt;li&gt;Asynchronous reset&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Post your comments, queries and suggestions&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
[Download links for project files are given below]&lt;br /&gt;
Check Download Section or download from below.&lt;br /&gt;
&lt;br /&gt;
DE1 complete project: &lt;a href=&quot;http://www.4shared.com/zip/hzW4mmiZ/BCDCOUNTER.html&quot;&gt;BCDUDOWNCOUNTER.zip&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Main entity: &lt;a href=&quot;http://www.4shared.com/file/-Dr7E0O3/bcd_up_down_counter.html&quot;&gt;bcd_up_down_counter.vhd&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Components: &lt;a href=&quot;http://www.4shared.com/file/z0cT1qv9/manu_clk.html&quot;&gt;manu_clk.vhd&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://www.4shared.com/file/6fdB6WG-/seg7.html&quot;&gt;seg7.vhd&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/3030212780323199214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/01/0-to-9999-up-down-counter-with-diffrent.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/3030212780323199214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/3030212780323199214'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2012/01/0-to-9999-up-down-counter-with-diffrent.html' title='0 to 9999 Up Down Counter with diffrent logic.'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-4489744849614865603</id><published>2011-12-28T16:16:00.001+05:30</published><updated>2011-12-28T16:20:45.281+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="atmega16"/><category scheme="http://www.blogger.com/atom/ns#" term="atmel"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny45"/><category scheme="http://www.blogger.com/atom/ns#" term="attiny85"/><category scheme="http://www.blogger.com/atom/ns#" term="AVR"/><category scheme="http://www.blogger.com/atom/ns#" term="eeprom"/><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="memory blocks"/><category scheme="http://www.blogger.com/atom/ns#" term="microcontroller"/><category scheme="http://www.blogger.com/atom/ns#" term="select"/><category scheme="http://www.blogger.com/atom/ns#" term="selection"/><category scheme="http://www.blogger.com/atom/ns#" term="space"/><category scheme="http://www.blogger.com/atom/ns#" term="speed"/><category scheme="http://www.blogger.com/atom/ns#" term="sram"/><title type='text'>Knowing your AVR ATmega or ATtiny microcontroller</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Posting after a long break.&lt;br /&gt;
&lt;br /&gt;
Anyway, I suppose you are a bit familier with microcontrollers and what they do. So this post is all about choosing microcontroller for your project.&lt;br /&gt;
&lt;br /&gt;
See, before selecting any microcontroller you should point out some things:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;The pin numbers and device interfaced:&lt;/li&gt;
&lt;/ol&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Number of Inputs and Outputs required.&lt;/li&gt;
&lt;li&gt;Types of Input and Output. (Analog, PWM, Digital)&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the first thing you should check that what kind of sensors you are using, LCDs, Buttons, Speakers etc. This gives you idea about the number of pins required.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ex. Say you are using POT as Analog input (1 ADC pin required) and connected it to a Speaker which has PWM as input(1 PWM pin required). For this you can choose ATtiny45 or 85 which has 8 pin interface with 6 pin usable. Theres no need to select ATmega controllers.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 2. The SPEED and POWER funda: &lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Speed required for your project. Like if it is using math library and you are using Multiplication in your code. You should select the higher speed controllers. For simple button interface any low speed grade controller will work.&lt;/li&gt;
&lt;li&gt;Here theres a twist, ATmel provides wide variety in selection of controller. Say your application works on low voltage and you still want speed.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;For Ex. If you want a 16MHz at 5v and you buy ATmega8L (L stands for low voltage compaitability). Then you are going to face probelm as ATmega8 supports 16MHz at 5v. But ATmega8L supports only 12MHz at 5v and 8 MHz at 3.3v. And also ATmega8 dont work at 3.3v logic.&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Another example say you want 16MHz at 3.3v then theres another child in ATmega8 family i.e. ATmega8A (A for Advanced(may be :P)) which works at 16MHz and at 3.3v logic.&lt;br /&gt;
&lt;br /&gt;
So before selecting and buying microcontrollers just go to ATmel site check all the datasheets for the childs of family and you will be able to select perfect one for your project.&lt;br /&gt;
&lt;br /&gt;
One more thing to be noted is, when you buy a uC it comes with 1MHz internal clock pre-programmed. So, if you want to use 8MHz internal RC oscillator you have to set the fuses of uC. Similary for external crystal too.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Another is SPACE:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here we concider 3 main Memories.&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;FLASH&lt;/li&gt;
&lt;li&gt;EEPROM&lt;/li&gt;
&lt;li&gt;SRAM&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp; Flash memory for your program size. If its big try to optimize it first. If doesnt reduce further dont worry ATmel developed some fat babies like ATmega128 or ATmega256 for that.&lt;br /&gt;
&lt;br /&gt;
EEPROM memory. If you are reusing too much data and storing it again you should keep check on the amount of data you are using and then the EEPROM to store it. (Use EEPROM only when you are storing Database values as the memory access time is higher.)&lt;br /&gt;
&lt;br /&gt;
SRAM. If you dealing with big Strings or Floating point numbers choose the uC who have enough RAM to process your data readily.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SO thats all about Selection. We will start work Shortly. Till then Enjoy..!! :)&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/4489744849614865603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/12/knowing-your-avr-atmega-or-attiny.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4489744849614865603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4489744849614865603'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/12/knowing-your-avr-atmega-or-attiny.html' title='Knowing your AVR ATmega or ATtiny microcontroller'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-4398373032400051166</id><published>2011-11-10T10:56:00.001+05:30</published><updated>2011-11-10T10:58:03.824+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>VHDL Tutorials</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hello Coders.&amp;nbsp; I am uploading a step by step tutorials for VHDL and working with Altera boards.. Which includes basic projects from this site.. Compiling them.. Using onboard components..&lt;br /&gt;
&lt;br /&gt;
Do check them out on my youtube page.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s the link for Tutorial Playlist: &lt;a href=&quot;http://www.youtube.com/watch?v=x3sgK2HuCQg&quot;&gt;http://www.youtube.com/watch?v=x3sgK2HuCQg&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Suggest any modifications. I am going slow at some starting so everyone gets in phase easily.&lt;br /&gt;
&lt;br /&gt;
Mail your Queries @: prasadp4009@gmail.com&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/4398373032400051166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/11/vhdl-tutorials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4398373032400051166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4398373032400051166'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/11/vhdl-tutorials.html' title='VHDL Tutorials'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-5716592264115473830</id><published>2011-10-03T01:48:00.000+05:30</published><updated>2011-10-03T01:48:39.539+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="480"/><category scheme="http://www.blogger.com/atom/ns#" term="640"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="de2-70"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="monitor"/><category scheme="http://www.blogger.com/atom/ns#" term="spartan"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="timing"/><category scheme="http://www.blogger.com/atom/ns#" term="vga"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="virtex"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>Universal VGA Timing and Synchronizing Code</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I have just found this code which is used by Columbia University Students in their projects. i would like to share it with you.&lt;br /&gt;
&lt;br /&gt;
It works probably with all Terasic Altera FPGA boards, Xilinx FPGA boards etc.&lt;br /&gt;
The code is predesigned concidering 640x480 VGA resolution at 60Hz. But you can easily modify it using the VGA timing information from the site specified. &lt;br /&gt;
&lt;br /&gt;
Here are the links:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;For VGA timing&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;a href=&quot;http://martin.hinner.info/vga/timing.html&quot;&gt;http://martin.hinner.info/vga/timing.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;VGA_Timing.vhd&amp;nbsp; : &lt;a href=&quot;http://www.4shared.com/file/wdYoDlvR/vga_timing.html&quot;&gt;http://www.4shared.com/file/wdYoDlvR/vga_timing.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;Don&#39;t forget to vote on polls. Mail me if you have any querries or want to do project at &lt;i&gt;prasadp4009@vhdlcodes.com&lt;/i&gt; or &lt;i&gt;prasadp4009@gmail.com&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Enjoy Programming..!! &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/5716592264115473830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/10/universal-vga-timing-and-synchronizing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/5716592264115473830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/5716592264115473830'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/10/universal-vga-timing-and-synchronizing.html' title='Universal VGA Timing and Synchronizing Code'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-9095119964595191409</id><published>2011-09-03T09:39:00.000+05:30</published><updated>2011-09-03T09:39:33.189+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="alarm"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="calculator"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="de2"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="keyboard"/><category scheme="http://www.blogger.com/atom/ns#" term="mario"/><category scheme="http://www.blogger.com/atom/ns#" term="rtc"/><category scheme="http://www.blogger.com/atom/ns#" term="vga"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="xilinx"/><title type='text'>New Videos Check them Out..!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Mail me if you have any querries: prasadp4009@gmail.com&lt;br /&gt;
&lt;br /&gt;
The First Video is: Digital Alarm Clock&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/N6FlKTj_96I&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
2) Calculator using 16x2 LCD and Keyboard:&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/r5oemuDz6yc&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
3) PONG GAME:&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/G_UW7JLT-Es&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
4) Mario Bouncing on monitor;&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/vIy58Wkjwms&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/9095119964595191409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/09/new-videos-check-them-out.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/9095119964595191409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/9095119964595191409'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/09/new-videos-check-them-out.html' title='New Videos Check them Out..!!'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/N6FlKTj_96I/default.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2451240049345461987</id><published>2011-05-19T12:25:00.004+05:30</published><updated>2012-08-14T04:02:10.776+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="7"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="clock divider"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="frequency counter"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>Frequency counter in VHDL (Synthesizeble)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
Its Done...!! The Frequency Counter or Measurer is ready. You can measure any I/P frequency from 3Hz to 95KHz i.e. (95,000 Hz for DE1 board Cyclone II FPGA).(This can be diffrent for difrent FPGAs according to their propogation delays and other time factors). Above this value the FPGA gets unstable and show at-random values.&lt;br /&gt;
&lt;br /&gt;
There are 3 levels of Accuracy&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Hz.&lt;/li&gt;
&lt;li&gt;(displayed value) x 10 Hz.&lt;/li&gt;
&lt;li&gt;(displayed value) x 100 Hz.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;I have put a reset button, which is Pushbutton when clicked initiate the frequency measurement process. It then holds the value for user to read.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Right now the free-reading i.e. without any initialization, feature is not added. I will add that soon.&lt;br /&gt;
&lt;br /&gt;
Now, working with code :-&lt;br /&gt;
&lt;br /&gt;
To make the code easy I have used my 0 to 9999 counter code and just made some small changes in it. The Clk freq used is 24MHz.&lt;br /&gt;
&lt;br /&gt;
I created 4 files likewise,&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;freqcount.vhd (Top-level Entity)&lt;/li&gt;
&lt;li&gt;sec_clk.vhd (To generate the time window, which is used for accuracy)&lt;/li&gt;
&lt;li&gt;sec_clktry.vhd (Here I added this file for demo so as to generate frequency in circuit itself)&lt;/li&gt;
&lt;li&gt;seg7.vhd (Integer to 7-seg converter)&lt;/li&gt;
&lt;li&gt;freqcount.sof (Quartus II file only for DE1 board)&lt;/li&gt;
&lt;/ol&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Now, if you are measuring freq. which is below 9999 then follow the steps.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;In sec_clk.vhd file, keep the max_count=48000000.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;This will generate a 2 sec window (As i/p clock freq is 24MHz) in which the First second will be High i.e. &#39;1&#39; and Another second will be &#39;0&#39;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/li&gt;
&lt;li&gt;So the code I designed it as, when there is high i.e. &#39;1&#39; then for the i/p of freq to be measured for every high of that freq there is a count.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;When the time window goes to Low level i.e. &#39;0&#39; the counting stops. The counted value is then displayed on Seven seg and is in Hz.&lt;/li&gt;
&lt;li&gt;If you have querries about how I generated the time window check my Clock Divider project &lt;a href=&quot;http://www.vhdlcodes.com/2010/08/vhdl-code-for-clock-divider.html&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;To generate any freq to be measured follow the formula given below:&lt;/li&gt;
&lt;/ol&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; The time window is of 1 sec i.e. as the i/p clock is of 24MHz i.e.(24000000Hz) then for generation of 1 sec it should count till 24000000. Now say you want to generate freq of 90 Hz then,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; replace the&lt;i&gt; max_count &lt;/i&gt;value in &lt;b&gt;sec_clktry&lt;/b&gt; by&lt;br /&gt;
&lt;br /&gt;
max_count = 24000000/(freq you want at o/p)&lt;br /&gt;
&lt;br /&gt;
max_count = 24000000/90&lt;br /&gt;
&lt;br /&gt;
Then, max_count = 266666.66&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;Put max_count = 266666 in sec_clktry&amp;nbsp; &lt;/b&gt;&lt;/i&gt;&lt;/u&gt;for &lt;b&gt;90Hz&lt;/b&gt; freq.&lt;br /&gt;
&lt;br /&gt;
Now, when you run the code then the sec_clktry freq will be given to freq counter and it then gives you at o/p.&lt;br /&gt;
&lt;br /&gt;
If you want to measure any external freq. Then comment out the clki signal and sec_clktry component and portmap in architecture. And re instantiate the clki i/p in entity ports.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Now for measuring freq more than 9999 just change the value of max_count in sec_clk as follows,&lt;/li&gt;
&lt;/ul&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt; For freq x 10Hz accuracy, change max_count = 4800000 in &lt;i&gt;&lt;b&gt;sec_clk.vhd (This will generate 0.2 sec window).&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;For freq x 100 Hz accuracy, change max_count = 480000 in &lt;i&gt;&lt;b&gt;sec_clk.vhd (This will generate 0.02 sec window).&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
I soon will upload video with full description. If you have any querries mail me at&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;prasadp4009@gmail.com&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;prasadp4009@vhdlcodes.com&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;i&gt;&lt;b&gt;Download links:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://dl.dropbox.com/u/38289125/Frequency%20Counter/freqcount.vhd&quot;&gt;freqcount.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dl.dropbox.com/u/38289125/Frequency%20Counter/sec_clk.vhd&quot;&gt;sec_clk.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dl.dropbox.com/u/38289125/Frequency%20Counter/sec_clktry.vhd&quot;&gt;sec_clktry.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dl.dropbox.com/u/38289125/Frequency%20Counter/seg7.vhd&quot;&gt;seg7.vhd&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dl.dropbox.com/u/38289125/Frequency%20Counter/freqcount.sof&quot;&gt;freqcount.sof&lt;/a&gt; (For DE1 board only,Clock freq is 24MHz and&amp;nbsp; I/P freq to be measured is set at 93hz. i.e. max_count in sec_clktry is 258064.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;i&gt;Enjoy Programming...!! Keep looking, more projects on way.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Video:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;object height=&quot;390&quot; width=&quot;640&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/go2i2MOkiek&amp;hl=en_US&amp;feature=player_embedded&amp;version=3&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
&lt;embed src=&quot;http://www.youtube.com/v/go2i2MOkiek&amp;hl=en_US&amp;feature=player_embedded&amp;version=3&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; allowScriptAccess=&quot;always&quot; width=&quot;400&quot; height=&quot;390&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2451240049345461987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/05/frequency-counter-in-vhdl-synthesizeble.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2451240049345461987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2451240049345461987'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/05/frequency-counter-in-vhdl-synthesizeble.html' title='Frequency counter in VHDL (Synthesizeble)'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-7008657527757909043</id><published>2011-03-10T21:24:00.003+05:30</published><updated>2011-07-05T09:38:02.079+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="interface"/><category scheme="http://www.blogger.com/atom/ns#" term="m4k"/><category scheme="http://www.blogger.com/atom/ns#" term="memory blocks"/><category scheme="http://www.blogger.com/atom/ns#" term="onboard"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes. Tips"/><title type='text'>Initializing M4K blocks for RAM. (For Altera FPGA users)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hello Everybody.&lt;br /&gt;
&lt;br /&gt;
It seems you are having problem about how to initialize on-board memory using Megafunction Library and M4K blocks. (I am using Quartus II 10.1 SP1, but procees will be similar all other versions)&lt;br /&gt;
&lt;br /&gt;
So here are the steps of the solution:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Start Quartus II and open new project.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6dNqjTJiUwAblOtUvYOACACdsDb1bVIB7u3aRLS3gMluqgB3mwj7GhtMQBAusAjXlHb7L8vq1wVUxd4E6MsPazMv0HRzHDaiwqkf8YwZMKtQR43yqYOLdrvG9Z0TzzCOcrUrerMamMex4/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6dNqjTJiUwAblOtUvYOACACdsDb1bVIB7u3aRLS3gMluqgB3mwj7GhtMQBAusAjXlHb7L8vq1wVUxd4E6MsPazMv0HRzHDaiwqkf8YwZMKtQR43yqYOLdrvG9Z0TzzCOcrUrerMamMex4/s320/Clipboard01.jpg&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;Open the MegaFunction Wizard&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFyboOrHtCUZ4RAycEVfBfQoHLvnYLSzgUN-jFBdefyOMBdhQm_VFVzD48sDdXrjL1k_LfY-sSEt-6U7BW-x0a3WKVatiYcmx_I-HW6RjQcFALsiRUKZOqQPdNFEX7MmazYX29yCIg7kK_/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFyboOrHtCUZ4RAycEVfBfQoHLvnYLSzgUN-jFBdefyOMBdhQm_VFVzD48sDdXrjL1k_LfY-sSEt-6U7BW-x0a3WKVatiYcmx_I-HW6RjQcFALsiRUKZOqQPdNFEX7MmazYX29yCIg7kK_/s320/Clipboard02.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Select the &#39;Create New megaFunction&#39; Option&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXqQDAgP4lsr6PZxN5wnuGQw_a1ah4P3FL3o_YvXC26aDY24K4iXFdPk7WG3yWujQcPpSKVBJpgtxuwcutAJ-uleeyrifD904zH2eJ1YteZqjFc09sdtEpVWM9btqZqnOAtWPgFtRW_YeT/s1600/clipboard_10032011_204014.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXqQDAgP4lsr6PZxN5wnuGQw_a1ah4P3FL3o_YvXC26aDY24K4iXFdPk7WG3yWujQcPpSKVBJpgtxuwcutAJ-uleeyrifD904zH2eJ1YteZqjFc09sdtEpVWM9btqZqnOAtWPgFtRW_YeT/s320/clipboard_10032011_204014.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Select the Memory Compiler from list&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-zEPWzRsFwoZhQpcDBLwjy-NeKdywWCMcoTw5iZ80xv2CMAwKXNWTenQa6EMfaW8pBojhadLlQImIxvPEOGqcShmUeh4lmd_UuNCriE0cEdEguG0lAgaHbYmBIM0xoZzrkV68P_vuUC2r/s1600/clipboard_10032011_204030.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-zEPWzRsFwoZhQpcDBLwjy-NeKdywWCMcoTw5iZ80xv2CMAwKXNWTenQa6EMfaW8pBojhadLlQImIxvPEOGqcShmUeh4lmd_UuNCriE0cEdEguG0lAgaHbYmBIM0xoZzrkV68P_vuUC2r/s320/clipboard_10032011_204030.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Select RAM 1 Port and give name to output file&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglMw6CPYDS-H8bvMs_Cpo9Ejz_7OH-Boxll-9LWgPI4_pwnr6bDrlHd3CDQYb2UQdUpnthrP7OGQEwXZfuPRSlwtOJ2JA8WnM2uQZVz_OWPBTJP8Vj7-u2U2jG-Wzrh6-HAzX1x43kjfk5/s1600/clipboard_10032011_204039.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglMw6CPYDS-H8bvMs_Cpo9Ejz_7OH-Boxll-9LWgPI4_pwnr6bDrlHd3CDQYb2UQdUpnthrP7OGQEwXZfuPRSlwtOJ2JA8WnM2uQZVz_OWPBTJP8Vj7-u2U2jG-Wzrh6-HAzX1x43kjfk5/s320/clipboard_10032011_204039.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;After clicking Next, select the no. of bits per block (In this case its 4 bits)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk9COjFn7Q9hPWfq3ZM_nKGIFJDPof9bunQObYS022yjTfqJGnnbhOOFoCf-dm1oFEjg4PsjlEZWMunUyU3Loa2Ycp9-o2ScoHMby91j7NtJsqVQ1DyyB7j98rOkYtBHGwzhsv-jaeeFGE/s1600/clipboard_10032011_204110.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk9COjFn7Q9hPWfq3ZM_nKGIFJDPof9bunQObYS022yjTfqJGnnbhOOFoCf-dm1oFEjg4PsjlEZWMunUyU3Loa2Ycp9-o2ScoHMby91j7NtJsqVQ1DyyB7j98rOkYtBHGwzhsv-jaeeFGE/s320/clipboard_10032011_204110.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Select no. of words or blocks of 4-bits you want (In this case 32 blocks, I use &#39;blocks&#39; though &#39;words&#39; is proper term)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1m9V230UFsXFL1dCzlh4jjGmbRy1YWp6UHj4XlyuMFsfCDJu87BWHVK5kgrSQNJ2zsSR9-J9xHuSS2TgoZAmLy-vbbw3rdIjqoh_KFM2jHxIFoyuBgzEAeGZ9f3uplcQuCZTutfOmLtA/s1600/clipboard_10032011_204124.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1m9V230UFsXFL1dCzlh4jjGmbRy1YWp6UHj4XlyuMFsfCDJu87BWHVK5kgrSQNJ2zsSR9-J9xHuSS2TgoZAmLy-vbbw3rdIjqoh_KFM2jHxIFoyuBgzEAeGZ9f3uplcQuCZTutfOmLtA/s320/clipboard_10032011_204124.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Select the memory block type as M4K (It doesnt matter if you keep that Auto)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDIMjZP8jSFFtOY32rXYJe8y6gva_zHQM4jFx7RM_8TydGgm8sdXkWWEPQBRS5oaAT30C4spqwtbG8BtgWhS1YlPhgCjeccT0q7igA4Zr2MFGUZSC0sbxn5yAfQNosSbFMF1Z6eCe0R8YN/s1600/clipboard_10032011_204130.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDIMjZP8jSFFtOY32rXYJe8y6gva_zHQM4jFx7RM_8TydGgm8sdXkWWEPQBRS5oaAT30C4spqwtbG8BtgWhS1YlPhgCjeccT0q7igA4Zr2MFGUZSC0sbxn5yAfQNosSbFMF1Z6eCe0R8YN/s320/clipboard_10032011_204130.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Click Next. Dont change anything on this page&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTtjsXb_U5M7WuFZNwigi2z7KrvNoI6BHJrRmTT0R-sNGdsPPgl2Af8K-uf5Yx73EVmZxBqA0FXMRNWTknn9m5g7AO09CtVI3OcABm3IWBlkRy1dsZ-Gy3Ph4Fz_DY_PODZPMU57LGaxlL/s1600/clipboard_10032011_204149.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTtjsXb_U5M7WuFZNwigi2z7KrvNoI6BHJrRmTT0R-sNGdsPPgl2Af8K-uf5Yx73EVmZxBqA0FXMRNWTknn9m5g7AO09CtVI3OcABm3IWBlkRy1dsZ-Gy3Ph4Fz_DY_PODZPMU57LGaxlL/s320/clipboard_10032011_204149.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Now select the second option if you want to enter data in memory before programming&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg57acz4DdliEnWtoByu8-4lfknAgeHGoz-5vuTY9NsgrBzsizoNhQ-5eDzjFDuR1EU-g-J3kyhoOQixPUpoxNQao2adLb7x6PZzmN0rxsNU5RPE6dMERk7V7sdUBfRSPVWxE7jQAmwevXe/s1600/clipboard_10032011_204215.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg57acz4DdliEnWtoByu8-4lfknAgeHGoz-5vuTY9NsgrBzsizoNhQ-5eDzjFDuR1EU-g-J3kyhoOQixPUpoxNQao2adLb7x6PZzmN0rxsNU5RPE6dMERk7V7sdUBfRSPVWxE7jQAmwevXe/s320/clipboard_10032011_204215.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;To create hex file keep the MegaFunction window as it is and click on the File&amp;gt;New&amp;gt;Intel-hex File in Quartus II window&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVNhzXvn3YaPWFzSU4V-sBEy6ZZV8r5WAoDR83vqtV8oC1muGBH0gPyqDQB44z3klDPWlEghjSoapC0WxYdYutMTMS6qtE82Ukhwj9TA_J4WM3UCXqxS1JatANA6f6FvpKewvY5Njg7vkt/s1600/clipboard_10032011_204236.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVNhzXvn3YaPWFzSU4V-sBEy6ZZV8r5WAoDR83vqtV8oC1muGBH0gPyqDQB44z3klDPWlEghjSoapC0WxYdYutMTMS6qtE82Ukhwj9TA_J4WM3UCXqxS1JatANA6f6FvpKewvY5Njg7vkt/s320/clipboard_10032011_204236.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Then make the proper changes in words and wordsize field&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHYcM371GLeqA95HWBFRtuwlgh35wL4zmraaXc52yV6_wdnnhGRGbkqe58NvSyLo89SaWGtLme_GM4QnwkXXZ6EG0I5_FOsV47YwRvI_fgCiBvItKrxaKGiVZlQ5ubu3cW7Y7SHL64S75f/s1600/clipboard_10032011_204252.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHYcM371GLeqA95HWBFRtuwlgh35wL4zmraaXc52yV6_wdnnhGRGbkqe58NvSyLo89SaWGtLme_GM4QnwkXXZ6EG0I5_FOsV47YwRvI_fgCiBvItKrxaKGiVZlQ5ubu3cW7Y7SHL64S75f/s320/clipboard_10032011_204252.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Add whatever data you want in the respective blocks (It will only take a 4 bit no. as we have set the word size as 4)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWt9HYdBXPSjR4rYH16VhQZY3SVM3Tgtxw2m7IPC3bv0qrNgYKJgxVnWIV39rOtVVLUyYTrI_ZkF0JCVzThWohyphenhyphenyLLODb1MCf33guEx3pdz9iAQaG_nkPco2Kvbi8Bse7oJocqWvBYWTU2/s1600/clipboard_10032011_204529.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWt9HYdBXPSjR4rYH16VhQZY3SVM3Tgtxw2m7IPC3bv0qrNgYKJgxVnWIV39rOtVVLUyYTrI_ZkF0JCVzThWohyphenhyphenyLLODb1MCf33guEx3pdz9iAQaG_nkPco2Kvbi8Bse7oJocqWvBYWTU2/s320/clipboard_10032011_204529.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Save the file be any relevant name you want and then open the MegaFunction window and select the file&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuNn6PPfLU1it4Xf1lz4ISJoNcW_EZ_KvQd7v4rUmbFp9l_GXGLkMmUuyTiqruYqHqKGaglsfukR3QV_IJpFM3ATWCmuVZ-0jVHTKHT0lvrSRRv5o0BiWJOHJ-BQGTUw2kDXMiEXjIso7c/s1600/clipboard_10032011_204615.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuNn6PPfLU1it4Xf1lz4ISJoNcW_EZ_KvQd7v4rUmbFp9l_GXGLkMmUuyTiqruYqHqKGaglsfukR3QV_IJpFM3ATWCmuVZ-0jVHTKHT0lvrSRRv5o0BiWJOHJ-BQGTUw2kDXMiEXjIso7c/s320/clipboard_10032011_204615.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Click Next till you get the this window and select the Instantiation file option&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDNmL-m9q6wlEXtqJ9jRofeRpQOTXVVLmP2C5iaJj1TcoyJLEJiSsvIgiL9njQmqaS74AdPpj8mVNdEM_InFxfx0M0Yg-8I-sh5W1_NSYIwZBWZ7wHj5CVoD87-Gv_vtIuKhzrVgeag3Hq/s1600/clipboard_10032011_204640.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDNmL-m9q6wlEXtqJ9jRofeRpQOTXVVLmP2C5iaJj1TcoyJLEJiSsvIgiL9njQmqaS74AdPpj8mVNdEM_InFxfx0M0Yg-8I-sh5W1_NSYIwZBWZ7wHj5CVoD87-Gv_vtIuKhzrVgeag3Hq/s320/clipboard_10032011_204640.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Click finish and then open the Instantiation and Component file from File&amp;gt;Open&amp;gt;(Your destination of project)&amp;gt;*_inst.vhd and *.cmp&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJElMEyusQgzHsaRceJ4G280hzF8aBuESh2ER-_SghiBa-CGIEGtHPmh3Aje48yay3GURgceGRbhkqDNRUiykXv_1yyYltturgRVQkWV_jgpGBmDme7syjxtN8pP9-TFDCEnzdYXpUsE1y/s1600/clipboard_10032011_204609.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJElMEyusQgzHsaRceJ4G280hzF8aBuESh2ER-_SghiBa-CGIEGtHPmh3Aje48yay3GURgceGRbhkqDNRUiykXv_1yyYltturgRVQkWV_jgpGBmDme7syjxtN8pP9-TFDCEnzdYXpUsE1y/s320/clipboard_10032011_204609.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Then add the Code as follows and make necessary changes to the Port Map field as per your project specifications&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihWP7v1v3c4cyZkg-XTOxl-D6HH_fsRiyTjyGI5vk5-mnUTcQZz3PDhyphenhyphenMcF-pWIAUnm5OS4o26c3JjB519DvtWKZ9UxS1wXsZP1tudnUmsBAvcr5kI9Q2S785p-VDGUdhP42uRLmZEGldv/s1600/clipboard_10032011_204717.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihWP7v1v3c4cyZkg-XTOxl-D6HH_fsRiyTjyGI5vk5-mnUTcQZz3PDhyphenhyphenMcF-pWIAUnm5OS4o26c3JjB519DvtWKZ9UxS1wXsZP1tudnUmsBAvcr5kI9Q2S785p-VDGUdhP42uRLmZEGldv/s320/clipboard_10032011_204717.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkhd3WQdQxoeym5TmoINFdP20OlHLwmWWypOhLPr46NxB8RR7EMMGlx8oT7Kz5B-XYa-qnMv4sn8foEJoSfWD42Y45v4x1UNt_3iZFYei_LjWnlK-ZuQ6bD490j09IIp9QqFblV4RS7MZo/s1600/clipboard_10032011_204751.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkhd3WQdQxoeym5TmoINFdP20OlHLwmWWypOhLPr46NxB8RR7EMMGlx8oT7Kz5B-XYa-qnMv4sn8foEJoSfWD42Y45v4x1UNt_3iZFYei_LjWnlK-ZuQ6bD490j09IIp9QqFblV4RS7MZo/s320/clipboard_10032011_204751.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVU4-G7vWA5DlNhlqvKgLo_ZaOSTJqkI934YX9_EdhCwNTBGavIwZp5vuTpsm8M9FTrGoQtN5tPJzl2Brg8c2ofJYy5QPunZY6USwzjDE6dwd2opOU4f3V2nKldkbru8xuOR7VDcbJt0gp/s1600/clipboard_10032011_204816.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVU4-G7vWA5DlNhlqvKgLo_ZaOSTJqkI934YX9_EdhCwNTBGavIwZp5vuTpsm8M9FTrGoQtN5tPJzl2Brg8c2ofJYy5QPunZY6USwzjDE6dwd2opOU4f3V2nKldkbru8xuOR7VDcbJt0gp/s320/clipboard_10032011_204816.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6rMNAFqvwlz2JnE5ucvfCcMlLgSsrtR_e6waAMK3IhxD0mX-Wxq_rg9Q_L7XXWcrkHcCnPFZvMJdS-J4_9lf492D7x0D77zwaq388gtYY56LLWfrgiH8_Ul6iwfiadp03M3TIQzBQLUpS/s1600/clipboard_10032011_204822.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6rMNAFqvwlz2JnE5ucvfCcMlLgSsrtR_e6waAMK3IhxD0mX-Wxq_rg9Q_L7XXWcrkHcCnPFZvMJdS-J4_9lf492D7x0D77zwaq388gtYY56LLWfrgiH8_Ul6iwfiadp03M3TIQzBQLUpS/s320/clipboard_10032011_204822.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;If you want to, then you can follow the process rather can use the process with my SRAM interface example project. It will make you more perfect. You can check necessary changes required for my project in .vhd file I attached. Mail me your querries or suggestions on &lt;i style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;prasadp4009@gmail.com&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Enjoy programming...!!&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/7008657527757909043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/03/initializing-m4k-blocks-for-ram-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7008657527757909043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7008657527757909043'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/03/initializing-m4k-blocks-for-ram-for.html' title='Initializing M4K blocks for RAM. (For Altera FPGA users)'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6dNqjTJiUwAblOtUvYOACACdsDb1bVIB7u3aRLS3gMluqgB3mwj7GhtMQBAusAjXlHb7L8vq1wVUxd4E6MsPazMv0HRzHDaiwqkf8YwZMKtQR43yqYOLdrvG9Z0TzzCOcrUrerMamMex4/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-1787090501332401132</id><published>2011-02-14T10:51:00.005+05:30</published><updated>2011-07-05T09:38:29.797+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="interface"/><category scheme="http://www.blogger.com/atom/ns#" term="m4k"/><category scheme="http://www.blogger.com/atom/ns#" term="manual set"/><category scheme="http://www.blogger.com/atom/ns#" term="memory blocks"/><category scheme="http://www.blogger.com/atom/ns#" term="onboard"/><category scheme="http://www.blogger.com/atom/ns#" term="sram"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>Interfacing  (RAM) Onboard M4K memory blocks of Cyclone II Altera De1 board</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This code shows how to store or interface the SRAM with any of your code. You can integrate this code in your projects for storing data. I will upload the interface of RAM with RTC code I designed for storing Date.&lt;br /&gt;
&lt;br /&gt;
In this code I used the on-board M4K memory blocks on Altera DE1 board as RAM in 32 words i.e. 32 address locations of 4-bit. The RAM is initialized through &lt;i&gt;Altera&#39;s MegaFunction IP Library&lt;/i&gt;. Comment if you don&#39;t know how to initialize RAM on any Altera board. I stored some variables like 2,4,6,8 on some starting locations to check if its working. I also added feature of manual address incrementation and data i/p.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
For manual data entry you have to use four switches on Altera De1 board viz.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;SW0 --LSB&lt;/li&gt;
&lt;li&gt;SW1&lt;/li&gt;
&lt;li&gt;SW2&lt;/li&gt;
&lt;li&gt;SW3 --MSB&lt;/li&gt;
&lt;/ul&gt;To&lt;b&gt; write data press KEY3 &lt;/b&gt;and to increment address location press KEY0.&lt;br /&gt;
&lt;br /&gt;
Read operation will be done Automatically, as I have interfaced the BCD to 7SEG (modified seg7.vhd in my previous posts) decoder directly to data out of RAM. You will get to see the stored digit on 7Seg display no.1.&lt;br /&gt;
&lt;br /&gt;
You can directly interface the write enable, I/P and O/P of data and address in your code with only some minor changes.&lt;br /&gt;
&lt;br /&gt;
If you have any qurries feel free to &lt;b&gt;Comment directly&lt;/b&gt; on post instead of mailing me so other people will also get some help from it. You still can mail me your querries and Ideas at &lt;i&gt;prasadp4009@gmail.com&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Download liks:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Main Entity sram_test.vhd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;a href=&quot;http://www.4shared.com/file/q53n6ImN/sram_test.html&quot;&gt;&lt;span id=&quot;goog_334303723&quot;&gt;&lt;/span&gt;sram_test.vhd&lt;/a&gt;&lt;span id=&quot;goog_334303724&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Altera DE1 Quartus .sof file&amp;nbsp; : &lt;a href=&quot;http://www.4shared.com/file/NjRuUpo0/sram.html&quot;&gt;sram.sof&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Megafunction file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;a href=&quot;http://www.4shared.com/file/oAfCsgaD/srm.html&quot;&gt;srm.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Seg7 modified&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;a href=&quot;http://www.4shared.com/file/6zFAYOpf/seg7.html&quot;&gt;seg7.vhd&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Video:&lt;br /&gt;
&lt;object height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/eG7g0Kqu2vE?hl=en&amp;fs=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/eG7g0Kqu2vE?hl=en&amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/1787090501332401132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/02/interfacing-ram-onboard-m4k-memory.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1787090501332401132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/1787090501332401132'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/02/interfacing-ram-onboard-m4k-memory.html' title='Interfacing  (RAM) Onboard M4K memory blocks of Cyclone II Altera De1 board'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2402974000439457986</id><published>2011-01-24T02:37:00.007+05:30</published><updated>2011-07-05T09:38:56.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="clock"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="manual set"/><category scheme="http://www.blogger.com/atom/ns#" term="modified"/><category scheme="http://www.blogger.com/atom/ns#" term="real"/><category scheme="http://www.blogger.com/atom/ns#" term="real time clock"/><category scheme="http://www.blogger.com/atom/ns#" term="rtc"/><category scheme="http://www.blogger.com/atom/ns#" term="segment"/><category scheme="http://www.blogger.com/atom/ns#" term="seven"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="time"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>RTC on FPGA with manual set synthesizeble VHDL code.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hey there, cheers to VHDL. I successfully added manual set feature in my previous RTC project. I am not going to copy whole code here. I am just adding the links of .vhd files. I also added the pre-compiled .sof file &lt;i&gt;only for DE1 boards. &lt;/i&gt;There is a very small bug that while clicking the set button to enable min and hr set, it increments the hr or min value unintentionally. Else everything is working great.&lt;br /&gt;
&lt;br /&gt;
(&lt;i&gt;Input freq 24MHz&lt;/i&gt;., &lt;i&gt;top-level entity DigiClock&lt;/i&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
On DE1 board: Push button functions.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Key0: Reset&lt;/li&gt;
&lt;li&gt;Key1: Hour set (Key3 kept pressed)&lt;/li&gt;
&lt;li&gt;Key2: Minute set (Key3 kept pressed)&lt;/li&gt;
&lt;li&gt;Key3: Set enable.&lt;/li&gt;
&lt;/ul&gt;Download links:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/38M9QMCJ/DigiClock.html&quot;&gt;DigiClock.sof&lt;/a&gt;&amp;nbsp;&amp;nbsp; --DE1 board .sof file&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/R44D2Ru2/DigiClock.html&quot;&gt;DigiClock.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/s3thLcpI/manu_clk.html&quot;&gt;manu_clk.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/BRfjcFFP/sec_clk.html&quot;&gt;sec_clk.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/j12KvBgU/min_clk.html&quot;&gt;min_clk.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/gPKJYgwL/seg7.html&quot;&gt;seg7.vhd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.4shared.com/file/VKCPz32T/DigiClock.html&quot;&gt;DigicClock.pof&lt;/a&gt; --DE1 board only (ActiveSerial Prog. file with EPCS4 device selected) &lt;/li&gt;
&lt;/ul&gt;Video :&amp;nbsp; &lt;iframe allowfullscreen=&quot;&quot; class=&quot;youtube-player&quot; frameborder=&quot;0&quot; height=&quot;310&quot; src=&quot;http://www.youtube.com/embed/8dbsOAOl4tA&quot; title=&quot;YouTube video player&quot; type=&quot;text/html&quot; width=&quot;400&quot;&gt;&lt;/iframe&gt; &lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;Do test the codes. If you have any querries do comment or mail me at &lt;b&gt;&lt;i&gt;prasadp4009@gmail.com&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Enjoy Programming..!!&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2402974000439457986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/01/rtc-on-fpga-with-manual-set.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2402974000439457986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2402974000439457986'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/01/rtc-on-fpga-with-manual-set.html' title='RTC on FPGA with manual set synthesizeble VHDL code.'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/8dbsOAOl4tA/default.jpg" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-4722140350771863587</id><published>2010-11-11T09:12:00.004+05:30</published><updated>2011-07-05T09:39:23.152+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="480"/><category scheme="http://www.blogger.com/atom/ns#" term="640"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="bouncing ball"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="monitor"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="vga"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>Display on VGA Monitor by FPGA(VHDL code Synthesizable, 640X480 resol, 60Hz)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=vh0c-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0387726705&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;This code is for displaying a simple ball bouncing on your monitor screen. As the monitor requires 60 Hz refresh rate i.e. to replace each pixel 60 times, it requires approx 40 ns. So to synchronize it with the FPGA processing speed, I used PLL with 50 MHz i/p clock dividing it to 25 MHz which scans each pixel in 40 ns.&lt;br /&gt;
&lt;br /&gt;
The Video Synchronization file I created is VGAS which has 5 o/ps viz.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;red_out&lt;/li&gt;
&lt;li&gt;green_out&lt;/li&gt;
&lt;li&gt;blue_out&lt;/li&gt;
&lt;li&gt;horiz_sync_out&lt;/li&gt;
&lt;li&gt;vert_sync_out&lt;/li&gt;
&lt;/ul&gt;These are connected to the VGA controller which &lt;b&gt;must have&lt;/b&gt; be present on your FPGA board (present on all DE series board of Altera, I dont know about Xilinx). &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;For the pins check the your board manual.&lt;br /&gt;
&lt;br /&gt;
The VGAS.vhd file can be used as common file for all your FPGA projects(for dividing 50Hz clock as I have used PLL which is already present on DE1 board. So if you have DE1 board its well and good you can directly use the code with the syncclk.vhd included. If dont just a minor modification in i/p clock signal with 25MHz  in VGAS.vhd and removing syncclk.vhd and its component in VGAS.vhd will work.)&lt;br /&gt;
&lt;br /&gt;
The Ballm.vhd is used to create display on Monitor. For DE1 users you can diretly program the SOF file i hav provided in download links.&lt;br /&gt;
&lt;br /&gt;
Post your replies and comments. For the projects or querries you have you can mail me on &lt;u&gt;&lt;i&gt;&lt;b&gt;prasadp4009@gmail.com&lt;/b&gt;&lt;/i&gt;&lt;/u&gt; . &lt;br /&gt;
&lt;br /&gt;
Be the follower, if you like my posts.&lt;br /&gt;
&lt;br /&gt;
Enjoy programming.&lt;br /&gt;
&lt;br /&gt;
Video link: &lt;a href=&quot;http://www.youtube.com/watch?v=QcCdkWG-rmM&quot;&gt;http://www.youtube.com/watch?v=QcCdkWG-rmM &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Download links for files:&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/goog_1866360980&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/file/_7V3nyj9/Ballm.html&quot;&gt;http://www.4shared.com/file/_7V3nyj9/Ballm.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/file/8pE2Yhz2/Ballm.html&quot;&gt;http://www.4shared.com/file/8pE2Yhz2/Ballm.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/file/mqnCQJs0/sycclk.html&quot;&gt;http://www.4shared.com/file/mqnCQJs0/sycclk.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/file/JsUb67B4/VGAS.html&quot;&gt;http://www.4shared.com/file/JsUb67B4/VGAS.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://www.assoc-amazon.com/s/link-enhancer?tag=vh0c-20&amp;amp;o=1&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/4722140350771863587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/11/display-on-vga-monitor-by-fpgavhdl-code.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4722140350771863587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/4722140350771863587'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/11/display-on-vga-monitor-by-fpgavhdl-code.html' title='Display on VGA Monitor by FPGA(VHDL code Synthesizable, 640X480 resol, 60Hz)'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-3488732370869026789</id><published>2010-09-05T14:49:00.006+05:30</published><updated>2011-07-05T09:39:40.447+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="clock"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="real"/><category scheme="http://www.blogger.com/atom/ns#" term="real time clock"/><category scheme="http://www.blogger.com/atom/ns#" term="rtc"/><category scheme="http://www.blogger.com/atom/ns#" term="segment"/><category scheme="http://www.blogger.com/atom/ns#" term="seven"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesizable"/><category scheme="http://www.blogger.com/atom/ns#" term="time"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>Synthesizable RTC in VHDL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;The code given is only for clock digit incrementation. For components in clock like min_clk and sec_clk, refer my previous codes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;VHDL code&lt;/b&gt;:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
library ieee;&lt;br /&gt;
use ieee.std_logic_1164.all;&lt;br /&gt;
use ieee.numeric_std.all;&lt;br /&gt;
&lt;br /&gt;
entity clk12 is&lt;br /&gt;
port( &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk: in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rst: in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op: out std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op0,op1,op2,op3: out std_logic_vector(6 downto 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
end clk12;&lt;br /&gt;
&lt;br /&gt;
architecture clock of clk12 is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
component sec_clk&lt;br /&gt;
Port ( &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk : in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op&amp;nbsp; : out std_logic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end component;&lt;br /&gt;
&lt;br /&gt;
component min_clk&lt;br /&gt;
Port ( &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk : in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rst : in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op&amp;nbsp; : out std_logic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end component;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
component seg7&lt;br /&gt;
port(m: in integer range 0 to 10;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num: out std_logic_vector(6 downto 0));&lt;br /&gt;
end component;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
signal flag: std_logic;&lt;br /&gt;
signal sflag: std_logic;&lt;br /&gt;
&lt;br /&gt;
signal a: integer range 0 to 10;&lt;br /&gt;
signal b: integer range 0 to 6;&lt;br /&gt;
signal c: integer range 0 to 10;&lt;br /&gt;
signal d: integer range 0 to 3;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
c1: sec_clk port map(clk,sflag);&lt;br /&gt;
c2: min_clk port map(sflag,rst,flag);&lt;br /&gt;
op&amp;lt;=sflag;&lt;br /&gt;
&lt;br /&gt;
process(flag,rst)&lt;br /&gt;
&lt;br /&gt;
variable m0: integer range 0 to 10:=0;&lt;br /&gt;
variable m1: integer range 0 to 6:=0;&lt;br /&gt;
variable m2: integer range 0 to 10:=2;&lt;br /&gt;
variable m3: integer range 0 to 3:=1;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&amp;lt;=m0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;lt;=m1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&amp;lt;=m2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d&amp;lt;=m3;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if rst=&#39;0&#39; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m0:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m1:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m2:=2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m3:=1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elsif rising_edge(flag) then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp; m0/=9 then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m0:= m0+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elsif&amp;nbsp; m0=9 and&amp;nbsp; m1/=5&amp;nbsp; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m0:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m1:= m1+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elsif&amp;nbsp; m0=9 and&amp;nbsp; m1=5 and&amp;nbsp; m2/=9 and&amp;nbsp; m3=0 then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m0:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m1:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m2:= m2+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elsif&amp;nbsp; m0=9 and&amp;nbsp; m1=5 and&amp;nbsp; m2=9 and&amp;nbsp; m3=0 then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m0:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m1:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m2:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m3:=1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elsif&amp;nbsp; m3=1 and&amp;nbsp; m2/=2 and&amp;nbsp; m1=5 and&amp;nbsp; m0=9 then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m2:= m2+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; elsif&amp;nbsp; m3=1 and&amp;nbsp; m2=2 and&amp;nbsp; m1=5 and&amp;nbsp; m0=9 then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m0:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m1:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m2:=1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;m3:=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end if;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; end if;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end process;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; z0: seg7 port map(a,op0);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; z1: seg7 port map(b,op1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; z2: seg7 port map(c,op2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; z3: seg7 port map(d,op3);&lt;br /&gt;
&lt;br /&gt;
end clock;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note&lt;/b&gt;: The clock cant be set manually. It starts from 12:00. I tried my best to add the manual set function but didnt succeed. But I assure that manual set will also be there in couple of time. Suggetions are most welcome.&lt;br /&gt;
&lt;br /&gt;
Video link: &lt;a href=&quot;http://www.youtube.com/watch?v=1dbTi2PMgcU&quot; target=&quot;_new&quot;&gt;http://www.youtube.com/watch?v=1dbTi2PMgcU&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Quartus SOF file for DE1 board only: &lt;a href=&quot;http://www.4shared.com/file/chWv_VF5/DigiClock_for_DE1_board_only_.html&quot;&gt;Digiclk(for DE1 board only).SOF &lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b style=&quot;color: #cc0000;&quot;&gt;Check the new code with hr and min manual set&lt;/b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;:&lt;/span&gt; &lt;a href=&quot;http://jimmy-embedded-c-n-vhdl.blogspot.com/2011/01/rtc-on-fpga-with-manual-set.html&quot;&gt;RTC with maual set&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy Programming.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/3488732370869026789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/09/synthesizable-rtc-in-vhdl-coming-soon.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/3488732370869026789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/3488732370869026789'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/09/synthesizable-rtc-in-vhdl-coming-soon.html' title='Synthesizable RTC in VHDL'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-2911195936539710141</id><published>2010-08-06T13:48:00.003+05:30</published><updated>2011-04-24T23:00:30.178+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="0"/><category scheme="http://www.blogger.com/atom/ns#" term="7"/><category scheme="http://www.blogger.com/atom/ns#" term="9999"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="bcd"/><category scheme="http://www.blogger.com/atom/ns#" term="clock divider"/><category scheme="http://www.blogger.com/atom/ns#" term="counter"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="decoder"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="segment"/><category scheme="http://www.blogger.com/atom/ns#" term="seven"/><category scheme="http://www.blogger.com/atom/ns#" term="to"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>0 to 9999 bcd counter on seven segment(VHDL code) Synthesizeble</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;--Note: while building Project do include sec_clk and seg7 files which i posted&lt;br /&gt;
&lt;br /&gt;
library ieee;&lt;br /&gt;
use ieee.std_logic_1164.all;&lt;br /&gt;
use ieee.numeric_std.all;&lt;br /&gt;
use ieee.std_logic_unsigned.all;&lt;br /&gt;
&lt;br /&gt;
entity c09 is&lt;br /&gt;
port( rst,clk: in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op0,op1,op2,op3: out std_logic_vector(6 downto 0));&lt;br /&gt;
end c09;&lt;br /&gt;
&lt;br /&gt;
architecture count of c09 is&lt;br /&gt;
&lt;br /&gt;
component sec_clk&lt;br /&gt;
Port ( &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : in&amp;nbsp; std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rst : in std_logic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; op&amp;nbsp; : out std_logic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end component;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
component seg7&lt;br /&gt;
port(m: in integer range 0 to 15;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num: out std_logic_vector(6 downto 0));&lt;br /&gt;
end component;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
signal flag: std_logic;&lt;br /&gt;
signal a: integer range 0 to 10;&lt;br /&gt;
signal b: integer range 0 to 10;&lt;br /&gt;
signal c: integer range 0 to 10;&lt;br /&gt;
signal d: integer range 0 to 10;&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
c1: sec_clk port map(clk,rst,flag);&lt;br /&gt;
&lt;br /&gt;
process(rst,flag)&lt;br /&gt;
variable m0: integer range 0 to 10:=0;&lt;br /&gt;
variable m1: integer range 0 to 10:=0;&lt;br /&gt;
variable m2: integer range 0 to 10:=0;&lt;br /&gt;
variable m3: integer range 0 to 10:=0;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
if rst=&#39;0&#39; then&lt;br /&gt;
m0:=0;&lt;br /&gt;
m1:=0;&lt;br /&gt;
m2:=0;&lt;br /&gt;
m3:=0;&lt;br /&gt;
elsif flag&#39;event and flag=&#39;1&#39; then&lt;br /&gt;
a&amp;lt;=m0;&lt;br /&gt;
b&amp;lt;=m1;&lt;br /&gt;
c&amp;lt;=m2;&lt;br /&gt;
d&amp;lt;=m3;&lt;br /&gt;
if m0 /= 9 then&lt;br /&gt;
m0:= m0 + 1; &lt;br /&gt;
elsif m0=9 and m1 /= 9 then&lt;br /&gt;
m0:=0;&lt;br /&gt;
m1:= m1 + 1;&lt;br /&gt;
elsif m1=9 and m2 /= 9 and m0=9 then&lt;br /&gt;
m1:=0;&lt;br /&gt;
m0:=0;&lt;br /&gt;
m2:= m2 + 1;&lt;br /&gt;
elsif m2=9 and m3/= 9 and m0=9 and m1=9 then&lt;br /&gt;
m1:=0;&lt;br /&gt;
m0:=0;&lt;br /&gt;
m2 :=0;&lt;br /&gt;
m3 := m3 + 1;&lt;br /&gt;
elsif m3=9 then&lt;br /&gt;
m0:=0;&lt;br /&gt;
m1:=0;&lt;br /&gt;
m2:=0;&lt;br /&gt;
m3:=0;&lt;br /&gt;
end if; &lt;br /&gt;
end if;&lt;br /&gt;
&lt;br /&gt;
end process;&lt;br /&gt;
&lt;br /&gt;
z0: seg7 port map(a,op0);&lt;br /&gt;
z1: seg7 port map(b,op1);&lt;br /&gt;
z2: seg7 port map(c,op2);&lt;br /&gt;
z3: seg7 port map(d,op3);&lt;br /&gt;
&lt;br /&gt;
end count;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;here is my youtube video of above project: &lt;a href=&quot;http://www.youtube.com/watch?v=RrPzS5FLz3k&quot;&gt;http://www.youtube.com/watch?v=RrPzS5FLz3k&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/2911195936539710141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/0-to-9999-bcd-counter-on-seven.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2911195936539710141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/2911195936539710141'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/0-to-9999-bcd-counter-on-seven.html' title='0 to 9999 bcd counter on seven segment(VHDL code) Synthesizeble'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-7289071030252042858</id><published>2010-08-06T10:17:00.003+05:30</published><updated>2011-07-05T09:40:00.063+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="7"/><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="bcd"/><category scheme="http://www.blogger.com/atom/ns#" term="clock divider"/><category scheme="http://www.blogger.com/atom/ns#" term="cyclone2"/><category scheme="http://www.blogger.com/atom/ns#" term="de1"/><category scheme="http://www.blogger.com/atom/ns#" term="decoder"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="ii"/><category scheme="http://www.blogger.com/atom/ns#" term="segment"/><category scheme="http://www.blogger.com/atom/ns#" term="seven"/><category scheme="http://www.blogger.com/atom/ns#" term="VHDL Codes"/><title type='text'>bcd to seven seg decoder (modified using integer data type) in vhdl(synthesizable)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This code is generally used as component:&lt;br /&gt;
&lt;br /&gt;
library ieee;&lt;br /&gt;
use ieee.std_logic_1164.all;&lt;br /&gt;
use ieee.numeric_std.all;&lt;br /&gt;
&lt;br /&gt;
entity seg7 is&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
port(m: in integer range 0 to 15; -- m is decleared as INTEGER&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num: out std_logic_vector(6 downto 0));&lt;br /&gt;
end seg7;&lt;br /&gt;
&lt;br /&gt;
architecture s7 of seg7 is&lt;br /&gt;
begin&lt;br /&gt;
process(m)&lt;br /&gt;
begin&lt;br /&gt;
case m is&lt;br /&gt;
when 0 =&amp;gt; num&amp;lt;=&quot;1000000&quot;;&lt;br /&gt;
when 1 =&amp;gt; num&amp;lt;=&quot;1111001&quot;;&lt;br /&gt;
when 2 =&amp;gt; num&amp;lt;=&quot;0100100&quot;;&lt;br /&gt;
when 3 =&amp;gt; num&amp;lt;=&quot;0110000&quot;;&lt;br /&gt;
when 4 =&amp;gt; num&amp;lt;=&quot;0011001&quot;;&lt;br /&gt;
when 5 =&amp;gt; num&amp;lt;=&quot;0010010&quot;;&lt;br /&gt;
when 6 =&amp;gt; num&amp;lt;=&quot;0000010&quot;;&lt;br /&gt;
when 7 =&amp;gt; num&amp;lt;=&quot;1111000&quot;;&lt;br /&gt;
when 8 =&amp;gt; num&amp;lt;=&quot;0000000&quot;;&lt;br /&gt;
when 9 =&amp;gt; num&amp;lt;=&quot;0010000&quot;;&lt;br /&gt;
when 10 =&amp;gt; num&amp;lt;=&quot;0001000&quot;;&amp;nbsp; -- hex(a)&lt;br /&gt;
when 11 =&amp;gt; num&amp;lt;=&quot;0000011&quot;;&amp;nbsp; -- hex(b)&lt;br /&gt;
when 12 =&amp;gt; num&amp;lt;=&quot;1000110&quot;;&amp;nbsp; -- hex(c)&lt;br /&gt;
when 13 =&amp;gt; num&amp;lt;=&quot;0100001&quot;;&amp;nbsp; -- hex(d) &lt;br /&gt;
when 14 =&amp;gt; num&amp;lt;=&quot;0000110&quot;;&amp;nbsp; -- hex(e)&lt;br /&gt;
when 15 =&amp;gt; num&amp;lt;=&quot;0001110&quot;;&amp;nbsp; -- hex(f)&lt;br /&gt;
when others=&amp;gt; num&amp;lt;=&quot;1111111&quot;;&lt;br /&gt;
end case;&lt;br /&gt;
end process;&lt;br /&gt;
end s7;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/7289071030252042858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/bcd-to-seven-seg-decoder-modified-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7289071030252042858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/7289071030252042858'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/bcd-to-seven-seg-decoder-modified-using.html' title='bcd to seven seg decoder (modified using integer data type) in vhdl(synthesizable)'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-8997427659816645356</id><published>2010-08-06T10:15:00.003+05:30</published><updated>2015-08-20T00:25:51.970+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="vhdl"/><title type='text'>bcd to seven seg decoder in vhdl(synthesizable)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
library ieee;&lt;br /&gt;
use ieee.std_logic_1164.all;&lt;br /&gt;
&lt;br /&gt;
entity seg7 is&lt;br /&gt;
&lt;br /&gt;
port(m: in std_logic_vector(3 downto 0);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num: out std_logic_vector(6 downto 0));&lt;br /&gt;
end seg7;&lt;br /&gt;
&lt;br /&gt;
architecture sseg of seg7 is&lt;br /&gt;
begin&lt;br /&gt;
process(m)&lt;br /&gt;
begin&lt;br /&gt;
if(m=&quot;0000&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;1000000&quot;;&lt;br /&gt;
elsif(m=&quot;0001&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;1111001&quot;;&lt;br /&gt;
elsif(m=&quot;0010&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0100100&quot;;&lt;br /&gt;
elsif(m=&quot;0011&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0110000&quot;;&lt;br /&gt;
elsif(m=&quot;0100&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0011001&quot;;&lt;br /&gt;
elsif(m=&quot;0101&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0010010&quot;;&lt;br /&gt;
elsif(m=&quot;0110&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0000010&quot;;&lt;br /&gt;
elsif(m=&quot;0111&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;1111000&quot;;&lt;br /&gt;
elsif(m=&quot;1000&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0000000&quot;;&lt;br /&gt;
elsif(m=&quot;1001&quot;) then&lt;br /&gt;
num&amp;lt;=&quot;0010000&quot;;&lt;br /&gt;
else&lt;br /&gt;
num&amp;lt;=&quot;1111111&quot;;&lt;br /&gt;
end if;&lt;br /&gt;
end process;&lt;br /&gt;
end sseg;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/8997427659816645356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/bcd-to-seven-seg-decoder-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/8997427659816645356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/8997427659816645356'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/bcd-to-seven-seg-decoder-in.html' title='bcd to seven seg decoder in vhdl(synthesizable)'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-238121121804895012.post-5776760470308889700</id><published>2010-08-06T10:12:00.006+05:30</published><updated>2015-08-18T19:28:19.115+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="altera"/><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="fpga"/><category scheme="http://www.blogger.com/atom/ns#" term="vhdl"/><title type='text'>VHDL code for Clock Divider</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwCoaqjfbbLSe4C3FzVSP4VIbdmswslDlRekD9F11TKdPXv4uBCVfmwIRF6AZS_iRMULxkNoorrL1XB-nEU6ZDOvtRKqLBKKU83gt-2Z9m-r7DVlymx_4NjAZgdvu_vpm1nmWaj_yOaw6c/s1600/alterade1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwCoaqjfbbLSe4C3FzVSP4VIbdmswslDlRekD9F11TKdPXv4uBCVfmwIRF6AZS_iRMULxkNoorrL1XB-nEU6ZDOvtRKqLBKKU83gt-2Z9m-r7DVlymx_4NjAZgdvu_vpm1nmWaj_yOaw6c/s320/alterade1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
This is a clock divider code, just set the max-count value as per your requirenment.&lt;br /&gt;
&lt;br /&gt;
For ex. If I want 1Hz freq. set the max count to i/p freq value viz.&lt;br /&gt;
1sec = 1Hz&lt;br /&gt;
Then, to get time period of 1sec i.e. 1 Hz frequency set max-count to 240000 as shown below:&lt;br /&gt;
&lt;br /&gt;
1sec&amp;nbsp; =&amp;nbsp; 24000000&amp;nbsp; -- for i/p frequency of 24 MHz.&lt;br /&gt;
&lt;br /&gt;
To get your desired frequency just calculate the maxcount with the formula given below:&lt;br /&gt;
&lt;br /&gt;
max_count = 24000000 * (1/your required frequency)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
CODE:&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;library&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;IEEE&lt;/span&gt;;

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;use&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;IEEE.STD_LOGIC_1164.ALL&lt;/span&gt;;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;use&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;IEEE.numeric_std.all&lt;/span&gt;;

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;entity&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;clk_div&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;is&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;Port&lt;/span&gt; (
          Clk   &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;std_logic&lt;/span&gt;;
          rst   &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;std_logic&lt;/span&gt;;
          op    &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;out&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;std_logic&lt;/span&gt;
    );
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;clk_div&lt;/span&gt;;


 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;architecture&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;behavioral&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;of&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;clk_div&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;is&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;constant&lt;/span&gt; max_count &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;natural&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;24000000&lt;/span&gt;;

&lt;span style=&quot;color: #888888;&quot;&gt;-- I used 24MHz clock&lt;/span&gt;

  

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;begin&lt;/span&gt;

  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;process&lt;/span&gt;(Clk,rst)
        &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;variable&lt;/span&gt; count &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;natural&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;range&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;to&lt;/span&gt; max_count;

    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;begin&lt;/span&gt;

        &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt; rst &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0044dd;&quot;&gt;&#39;0&#39;&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;then&lt;/span&gt;
            count &lt;span style=&quot;color: #333333;&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;;
            op &lt;span style=&quot;color: #333333;&quot;&gt;   &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0044dd;&quot;&gt;&#39;1&#39;&lt;/span&gt;;
        &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;elsif&lt;/span&gt; rising_edge(Clk) &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;then&lt;/span&gt;
            &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt; count &amp;lt; (max_count&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;)&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;then&lt;/span&gt;
                op    &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0044dd;&quot;&gt;&#39;1&#39;&lt;/span&gt;;
                count &lt;span style=&quot;color: #333333;&quot;&gt;:=&lt;/span&gt; count &lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;;
            &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;elsif&lt;/span&gt; count &amp;lt; max_count&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;then&lt;/span&gt;
                op    &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0044dd;&quot;&gt;&#39;0&#39;&lt;/span&gt;;
                count &lt;span style=&quot;color: #333333;&quot;&gt;:=&lt;/span&gt; count &lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;;
            &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;else&lt;/span&gt;
                count &lt;span style=&quot;color: #333333;&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;;
                op    &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0044dd;&quot;&gt;&#39;1&#39;&lt;/span&gt;;
            &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;;
     &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;;

  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;process&lt;/span&gt;;

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;behavioral&lt;/span&gt;;&amp;nbsp;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/feeds/5776760470308889700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/vhdl-code-for-clock-divider.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/5776760470308889700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/238121121804895012/posts/default/5776760470308889700'/><link rel='alternate' type='text/html' href='http://jimmy-embedded-c-n-vhdl.blogspot.com/2010/08/vhdl-code-for-clock-divider.html' title='VHDL code for Clock Divider'/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/16238555111641888621</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBzONt9HZjbSzSCG5Km2_pYB46Lc46qhjyt6zNCyK3iI_lc3tAF1hexoviPvfICKc3kmFHal7Sw15VdgsFbkLuMPrRiUpWKpar8hGQj4dGU5UMm8_KZRuelTQSrL0bCQ/s220/16250_1281426041491_1405284777_819964_4864118_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwCoaqjfbbLSe4C3FzVSP4VIbdmswslDlRekD9F11TKdPXv4uBCVfmwIRF6AZS_iRMULxkNoorrL1XB-nEU6ZDOvtRKqLBKKU83gt-2Z9m-r7DVlymx_4NjAZgdvu_vpm1nmWaj_yOaw6c/s72-c/alterade1.jpg" height="72" width="72"/><thr:total>25</thr:total></entry></feed>