⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verilog hdl examples.htm

📁 verilog的入门级别的例子(转载)
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0059)http://www.altera.com/support/examples/verilog/verilog.html -->
<HTML><HEAD><TITLE>Verilog HDL Examples</TITLE>
<META 
content="support, technical support, Atlas, solutions, devices, example, arithmetic " 
name=keywords>
<META 
content="The following examples provide instructions for implementing functions using Verilog hardware description language (HDL)." 
name=description>
<META content=2002-08-28 name=date>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK 
href="Verilog HDL Examples.files/style.css" type=text/css rel=stylesheet><LINK 
href="Verilog HDL Examples.files/style_form.css" type=text/css rel=stylesheet><!--stopindex-->
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" 
marginwidth="0"><!-- Toolbar Header -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 nowrap>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 nowrap>
        <TBODY>
        <TR>
          <TD align=left bgColor=#0182c4><IMG height=60 alt="Altera Homepage" 
            src="Verilog HDL Examples.files/altera_left.jpg" width=578 
            align=left useMap=#banner_l border=0><MAP name=banner_l><AREA 
              shape=RECT coords=9,16,158,55 
              href="http://www.altera.com/index.jsp"></MAP></TD>
          <TD align=right bgColor=#0182c4><IMG height=62 
            alt="Altera Quicklinks" 
            src="Verilog HDL Examples.files/altera_right.gif" width=181 
            useMap=#altera_right border=0><MAP name=altera_right><AREA 
              title=Download shape=RECT alt=Download coords=5,8,54,54 
              href="http://www.altera.com/support/software/sof-download_center.html"><AREA 
              title=Licensing shape=RECT alt=Licensing coords=63,11,110,54 
              href="http://www.altera.com/support/licensing/lic-index.html"><AREA 
              title=Literature shape=RECT alt=Literature coords=122,10,170,56 
              href="http://www.altera.com/literature/lit-index.html"></MAP></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=161 bgColor=#0182c4 height=2>&nbsp;</TD><!-- begin top level navigation (top) -->
          <TD bgColor=#000000 colSpan=3 height=2><IMG height=19 
            alt="Global Navigation Bar" 
            src="Verilog HDL Examples.files/support.gif" width=617 
            useMap=#support border=0><MAP name=support><AREA shape=RECT 
              alt="Altera Home" coords=0,0,54,19 
              href="http://www.altera.com/index.jsp"><AREA shape=RECT 
              alt="Altera Products" coords=56,0,127,19 
              href="http://www.altera.com/products/prd-index.html"><AREA 
              shape=RECT alt="Altera Support Center" coords=130,0,198,19 
              href="http://www.altera.com/support/spt-index.html"><AREA 
              shape=RECT alt="Altera System Solutions" coords=200,0,315,19 
              href="http://www.altera.com/solutions/sln-index.html"><AREA 
              shape=RECT alt="Altera Education" coords=318,0,442,19 
              href="http://www.altera.com/education/edu-index.html"><AREA 
              shape=RECT alt="Altera Buy On-Line" coords=445,0,534,19 
              href="http://buy.altera.com/ecommerce/index.html"><AREA shape=RECT 
              alt="Altera Corporate" coords=538,0,608,19 
              href="http://www.altera.com/corporate/crp-index.html"></MAP></TD><!-- end top level navigation (top) --></TR>
        <TR>
          <TD bgColor=#e0e0e0 height=2><IMG height=19 alt="Search Here" 
            src="Verilog HDL Examples.files/search.gif" width=161 border=0></TD><!-- begin second level navigation (top) -->
          <TD bgColor=#747474 colSpan=3 height=2><IMG height=19 
            alt="Second Level Navigation Bar" 
            src="Verilog HDL Examples.files/support_examples.gif" width=617 
            useMap=#support_examples border=0><MAP name=support_examples><AREA 
              shape=RECT alt="Altera mySupport" coords=0,2,87,17 
              href="http://www.altera.com/mysupport"><AREA shape=RECT 
              alt="Knowledge Database" coords=92,0,224,18 
              href="http://www.altera.com/support/kdb/spt-search_kdb.html"><AREA 
              shape=RECT alt=Software coords=231,0,305,19 
              href="http://www.altera.com/support/software/sof-index.html"><AREA 
              shape=RECT alt="Altera Devices" coords=308,1,381,18 
              href="http://www.altera.com/support/devices/dvs-index.html"><AREA 
              shape=RECT alt="Design Examples" coords=390,1,524,21 
              href="http://www.altera.com/support/examples/exm-index.html"></MAP></TD><!-- end second level navigation (top) --></TR>
        <TR>
          <TD vAlign=top align=middle width=161 bgColor=#e0e0e0 height="1%">
            <SCRIPT language=JavaScript>
			document.writeln("<form name='search_altera' method=GET accept-charset='iso-8859-1' action='/cgi-bin/devsearch.pl'>");
			document.writeln("	<table border=0 cellpadding=3 cellspacing=0 bgcolor=#e0e0e0>");
			document.writeln("	<tr> ");
			document.writeln("		<td valign=middle height='1'>");
			document.writeln("			<input type=hidden name=col value='corp'>");
			document.write("			<input type=text name=qt maxlength=180 size=");
			if (navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0) {
				document.writeln("11>");
			} else {
				document.writeln("6>");
			}
			document.writeln("<input type=image value=GO name='submit' src='/common/template/go.gif' width='27' height='27' align='absmiddle' alt='GO' border='0'>");

			document.writeln("		</td>");
			document.writeln("	</tr>");
			document.writeln("<tr><td>&nbsp;<font class='footer'><a href='http://search.altera.com/?ql=a'>Advanced</a>");
			document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://search.altera.com/help/?la=en'>Help</a></font></td></tr>");
			document.writeln("	</table>");
			document.writeln("</form>");
	</SCRIPT>
            <NOSCRIPT>
            <FORM name=search_altera accept-charset=iso-8859-1 
            action=/cgi-bin/devsearch.pl method=get>
            <TABLE cellSpacing=0 cellPadding=3 bgColor=#e0e0e0 border=0>
              <TBODY>
              <TR>
                <TD vAlign=center height=1><INPUT type=hidden value=corp 
                  name=col> <INPUT maxLength=180 size=6 name=qt> <INPUT 
                  type=image height=27 alt=GO width=27 
                  src="Verilog HDL Examples.files/go.gif" align=absMiddle 
                  value=GO border=0 name=submit> </TD></TR>
              <TR>
                <TD>&nbsp;<FONT class=footer><A 
                  href="http://search.altera.com/?ql=a">Advanced</A> 
                  &nbsp;&nbsp;&nbsp;<A 
                  href="http://search.altera.com/help/?la=en">Help</A></FONT></TD></TR></TBODY></TABLE></FORM></NOSCRIPT>
            <P>
            <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD vAlign=top bgColor=#e0e0e0>
                  <TABLE style="br: 6pt" cellSpacing=0 cellPadding=0 width=161 
                  bgColor=#e0e0e0 border=0>
                    <TBODY>
                    <TR>
                      <TD rowSpan=50><IMG height=4 alt="" 
                        src="Verilog HDL Examples.files/spacer.gif" width=4 
                        border=0></TD>
                      <TD></TD></TR><!-- begin left navigation -->
                    <TR>
                      <TD class=category><BR><B>Devices</B></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/stratix/exm-stratix.html">Stratix</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/cyclone/exm-cyclone.html">Cyclone</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/exm-apex2.html">APEX 
                        II</A></TD></TR>
                    <TR>
                      <TD class=category><BR><B>Functionality</B></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/exm-arithmetic.html">Arithmetic</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/exm-memory.html">Memory</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/exm-bus_io.html">Bus 
                        &amp; I/O</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/exm-logic.html">Logic</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/dsp/exm-dsp.html">DSP</A></TD></TR>
                    <TR>
                      <TD class=category><BR><B>Entry Method</B></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/quartus/quartus.html">Quartus 
                        II Projects</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/tcl/tcl.html">TCL</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/vhdl/vhdl.html">VHDL</A></TD></TR>
                    <TR>
                      <TD class=menu bgColor=white>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/verilog/verilog.html"><FONT 
                        color=#ff6600>Verilog HDL</FONT></A></TD></TR>
                    <TR>
                      <TD class=submenu bgColor=white></TD>
                    <TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/ged/ged.html">Graphic 
                        Editor</A></TD></TR>
                    <TR>
                      <TD class=menu>&nbsp;&nbsp;<A class=menu 
                        href="http://www.altera.com/support/examples/ahdl/ahdl.html">AHDL</A></TD></TR><!-- end left navigation --></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD width=15 rowSpan=3><IMG height=15 alt="" 
            src="Verilog HDL Examples.files/spacer.gif" width=15 border=0></TD>
          <TD vAlign=top bgColor=#ffffff rowSpan=3><BR><!--startindex--><!-- begin content --><!-- begin content -->
            <P>
            <H2>Verilog HDL Examples</H2>
            <P>The following examples provide instructions for implementing 
            functions using Verilog hardware description language (HDL). For 
            more information on Verilog HDL, refer to Quartus<FONT 
            size=-1><SUP>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -