<?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:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3649175202397286638</id><updated>2010-05-06T09:44:11.273-07:00</updated><title type='text'>Bejoy Thomas</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-5468146361660503689</id><published>2010-03-08T06:47:00.000-08:00</published><updated>2010-03-08T07:16:40.420-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3D Scanner'/><title type='text'>3D Laser Scanner</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_xESKGdKaHq0/S5UOPT6ZCsI/AAAAAAAAACk/OCHvUdu5JrM/s1600-h/scan.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5446274980580494018" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: pointer; HEIGHT: 265px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_xESKGdKaHq0/S5UOPT6ZCsI/AAAAAAAAACk/OCHvUdu5JrM/s400/scan.JPG" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_xESKGdKaHq0/S5UOV7jKDGI/AAAAAAAAACs/wTvoLK3lnEU/s1600-h/result.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5446275094299675746" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: pointer; HEIGHT: 265px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_xESKGdKaHq0/S5UOV7jKDGI/AAAAAAAAACs/wTvoLK3lnEU/s400/result.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Download Link:&lt;/p&gt;&lt;p&gt;&lt;a href="http://3dlscanner.googlecode.com/files/3dlscanner2.rar"&gt;http://3dlscanner.googlecode.com/files/3dlscanner2.rar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Project Homepage:&lt;/p&gt;&lt;p&gt;&lt;a href="http://code.google.com/p/3dlscanner/"&gt;http://code.google.com/p/3dlscanner/&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-5468146361660503689?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/5468146361660503689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2010/03/3d-laser-scanner.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/5468146361660503689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/5468146361660503689'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2010/03/3d-laser-scanner.html' title='3D Laser Scanner'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_xESKGdKaHq0/S5UOPT6ZCsI/AAAAAAAAACk/OCHvUdu5JrM/s72-c/scan.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-607714628657384680</id><published>2009-12-29T21:29:00.000-08:00</published><updated>2009-12-29T21:42:46.753-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Flip Flops'/><title type='text'>Master Slave JK Flip Flop</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_xESKGdKaHq0/SzrmXJ8jSQI/AAAAAAAAABw/1UCvVHyeHnk/s1600-h/clip_image001.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 175px;" src="http://4.bp.blogspot.com/_xESKGdKaHq0/SzrmXJ8jSQI/AAAAAAAAABw/1UCvVHyeHnk/s320/clip_image001.gif" alt="" id="BLOGGER_PHOTO_ID_5420898386975082754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity master_slave_jk is&lt;br /&gt;port(j,k,clk:in std_logic;q1,q1x,z1x:inout std_logic;&lt;br /&gt;q2,q2x,z2x: inout std_logic);&lt;br /&gt;end master_slave_jk;&lt;br /&gt;&lt;br /&gt;architecture arc of master_slave_jk is&lt;br /&gt;begin&lt;br /&gt;process(clk)&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if clk='1' then&lt;br /&gt;&lt;br /&gt;z1x&lt;=(j and (not q2)) or ((not k)and q2);&lt;br /&gt;q1&lt;=z1x after 5 ns;&lt;br /&gt;q1x&lt;=not z1x after 5ns;  &lt;br /&gt;&lt;br /&gt;else &lt;br /&gt;&lt;br /&gt;z2x&lt;=(q1 and (not q2)) or ((not q1x)and q2);&lt;br /&gt;q2&lt;=z2x after 5 ns;&lt;br /&gt;q2x&lt;=not z2x after 5ns;&lt;br /&gt;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_xESKGdKaHq0/SzrmxUwamVI/AAAAAAAAACA/hly0U7MOnG4/s1600-h/clip_image002.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 104px;" src="http://4.bp.blogspot.com/_xESKGdKaHq0/SzrmxUwamVI/AAAAAAAAACA/hly0U7MOnG4/s400/clip_image002.jpg" alt="" id="BLOGGER_PHOTO_ID_5420898836553570642" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-607714628657384680?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/607714628657384680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/master-slave-jk-flip-flop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/607714628657384680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/607714628657384680'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/master-slave-jk-flip-flop.html' title='Master Slave JK Flip Flop'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_xESKGdKaHq0/SzrmXJ8jSQI/AAAAAAAAABw/1UCvVHyeHnk/s72-c/clip_image001.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-6603746666550050812</id><published>2009-12-23T22:09:00.000-08:00</published><updated>2009-12-23T22:10:14.741-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Parity Generator'/><title type='text'>VHDL code for Odd Parity Generator</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_op is&lt;br /&gt;port(x,y,z:in std_logic;&lt;br /&gt;       p:out std_logic);&lt;br /&gt;end bejoy_op;&lt;br /&gt;&lt;br /&gt;architecture a of bejoy_op is&lt;br /&gt;begin&lt;br /&gt;p&lt;=((x xor y) xor z);&lt;br /&gt;end a;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-6603746666550050812?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/6603746666550050812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-odd-parity-generator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6603746666550050812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6603746666550050812'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-odd-parity-generator.html' title='VHDL code for Odd Parity Generator'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-5405578978457376290</id><published>2009-12-23T22:08:00.000-08:00</published><updated>2009-12-23T22:09:28.704-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Parity Generator'/><title type='text'>VHDL code for Even Parity Generator</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_ep is&lt;br /&gt;port(x,y,z:in std_logic;&lt;br /&gt;       p:out std_logic);&lt;br /&gt;end bejoy_ep;&lt;br /&gt;&lt;br /&gt;architecture a of bejoy_ep is&lt;br /&gt;begin&lt;br /&gt;p&lt;=((x xor y) xnor z);&lt;br /&gt;end a;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-5405578978457376290?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/5405578978457376290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-even-parity-generator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/5405578978457376290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/5405578978457376290'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-even-parity-generator.html' title='VHDL code for Even Parity Generator'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-7671270765613824843</id><published>2009-12-23T22:07:00.000-08:00</published><updated>2009-12-23T22:08:13.074-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Flip Flops'/><title type='text'>VHDL code for JK Flip Flop</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_jkff is&lt;br /&gt;port(j,k,clk:in std_logic;q,q1,z:inout std_logic);&lt;br /&gt;end bejoy_jkff;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_jkff is&lt;br /&gt;begin&lt;br /&gt;process(clk)&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if clk='1' then&lt;br /&gt;z&lt;=(j and (not q)) or ((not k) and q);&lt;br /&gt;q&lt;=z after 5ns;&lt;br /&gt;q1&lt;=not z after 5ns;&lt;br /&gt;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-7671270765613824843?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/7671270765613824843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-jk-flip-flop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7671270765613824843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7671270765613824843'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-jk-flip-flop.html' title='VHDL code for JK Flip Flop'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-6077114661675005139</id><published>2009-12-23T22:06:00.002-08:00</published><updated>2009-12-23T22:07:35.109-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Flip Flops'/><title type='text'>VHDL code for T Flip Flop</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_tff is&lt;br /&gt;port(t,clk:in std_logic;q,q1,z:inout std_logic);&lt;br /&gt;end bejoy_tff;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_tff is&lt;br /&gt;begin&lt;br /&gt;process(clk)&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if clk='1' then&lt;br /&gt;z&lt;=((t and (not q)) or ((not t) and q));&lt;br /&gt;q&lt;=z after 5ns;&lt;br /&gt;q1&lt;=not z after 5ns;&lt;br /&gt;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-6077114661675005139?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/6077114661675005139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-t-flip-flop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6077114661675005139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6077114661675005139'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-t-flip-flop.html' title='VHDL code for T Flip Flop'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-4500471600354573002</id><published>2009-12-23T22:06:00.001-08:00</published><updated>2009-12-23T22:10:39.889-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Flip Flops'/><title type='text'>VHDL code for SR Flip Flop</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_rsff is&lt;br /&gt;port(s,r,clk:in std_logic;q,q1,z:inout std_logic);&lt;br /&gt;end bejoy_rsff;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_rsff is&lt;br /&gt;begin&lt;br /&gt;process(clk)&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if clk='1' then&lt;br /&gt;z&lt;=s or ((not r) and q);&lt;br /&gt;q&lt;=z after 5ns;&lt;br /&gt;q1&lt;=not z after 5ns;&lt;br /&gt;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-4500471600354573002?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/4500471600354573002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-sr-flip-flop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/4500471600354573002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/4500471600354573002'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-sr-flip-flop.html' title='VHDL code for SR Flip Flop'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-8710349885121221866</id><published>2009-12-23T22:05:00.001-08:00</published><updated>2009-12-23T22:11:01.385-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Flip Flops'/><title type='text'>VHDL code for D Flip Flop</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_dff is&lt;br /&gt;   port(d,clock :in std_logic;&lt;br /&gt;       Q:out std_logic);&lt;br /&gt;end bejoy_dff;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_dff is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;process(clock)&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;if clock'event and clock='1' then&lt;br /&gt;Q&lt;=D;&lt;br /&gt;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-8710349885121221866?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/8710349885121221866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-d-flip-flop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8710349885121221866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8710349885121221866'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-d-flip-flop.html' title='VHDL code for D Flip Flop'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-8403982028401097654</id><published>2009-12-23T22:04:00.001-08:00</published><updated>2009-12-23T22:11:19.059-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 3x8 Decoder</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_3x8 is&lt;br /&gt;port(a,b,c:in std_logic;&lt;br /&gt;   d0,d1,d2,d3,d4,d5,d6,d7:out std_logic);&lt;br /&gt;end bejoy_3x8;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_3x8 is&lt;br /&gt;begin&lt;br /&gt;d0&lt;= (not a) and (not b) and (not c);&lt;br /&gt;d1&lt;= (not a) and (not b) and c;&lt;br /&gt;d2&lt;= (not a) and b and (not c);&lt;br /&gt;d3&lt;= (not a) and b and c;&lt;br /&gt;d4&lt;= a and (not b) and (not c);&lt;br /&gt;d5&lt;= a and (not b) and c;&lt;br /&gt;d6&lt;= a and b and (not c);&lt;br /&gt;d7&lt;= a and b and c;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-8403982028401097654?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/8403982028401097654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-3x8-decoder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8403982028401097654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8403982028401097654'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-3x8-decoder.html' title='VHDL code for 3x8 Decoder'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-8146367667788295645</id><published>2009-12-23T22:03:00.000-08:00</published><updated>2009-12-23T22:04:02.867-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 8x3 Encoder</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_8x3 is&lt;br /&gt;port(d0,d1,d2,d3,d4,d5,d6,d7:in std_logic;&lt;br /&gt;   &lt;br /&gt;    a0,a1,a2:out std_logic);&lt;br /&gt;end bejoy_8x3;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_8x3 is&lt;br /&gt;begin&lt;br /&gt;a2&lt;= d4 or d5 or d6 or d7;&lt;br /&gt;a1&lt;= d2 or d3 or d6 or d7;&lt;br /&gt;a0&lt;= d1 or d3 or d5 or d7;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-8146367667788295645?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/8146367667788295645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-8x3-encoder.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8146367667788295645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8146367667788295645'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-8x3-encoder.html' title='VHDL code for 8x3 Encoder'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-4779756897720334318</id><published>2009-12-23T22:02:00.002-08:00</published><updated>2009-12-23T22:11:39.926-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 1x4 Demultiplexer using structural style</title><content type='html'>library IEEE;&lt;br /&gt;use IEEE.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_1x4 is&lt;br /&gt;port(s1,s2,data_in : in std_logic;&lt;br /&gt;   d1,d2,d3,d4 : out std_logic);&lt;br /&gt;end bejoy_1x4;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_1x4 is&lt;br /&gt;&lt;br /&gt;component dmux&lt;br /&gt;port(sx1,sx2,d : in std_logic;&lt;br /&gt;   z1,z2 : out std_logic);&lt;br /&gt;end component;&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;dmux1 : dmux port map(s1,s2,data_in,d1,d2);&lt;br /&gt;dmux2 : dmux port map(not s1,s2,data_in,d3,d4);&lt;br /&gt;end arc;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity dmux is&lt;br /&gt;port(sx1,sx2,d :in std_logic;&lt;br /&gt;   z1,z2: out std_logic);&lt;br /&gt;end dmux;&lt;br /&gt;&lt;br /&gt;architecture arc of dmux is&lt;br /&gt;begin&lt;br /&gt;z1 &lt;= d and (not sx1) and (not sx2);&lt;br /&gt;z2 &lt;= d and (not sx1) and sx2;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-4779756897720334318?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/4779756897720334318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-1x4-demultiplexer-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/4779756897720334318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/4779756897720334318'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-1x4-demultiplexer-using.html' title='VHDL code for 1x4 Demultiplexer using structural style'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-7921252529250288370</id><published>2009-12-23T22:02:00.001-08:00</published><updated>2009-12-23T22:02:29.120-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 1x2 Demultiplexer</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_1x2 is&lt;br /&gt;port(d,s:in std_logic;&lt;br /&gt;   &lt;br /&gt;    z0,z1:out std_logic);&lt;br /&gt;end bejoy_1x2;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_1x2 is&lt;br /&gt;begin&lt;br /&gt;z0 &lt;= d and (not s);&lt;br /&gt;z1 &lt;= (d and s);&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-7921252529250288370?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/7921252529250288370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-1x2-demultiplexer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7921252529250288370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7921252529250288370'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-1x2-demultiplexer.html' title='VHDL code for 1x2 Demultiplexer'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-6780998845763686164</id><published>2009-12-23T22:01:00.001-08:00</published><updated>2009-12-23T22:01:47.334-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 4x1 Multiplexer using structural style</title><content type='html'>library IEEE;&lt;br /&gt;use IEEE.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_4x1 is&lt;br /&gt;port(s1,s2,d00,d01,d10,d11 : in std_logic;&lt;br /&gt;    z_out : out std_logic);&lt;br /&gt;end bejoy_4x1;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_4x1 is&lt;br /&gt;&lt;br /&gt;component mux&lt;br /&gt;port(sx1,sx2,d0,d1 : in std_logic;&lt;br /&gt;    z : out std_logic);&lt;br /&gt;end component;&lt;br /&gt;&lt;br /&gt;component or_2&lt;br /&gt;port(a,b : in std_logic;&lt;br /&gt;    c : out std_logic);&lt;br /&gt;end component;&lt;br /&gt;&lt;br /&gt;signal intr1, intr2, intr3, intr4 : std_logic;&lt;br /&gt;begin&lt;br /&gt;mux1 : mux port map(s1,s2,d00,d01,intr1);&lt;br /&gt;mux2 : mux port map(not s1,s2, d10,d11,intr2);&lt;br /&gt;o1 : or_2 port map(intr1, intr2, z_out);&lt;br /&gt;end arc;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity mux is&lt;br /&gt;port(sx1,sx2,d0,d1 :in std_logic;&lt;br /&gt;    z1,z2: inout std_logic;&lt;br /&gt;    z: out std_logic);&lt;br /&gt;end mux;&lt;br /&gt;&lt;br /&gt;architecture arc of mux is&lt;br /&gt;begin&lt;br /&gt;z1 &lt;= d0 and (not sx1) and (not sx2);&lt;br /&gt;z2 &lt;= (d1 and (not sx1) and sx2);&lt;br /&gt;z&lt;= z1 or z2;&lt;br /&gt;end arc;&lt;br /&gt;&lt;br /&gt;entity or_2 is&lt;br /&gt;port(a,b : in bit;&lt;br /&gt;    c : out bit);&lt;br /&gt;end or_2;&lt;br /&gt;architecture arc of or_2 is&lt;br /&gt;begin&lt;br /&gt;c&lt;=a or b;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-6780998845763686164?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/6780998845763686164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4x1-multiplexer-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6780998845763686164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6780998845763686164'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4x1-multiplexer-using.html' title='VHDL code for 4x1 Multiplexer using structural style'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-3249494525790107975</id><published>2009-12-23T22:00:00.001-08:00</published><updated>2009-12-23T22:00:59.093-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 2x1 Multiplexer</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_2x1 is&lt;br /&gt;port(d0,d1,s:in std_logic;&lt;br /&gt;   &lt;br /&gt;    z:out std_logic;&lt;br /&gt;    z1,z2: inout std_logic);&lt;br /&gt;end bejoy_2x1;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_2x1 is&lt;br /&gt;begin&lt;br /&gt;z1 &lt;= d0 and (not s);&lt;br /&gt;z2 &lt;= (d1 and s);&lt;br /&gt;z &lt;= z1 or z2;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-3249494525790107975?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/3249494525790107975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-2x1-multiplexer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/3249494525790107975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/3249494525790107975'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-2x1-multiplexer.html' title='VHDL code for 2x1 Multiplexer'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-6379290604288724325</id><published>2009-12-23T21:58:00.000-08:00</published><updated>2009-12-23T22:11:59.807-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 4 bit Gray to Binary converter</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_g2b is&lt;br /&gt;port(g:in std_logic_vector(3 downto 0);&lt;br /&gt;&lt;br /&gt;  b:inout std_logic_vector(3 downto 0));&lt;br /&gt;end bejoy_g2b;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;architecture a of bejoy_g2b is&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;b(3)&lt;=g(3);&lt;br /&gt;b(2)&lt;=b(3) xor g(2);&lt;br /&gt;b(1)&lt;=b(2) xor g(1);&lt;br /&gt;b(0)&lt;=b(1) xor g(0);&lt;br /&gt;end a;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-6379290604288724325?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/6379290604288724325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4-bit-gray-to-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6379290604288724325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6379290604288724325'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4-bit-gray-to-binary.html' title='VHDL code for 4 bit Gray to Binary converter'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-7782051391255667085</id><published>2009-12-23T21:57:00.000-08:00</published><updated>2009-12-23T21:58:36.955-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for 4 bit Binary to Gray code converter</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_b2g is&lt;br /&gt;port(b:in std_logic_vector(3 downto 0);&lt;br /&gt;   &lt;br /&gt;    g:out std_logic_vector(3 downto 0));&lt;br /&gt;end bejoy_b2g;&lt;br /&gt;&lt;br /&gt;architecture a of bejoy_b2g is&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;g(3)&lt;=b(3);&lt;br /&gt;g(2)&lt;=b(3) xor b(2);&lt;br /&gt;g(1)&lt;=b(2) xor b(1);&lt;br /&gt;g(0)&lt;=b(1) xor b(0);&lt;br /&gt;end a;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-7782051391255667085?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/7782051391255667085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4-bit-binary-to-gray-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7782051391255667085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/7782051391255667085'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-4-bit-binary-to-gray-code.html' title='VHDL code for 4 bit Binary to Gray code converter'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-3965506256725724638</id><published>2009-12-23T21:52:00.000-08:00</published><updated>2009-12-23T21:57:33.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for Full Subtractor</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_fs is&lt;br /&gt;port(x,y,bi: in bit; b2,do,bo: out bit; d,b: inout bit);&lt;br /&gt;end bejoy_fs;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_fs is&lt;br /&gt;begin&lt;br /&gt;d&lt;=x xor y;&lt;br /&gt;b&lt;=x and (not y);&lt;br /&gt;do&lt;=bi xor d;&lt;br /&gt;b2&lt;=bi and (not b);&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-3965506256725724638?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/3965506256725724638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-subtractor_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/3965506256725724638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/3965506256725724638'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-subtractor_23.html' title='VHDL code for Full Subtractor'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-2306445932779616259</id><published>2009-12-23T21:51:00.000-08:00</published><updated>2009-12-23T21:57:16.328-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for Half Subtractor</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_hs is&lt;br /&gt;port (x,y,en : in bit ;&lt;br /&gt;  d,b : out bit; y1: inout bit);&lt;br /&gt;end bejoy_hs;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_hs is&lt;br /&gt;begin&lt;br /&gt;process (en,y1)&lt;br /&gt;begin&lt;br /&gt;if en='1' then&lt;br /&gt;d&lt;= x xor y;&lt;br /&gt;y1&lt;= not (y);&lt;br /&gt;b &lt;= x and y1;&lt;br /&gt;end if;&lt;br /&gt;end process;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-2306445932779616259?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/2306445932779616259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-subtractor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/2306445932779616259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/2306445932779616259'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-subtractor.html' title='VHDL code for Half Subtractor'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-6513921963822812358</id><published>2009-12-23T21:47:00.000-08:00</published><updated>2009-12-23T21:56:59.929-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for Full Adder using structural style</title><content type='html'>library IEEE;&lt;br /&gt;use IEEE.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_fa is&lt;br /&gt;port(In1,In2,c_in : in std_logic;&lt;br /&gt;sum, c_out : out std_logic);&lt;br /&gt;end bejoy_fa;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_fa is&lt;br /&gt;&lt;br /&gt;component half_adder&lt;br /&gt;port(a,b : in std_logic;&lt;br /&gt;sum, carry : out std_logic);&lt;br /&gt;end component;&lt;br /&gt;&lt;br /&gt;component or_2&lt;br /&gt;port(a,b : in std_logic;&lt;br /&gt;c : out std_logic);&lt;br /&gt;end component;&lt;br /&gt;&lt;br /&gt;signal s1, s2, s3 : std_logic;&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;H1: half_adder port map(a=&gt;In1, b=&gt;In2, sum=&gt;s1, carry=&gt;s3);&lt;br /&gt;&lt;br /&gt;H2: half_adder port map(a=&gt;s1, b=&gt;c_in, sum=&gt;sum, carry=&gt;s2);&lt;br /&gt;&lt;br /&gt;O1: or_2 port map(a=&gt; s2, b=&gt;s3, c=&gt;c_out);&lt;br /&gt;&lt;br /&gt;end arc;&lt;br /&gt;&lt;br /&gt;entity half_adder is&lt;br /&gt;&lt;br /&gt;port (a,b : in bit ;&lt;br /&gt;           sum,carry : out bit);&lt;br /&gt;&lt;br /&gt;end half_adder;&lt;br /&gt;&lt;br /&gt;architecture arc of half_adder is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;sum&lt;= a xor b;&lt;br /&gt;carry &lt;= a and b;&lt;br /&gt;&lt;br /&gt;end arc;&lt;br /&gt;&lt;br /&gt;entity or_2 is&lt;br /&gt;&lt;br /&gt;port (a,b : in bit ;&lt;br /&gt;           c : out bit);&lt;br /&gt;&lt;br /&gt;end or_2;&lt;br /&gt;&lt;br /&gt;architecture arc of or_2 is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c&lt;= a or b;&lt;br /&gt;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-6513921963822812358?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/6513921963822812358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-adder-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6513921963822812358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/6513921963822812358'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-full-adder-using.html' title='VHDL code for Full Adder using structural style'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-8131380667952308204</id><published>2009-12-23T21:45:00.000-08:00</published><updated>2009-12-23T21:56:41.960-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><title type='text'>VHDL code for Half Adder</title><content type='html'>library ieee;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity bejoy_ha is&lt;br /&gt;&lt;br /&gt;port (a,b : in bit ;&lt;br /&gt;&lt;br /&gt;           s,c : out bit);&lt;br /&gt;&lt;br /&gt;end bejoy_ha;&lt;br /&gt;&lt;br /&gt;architecture arc of bejoy_ha is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;s&lt;= a xor b;&lt;br /&gt;c &lt;= a and b;&lt;br /&gt;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-8131380667952308204?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/8131380667952308204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-half-adder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8131380667952308204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8131380667952308204'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-code-for-half-adder.html' title='VHDL code for Half Adder'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3649175202397286638.post-8046923923605729804</id><published>2009-12-23T20:44:00.000-08:00</published><updated>2009-12-23T22:12:38.704-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VHDL Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Gates'/><title type='text'>VHDL code for Basic Gates</title><content type='html'>&lt;span style="font-weight: bold;font-size:130%;" &gt;AND Gate&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity and_gate is&lt;br /&gt;&lt;br /&gt;port (a,b : in std_logic ;&lt;br /&gt;&lt;br /&gt;c : out std_logic);&lt;br /&gt;&lt;br /&gt;end and_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of and_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c &lt;= a and b;  end arc;   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;OR Gate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity or_gate is&lt;br /&gt;&lt;br /&gt;port (a,b : in std_logic ;&lt;br /&gt;&lt;br /&gt;c : out std_logic);&lt;br /&gt;&lt;br /&gt;end or_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of or_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c &lt;= a or b;   end arc;   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;NOT Gate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity not_gate is&lt;br /&gt;&lt;br /&gt;port (a: in std_logic ;&lt;br /&gt;&lt;br /&gt;b : out std_logic);&lt;br /&gt;&lt;br /&gt;end not_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of not_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;b &lt;= not a;   end arc;   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;NAND Gate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity nand_gate is&lt;br /&gt;&lt;br /&gt;port (a,b : in std_logic ;&lt;br /&gt;&lt;br /&gt;c : out std_logic);&lt;br /&gt;&lt;br /&gt;end nand_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of nand_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c &lt;= a or b;   end arc;   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;NOR Gate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity nor_gate is&lt;br /&gt;&lt;br /&gt;port (a,b : in std_logic ;&lt;br /&gt;&lt;br /&gt;c : out std_logic);&lt;br /&gt;&lt;br /&gt;end nor_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of nor_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c &lt;= a nor b;   end arc;   &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;XOR Gate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;library ieee;&lt;br /&gt;&lt;br /&gt;use ieee.std_logic_1164.all;&lt;br /&gt;&lt;br /&gt;entity xor_gate is&lt;br /&gt;&lt;br /&gt;port (a,b : in std_logic ;&lt;br /&gt;&lt;br /&gt;c : out std_logic);&lt;br /&gt;&lt;br /&gt;end xor_gate;&lt;br /&gt;&lt;br /&gt;architecture arc of xor_gate is&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;c &lt;= a xor b;&lt;br /&gt;&lt;br /&gt;end arc;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3649175202397286638-8046923923605729804?l=blog.bejoythomas.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.bejoythomas.com/feeds/8046923923605729804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-coding-for-basic-gates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8046923923605729804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3649175202397286638/posts/default/8046923923605729804'/><link rel='alternate' type='text/html' href='http://blog.bejoythomas.com/2009/12/vhdl-coding-for-basic-gates.html' title='VHDL code for Basic Gates'/><author><name>Bejoy Thomas</name><uri>http://www.blogger.com/profile/13816535241940834977</uri><email>contact@bejoythomas.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='01885439884131969517'/></author><thr:total>0</thr:total></entry></feed>