<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Verilog HDL | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/electronics/verilog-hdl/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Wed, 13 Apr 2022 13:48:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Verilog program for Full Adder using dataflow style with select statement</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 13:48:45 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9056</guid>

					<description><![CDATA[<p>AIM: Design and verify full adder by using dataflow style with select statement PROGRAM: SIMULATION OUTPUT: RESULT: Full adder is simulated and verified</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/">Verilog program for Full Adder using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full adder by using dataflow style with select statement</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">Library ieee;
use ieee.std_logic_1164.all; 
entity fa_select1 is
port(a,b,c:in bit; 
sum,carry:out bit); 
end fa_select1;
architecture df of fa_select1 is begin
with bit_vector'(a,b,c) select (sum,carry)&lt;=bit_vector'("00") when "000" , bit_vector'("10") when "001",
bit_vector'("10") when "010",
bit_vector'("10") when "100",
bit_vector'("01") when "110",
bit_vector'("01") when "011",
bit_vector'("01" )when "101",
bit_vector'("11") when "111"; end df;
</code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="481" height="195" src="https://studentprojects.in/wp-content/uploads/2022/04/image3.png" alt="" class="wp-image-9057" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image3.png 481w, https://studentprojects.in/wp-content/uploads/2022/04/image3-300x122.png 300w" sizes="(max-width: 481px) 100vw, 481px" /></figure></div>



<p><strong>RESULT: Full adder is simulated and verified</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/">Verilog program for Full Adder using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog program for Full Subtractor by using a behavioral model with if,elsif&#038; then statements.</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 13:39:30 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9051</guid>

					<description><![CDATA[<p>AIM: Design and verify full subtractor by using dataflow style with select statement. PROGRAM: SIMULATION OUTPUT: RESULT: Full subtractor using dataflow style with select statement is simulated and verified.</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/">Verilog program for Full Subtractor by using a behavioral model with if,elsif& then statements.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full subtractor by using dataflow style with select statement.</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">library ieee;
use ieee.std_logic_1164.all; 
entity flsub_select is
port(a:in bit_vector(2 downto 0); 
s:out bit_vector(1 downto 0)); 
end flsub_select;
architecture beh of flsub_select is begin
with a select
s&lt;=("00") when "000",
("11") when "001",
("11") when "010",
("01") when "011",
("10") when "100",
("00") when "101",
("00") when "110",
("11") when "111";
end beh; </code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2022/04/image2.png" alt="" class="wp-image-9052" width="478" height="229" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image2.png 479w, https://studentprojects.in/wp-content/uploads/2022/04/image2-300x144.png 300w" sizes="(max-width: 478px) 100vw, 478px" /></figure></div>



<p><strong>RESULT: Full subtractor using dataflow style with select statement is simulated and verified.</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/">Verilog program for Full Subtractor by using a behavioral model with if,elsif& then statements.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog program for Full Adder by using dataflow style with select statement</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/full-adder/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/full-adder/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 09:36:14 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9045</guid>

					<description><![CDATA[<p>AIM: Design and verify full adder by using dataflow style with select statement. PROGRAM: SIMULATION OUTPUT: RESULT: Full adder using dataflow style with select statement is simulated and Verified.</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/full-adder/">Verilog program for Full Adder by using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full adder by using dataflow style with select statement.</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">Library ieee;
use ieee.std_logic_1164.all; entity fa_select is
port(a:in bit_vector(2 downto 0); 
s:out bit_vector(1 downto 0)); end fa_select ;
architecture beh of fa_select is begin
with a select
s&lt;=("00")when"000",
("10")when"001",
("10")when"010",
("01")when"011",
("10")when"100",
("01")when"101",
("01")when"110",
("11")when"111";
end beh; </code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="480" height="229" src="https://studentprojects.in/wp-content/uploads/2022/04/image1.png" alt="" class="wp-image-9046" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image1.png 480w, https://studentprojects.in/wp-content/uploads/2022/04/image1-300x143.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></figure></div>



<p><strong>RESULT: Full adder using dataflow style with select statement is simulated and Verified.</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/full-adder/">Verilog program for Full Adder by using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/full-adder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for detecting whether a given number is Prime or not</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-detecting-whether-a-given-number-is-prime-or-not/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-detecting-whether-a-given-number-is-prime-or-not/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 10:06:14 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[prime number]]></category>
		<category><![CDATA[verilog pragram]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3275</guid>

					<description><![CDATA[<p>Verilog HDL Program for detecting whether a given number is Prime or not. module primenum3(o,i); output o; input [10:0]i; integer k; reg o; always @(i) begin k=i; if(i[0]==1'b0) begin o=1'b0; $display("not prime"); end else begin if(k==3 &#124; k==5 &#124; k==7 &#124; k==11 &#124; k==13 &#124; k==17 &#124; k==19) begin o=1'b1; $display("prime"); end else if(k%3==0 &#124;</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-detecting-whether-a-given-number-is-prime-or-not/">Verilog HDL Program for detecting whether a given number is Prime or not</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for detecting whether a given number is Prime or not.</p>
<pre lang="Verilog" line="1">
module primenum3(o,i);
    output o; input [10:0]i; integer k; reg o;
    always @(i)
    begin
    k=i;
    if(i[0]==1'b0)
       begin   o=1'b0; $display("not prime");  end
       else 
       begin
       if(k==3 | k==5 | k==7 | k==11 | k==13 | k==17 | k==19)
       begin  o=1'b1; $display("prime"); end
       else if(k%3==0 | k%5==0 | k%7==0 | k%11==0 | k%13==0 | k%17==0 | k%19==0)
       begin   o=1'b0;  $display("not prime");    end 
       else
       begin   o=1'b1;  $display("prime");        end
       end
        if(i==10'b00 | i==10'b010)
        begin o=1'b1; $display("prime");  end
     end
 endmodule
</pre>
<p><figure id="attachment_3276" aria-describedby="caption-attachment-3276" style="width: 615px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-detecting-whether-a-given-number-is-Prime-or-not.jpg" alt="Simulated waveform for detecting whether a given number is Prime or not" title="Simulated waveform for detecting whether a given number is Prime or not" width="615" height="33" class="size-full wp-image-3276" /><figcaption id="caption-attachment-3276" class="wp-caption-text">Simulated waveform for detecting whether a given number is Prime or not</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-detecting-whether-a-given-number-is-prime-or-not/">Verilog HDL Program for detecting whether a given number is Prime or not</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-detecting-whether-a-given-number-is-prime-or-not/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for Random Number Generator</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-random-number-generator/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-random-number-generator/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 10:04:15 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[lab program]]></category>
		<category><![CDATA[Random Number Generator]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[Verilog program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3272</guid>

					<description><![CDATA[<p>Verilog HDL Program for Random Number Generator. module tff(q,t,c); output q; input t,c; reg q; initial begin q=1'b1; end always @ (posedge c) begin if (t==1'b0) begin q=q; end else begin q=~q; end end endmodule module tff1(q,t,c); output q; input t,c; reg q; initial begin q=1'b0; end always @ (posedge c) begin if (t==1'b0) begin</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-random-number-generator/">Verilog HDL Program for Random Number Generator</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for Random Number Generator.</p>
<pre lang="Verilog" line="1">
module tff(q,t,c);
    output q;
    input t,c;
    reg q;
    initial 
     begin 
      q=1'b1;
     end
    always @ (posedge c)
    begin
        if (t==1'b0) begin q=q; end
        else begin q=~q;  end
    end
endmodule

module tff1(q,t,c);
    output q;
    input t,c;
    reg q;
    initial 
     begin 
      q=1'b0;
     end
    always @ (posedge c)
    begin
        if (t==1'b0) begin q=q; end
        else begin q=~q;  end
    end
endmodule

module random(o,clk);
    output [3:0]o;      input clk;
    xor (t0,o[3],o[2]);
    assign t1=o[0];
    assign t2=o[1];
    assign t3=o[2];
    tff u1(o[0],t0,clk);
    tff1 u2(o[1],t1,clk);
    tff1 u3(o[2],t2,clk);
    tff1 u4(o[3],t3,clk);
endmodule
</pre>
<p><figure id="attachment_3273" aria-describedby="caption-attachment-3273" style="width: 615px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-Random-Number-Generator.jpg" alt="Simulated waveform for Random Number Generator" title="Simulated waveform for Random Number Generator" width="615" height="32" class="size-full wp-image-3273" /><figcaption id="caption-attachment-3273" class="wp-caption-text">Simulated waveform for Random Number Generator</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-random-number-generator/">Verilog HDL Program for Random Number Generator</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-random-number-generator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for the function f=x&gt;&gt;3 + x</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-the-function-fx3-x/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-the-function-fx3-x/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 10:02:06 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[Verilog program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3268</guid>

					<description><![CDATA[<p>Verilog HDL Program for the function f=x>>3 + x3; b=x</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-the-function-fx3-x/">Verilog HDL Program for the function f=x>>3 + x<<4</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for the function f=x>>3 + x<<4.



<pre lang="Verilog" line="1">
module sftsum(f,x);
    output [3:0]f;
    input [3:0]x;
    reg [3:0]f;
    reg [3:0]a,b;
    always @ (x)
    begin
        a=x>>3;
        b=x<<4;
        f=a+b;
    end
endmodule
</pre>
<p><figure id="attachment_3269" aria-describedby="caption-attachment-3269" style="width: 728px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-the-function.jpg" alt="Simulated waveform for the function f=x&gt;&gt;3 + x&lt;&lt;4" title="Simulated waveform for the function f=x&gt;&gt;3 + x&lt;&lt;4" width="728" height="79" class="size-full wp-image-3269" /><figcaption id="caption-attachment-3269" class="wp-caption-text">Simulated waveform for the function f=x&gt;&gt;3 + x&lt;&lt;4</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-the-function-fx3-x/">Verilog HDL Program for the function f=x>>3 + x<<4</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-the-function-fx3-x/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for Carry Save Adder</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-carry-save-adder/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-carry-save-adder/#comments</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 09:59:39 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[Carry Save Adder]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[verilog]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3265</guid>

					<description><![CDATA[<p>Verilog HDL Program for Carry Save Adder. module carrysave(s,c,a,b); output [3:0]s; output c; input [3:0]a,b; wire [2:0]c2,c0; fa u1(s[0],c0[0],a[0],b[0],1'b0); dff1 u2(c2[0],c0[0],clk); fa u3(s[1],c0[1],a[1],b[1],c2[0]); dff1 u4(c2[1],c0[1],clk); fa u5(s[2],c0[2],a[2],b[2],c2[1]); dff1 u6(c2[2],c0[2],clk); fa u7(s[3],c,a[3],b[3],c2[2]); endmodule</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-carry-save-adder/">Verilog HDL Program for Carry Save Adder</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for Carry Save Adder.</p>
<pre lang="Verilog" line="1">
module carrysave(s,c,a,b);
    output [3:0]s;
    output c;
    input [3:0]a,b;
    wire [2:0]c2,c0;
    fa u1(s[0],c0[0],a[0],b[0],1'b0);
    dff1 u2(c2[0],c0[0],clk);
    fa u3(s[1],c0[1],a[1],b[1],c2[0]);
    dff1 u4(c2[1],c0[1],clk);
    fa u5(s[2],c0[2],a[2],b[2],c2[1]);
    dff1 u6(c2[2],c0[2],clk);
    fa u7(s[3],c,a[3],b[3],c2[2]);
endmodule
</pre>
<p><figure id="attachment_3266" aria-describedby="caption-attachment-3266" style="width: 658px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-Carry-Save-Adder.jpg" alt="Simulated waveform for Carry Save Adder" title="Simulated waveform for Carry Save Adder" width="658" height="142" class="size-full wp-image-3266" /><figcaption id="caption-attachment-3266" class="wp-caption-text">Simulated waveform for Carry Save Adder</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-carry-save-adder/">Verilog HDL Program for Carry Save Adder</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-carry-save-adder/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for Counting Number of 1’s in a Vector</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-counting-number-of-1s-in-a-vector/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-counting-number-of-1s-in-a-vector/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 09:57:24 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[vlsi programs]]></category>
		<category><![CDATA[vector]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3262</guid>

					<description><![CDATA[<p>Verilog HDL Program for Counting Number of 1’s in a Vector. module count1(o1,o0,i); // 4-bit vector output [2:0]o1,o0; // o1: Number of 1’s in vector, o0: Number of 0’s in vector input [3:0]i; wire [2:0]o; wire [3:1]c; ha u1(o[0],c0,i[0],i[1]); ha u2(o[1],c1,o[0],i[2]); ha u3(o[2],c2,o[1],i[3]); ha u4(c[1],c3,c1,c0); ha u5(c[2],c[3],c[1],c2); assign o1={c[3],c[2],o[2]}; pasub31 u6(o0,3'b100,o1); endmodule module pasub31(d,a,b);//a-b output</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-counting-number-of-1s-in-a-vector/">Verilog HDL Program for Counting Number of 1’s in a Vector</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for Counting Number of 1’s in a Vector.</p>
<pre lang="Verilog" line="1">
module count1(o1,o0,i); // 4-bit vector
    output [2:0]o1,o0; // o1: Number of 1’s in vector, o0: Number of 0’s in vector
    input [3:0]i;    wire [2:0]o;    wire [3:1]c;
    ha u1(o[0],c0,i[0],i[1]);
    ha u2(o[1],c1,o[0],i[2]);
    ha u3(o[2],c2,o[1],i[3]);
    ha u4(c[1],c3,c1,c0);
    ha u5(c[2],c[3],c[1],c2);
    assign o1={c[3],c[2],o[2]};
    pasub31 u6(o0,3'b100,o1);
endmodule

module pasub31(d,a,b);//a-b
    output [2:0]d;     input [2:0]a;     input [2:0]b;
    hs u1(d[0],c1,a[0],b[0]);
    fs u2(d[1],c2,a[1],b[1],c1);
    fs u3(d[2],c,a[2],b[2],c2);
endmodule
</pre>
<p><figure id="attachment_3263" aria-describedby="caption-attachment-3263" style="width: 615px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-Counting-Number-of-1’s-in-a-Vector.jpg" alt="Simulated waveform for Counting Number of 1’s in a Vector" title="Simulated waveform for Counting Number of 1’s in a Vector" width="615" height="49" class="size-full wp-image-3263" /><figcaption id="caption-attachment-3263" class="wp-caption-text">Simulated waveform for Counting Number of 1’s in a Vector</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-counting-number-of-1s-in-a-vector/">Verilog HDL Program for Counting Number of 1’s in a Vector</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-counting-number-of-1s-in-a-vector/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for Serial Parallel Multiplier</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-serial-parallel-multiplier/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-serial-parallel-multiplier/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 09:55:17 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[verilog hdl]]></category>
		<category><![CDATA[Serial Parallel Multiplier]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[Verilog lab programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3259</guid>

					<description><![CDATA[<p>Verilog HDL Program for Serial Parallel Multiplier. module spm(s,m,q); output [7:0]s; input [3:0]m,q; and1 u1(s[0],m[0],q[0]); and1 u2(s1,m[0],q[1]); and1 u3(s2,m[0],q[2]); and1 u4(s3,m[0],q[3]); and1 u5(s4,m[1],q[0]); and1 u6(s5,m[1],q[1]); and1 u7(s6,m[1],q[2]); and1 u8(s7,m[1],q[3]); and1 u9(s8,m[2],q[0]); and1 u10(s9,m[2],q[1]); and1 u11(s10,m[2],q[2]); and1 u12(s11,m[2],q[3]); and1 u13(s12,m[3],q[0]); and1 u14(s13,m[3],q[1]); and1 u15(s14,m[3],q[2]); and1 u16(s15,m[3],q[3]); parad4 u21({s18,s17,s16,s[1]},c3,{s7,s6,s5,s4},{1'b0,s3,s2,s1}); parad4 u22({s21,s20,s19,s[2]},c7,{c3,s18,s17,s16},{s11,s10,s9,s8}); parad4 u23({s[6],s[5],s[4],s[3]},s[7],{c7,s21,s20,s19},{s15,s14,s13,s12}); endmodule module parad4(a,c,p,q); //</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-serial-parallel-multiplier/">Verilog HDL Program for Serial Parallel Multiplier</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for Serial Parallel Multiplier.</p>
<pre lang="Verilog" line="1">
module spm(s,m,q);
    output [7:0]s;
    input [3:0]m,q;
    and1 u1(s[0],m[0],q[0]);
    and1 u2(s1,m[0],q[1]);
    and1 u3(s2,m[0],q[2]);
    and1 u4(s3,m[0],q[3]);
    and1 u5(s4,m[1],q[0]);
    and1 u6(s5,m[1],q[1]);
    and1 u7(s6,m[1],q[2]);
    and1 u8(s7,m[1],q[3]);
    and1 u9(s8,m[2],q[0]);
    and1 u10(s9,m[2],q[1]);
    and1 u11(s10,m[2],q[2]);
    and1 u12(s11,m[2],q[3]);
    and1 u13(s12,m[3],q[0]);
    and1 u14(s13,m[3],q[1]);
    and1 u15(s14,m[3],q[2]);
    and1 u16(s15,m[3],q[3]);
    parad4 u21({s18,s17,s16,s[1]},c3,{s7,s6,s5,s4},{1'b0,s3,s2,s1});
    parad4 u22({s21,s20,s19,s[2]},c7,{c3,s18,s17,s16},{s11,s10,s9,s8});
    parad4 u23({s[6],s[5],s[4],s[3]},s[7],{c7,s21,s20,s19},{s15,s14,s13,s12});
endmodule

module parad4(a,c,p,q); // Parallel Adder Module
    output [3:0]a;     output c;     input [3:0]p,q;    wire c1,c2,c3;
    ha u1(a[0],c1,p[0],q[0]);
    fa u2(a[1],c2,p[1],q[1],c1);
    fa u3(a[2],c3,p[2],q[2],c2);
    fa u4(a[3],c,p[3],q[3],c3);
endmodule
</pre>
<p><figure id="attachment_3260" aria-describedby="caption-attachment-3260" style="width: 731px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-Serial-Parallel-Multiplier.jpg" alt="Simulated waveform for Serial Parallel Multiplier" title="Simulated waveform for Serial Parallel Multiplier" width="731" height="70" class="size-full wp-image-3260" /><figcaption id="caption-attachment-3260" class="wp-caption-text">Simulated waveform for Serial Parallel Multiplier</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-serial-parallel-multiplier/">Verilog HDL Program for Serial Parallel Multiplier</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-serial-parallel-multiplier/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for Decade Counter</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-decade-counter/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-decade-counter/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 09:52:53 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[Decade Counter]]></category>
		<category><![CDATA[vlsi]]></category>
		<category><![CDATA[HDL]]></category>
		<category><![CDATA[Verilog programs]]></category>
		<category><![CDATA[lab programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3256</guid>

					<description><![CDATA[<p>Verilog HDL Program for Decade Counter. module mod10(qo,clk); output [3:0]qo; input clk; inv u1(qc,q3); inv u2(qb,q1); inv u3(qa,q0); and1 u4(j3,q1,q0,q2); assign k3=q0; and1 u5(k2,q1,q0); assign j2=k2; and1 u6(j1,qc,q0); assign k1=q0; assign j0=1'b1; assign k0=1'b1; jk1 u11(qo[0],j0,k0,clk); jk1 u12(qo[1],j1,k1,clk); jk1 u13(qo[2],j2,k2,clk); jk1 u14(qo[3],j3,k3,clk); assign {q3,q2,q1,q0}=qo; endmodule</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-decade-counter/">Verilog HDL Program for Decade Counter</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Verilog HDL Program for Decade Counter.</p>
<pre lang="Verilog" line="1">
module mod10(qo,clk);
    output [3:0]qo;
    input clk;
    inv u1(qc,q3);
    inv u2(qb,q1);
    inv u3(qa,q0);
    and1 u4(j3,q1,q0,q2);
    assign k3=q0;
    and1 u5(k2,q1,q0);
    assign j2=k2;
    and1 u6(j1,qc,q0);
    assign k1=q0;
    assign j0=1'b1;
    assign k0=1'b1;
    jk1 u11(qo[0],j0,k0,clk);
    jk1 u12(qo[1],j1,k1,clk);
    jk1 u13(qo[2],j2,k2,clk);
    jk1 u14(qo[3],j3,k3,clk);
    assign {q3,q2,q1,q0}=qo;
endmodule
</pre>
<p><figure id="attachment_3257" aria-describedby="caption-attachment-3257" style="width: 813px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-Waveform-for-Decade-Counter.jpg" alt="Simulated Waveform for Decade Counter" title="Simulated Waveform for Decade Counter" width="813" height="296" class="size-full wp-image-3257" /><figcaption id="caption-attachment-3257" class="wp-caption-text">Simulated Waveform for Decade Counter</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-decade-counter/">Verilog HDL Program for Decade Counter</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-decade-counter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
