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

📄 eqns.htm

📁 利用XC9572-PQ44(Xilinx CPLD)制作的一款家用防盗报警器的Verilog源代码及原理图
💻 HTM
📖 第 1 页 / 共 3 页
字号:
            pterms["FB4_17_1"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer4_SPECSIG");
          
            pterms["FB4_17_2"]=new Array("state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG","timer7_SPECSIG");
          
            pterms["FB4_17_3"]=new Array("/state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/timer0_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB4_17_4"]=new Array("/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB4_18_1"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","timer4_SPECSIG");
          
            pterms["FB4_18_2"]=new Array("/sw1","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG");
          
            pterms["FB4_18_3"]=new Array("state1_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG");
          
            pterms["FB4_18_4"]=new Array("state3_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG");
          
            pterms["FB4_18_5"]=new Array("state2_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG");
          
          d2["timer6_SPECSIG"]=new Array("FB1_3_1","FB1_3_2","FB1_3_3","FB1_3_4","FB1_3_5","FB1_2_1","FB1_2_2","FB1_2_3","FB1_2_4","FB1_2_5","FB1_4_1","FB1_4_2","FB1_4_3","FB1_4_4","FB1_4_5");
          
            d2imp["timer6_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer6_SPECSIG"]=1;
              gblclk["timer6_SPECSIG"]=new Array("clk5hz");
            prld["timer6_SPECSIG"]="GND";
          d2["led1"]=new Array("FB1_7_1","FB1_7_2","FB1_7_3","FB1_7_4","FB1_7_5","FB1_6_1","FB1_6_2");
          
            d2imp["led1"]=new Array("1","1","1","1","1","1","1");
          clkNegs["led1"]=1;
              gblclk["led1"]=new Array("clk5hz");
            prld["led1"]="GND";
          d2["timer3_SPECSIG"]=new Array("FB1_10_1","FB1_10_2","FB1_9_1","FB1_9_2","FB1_9_3","FB1_9_4","FB1_9_5","FB1_8_1","FB1_8_2","FB1_8_3","FB1_8_4","FB1_8_5");
          
            d2imp["timer3_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer3_SPECSIG"]=1;
              gblclk["timer3_SPECSIG"]=new Array("clk5hz");
            prld["timer3_SPECSIG"]="GND";
          d2["timer1_SPECSIG"]=new Array("FB1_11_1","FB1_11_2","FB1_11_3","FB1_11_4","FB1_11_5","FB1_10_3","FB1_10_4","FB1_10_5","FB1_12_1","FB1_12_2","FB1_12_3","FB1_12_4","FB1_12_5");
          
            d2imp["timer1_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer1_SPECSIG"]=1;
              gblclk["timer1_SPECSIG"]=new Array("clk5hz");
            prld["timer1_SPECSIG"]="GND";
          d2["timer7_SPECSIG"]=new Array("FB1_14_1","FB1_14_2","FB1_14_3","FB1_14_4","FB1_14_5","FB1_13_1","FB1_13_2","FB1_13_3","FB1_13_4","FB1_15_1","FB1_15_2","FB1_15_3","FB1_15_4","FB1_15_5");
          
            d2imp["timer7_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer7_SPECSIG"]=1;
              gblclk["timer7_SPECSIG"]=new Array("clk5hz");
            prld["timer7_SPECSIG"]="GND";
          d2["timer5_SPECSIG"]=new Array("FB1_17_1","FB1_17_2","FB1_17_3","FB1_17_4","FB1_17_5","FB1_16_1","FB1_16_2","FB1_16_3","FB1_16_4","FB1_16_5","FB1_18_2","FB1_18_3","FB1_18_4","FB1_18_5");
          
            d2imp["timer5_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer5_SPECSIG"]=1;
              gblclk["timer5_SPECSIG"]=new Array("clk5hz");
            prld["timer5_SPECSIG"]="GND";
          d2["state2_SPECSIG"]=new Array("FB1_18_1","FB1_1_1","FB1_1_2","FB1_1_3","FB1_1_4","FB1_1_5");
          
            d2imp["state2_SPECSIG"]=new Array("1","1","1","1","1","1");
          clkNegs["state2_SPECSIG"]=1;
              gblclk["state2_SPECSIG"]=new Array("clk5hz");
            prld["state2_SPECSIG"]="GND";
          d2["ring_out"]=new Array("FB2_2_1","FB2_2_2");
          
            d2imp["ring_out"]=new Array("1","1");
          
              trst["ring_out"]=new Array("FB2_2_3");
              
                trstimp["ring_out"]=new Array("1");
              
          d2["alert_phone"]=new Array("FB2_11_1","FB2_11_2","FB2_11_3","FB2_11_4","FB2_11_5","FB2_10_1","FB2_10_2","FB2_10_3","FB2_10_4","FB2_12_1","FB2_12_2","FB2_12_3","FB2_12_4");
          
            d2imp["alert_phone"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["alert_phone"]=1;
              gblclk["alert_phone"]=new Array("clk5hz");
            prld["alert_phone"]="GND";
          d2["power_ctrl"]=new Array("FB2_14_1","FB2_14_2","FB2_14_3","FB2_14_4","FB2_14_5","FB2_13_1","FB2_15_1");
          
            d2imp["power_ctrl"]=new Array("1","1","1","1","1","1","1");
          clkNegs["power_ctrl"]=1;
              gblclk["power_ctrl"]=new Array("clk5hz");
            prld["power_ctrl"]="VCC";
          d2["ring_en"]=new Array("FB3_17_1","FB3_17_2","FB3_17_3","FB3_17_4","FB3_17_5","FB3_16_1","FB3_16_2","FB3_16_3","FB3_16_4","FB3_16_5","FB3_18_1","FB3_18_2","FB3_18_3","FB3_18_4","FB3_18_5");
          
            d2imp["ring_en"]=new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["ring_en"]=1;
              gblclk["ring_en"]=new Array("clk5hz");
            prld["ring_en"]="GND";
          d2["state1_SPECSIG"]=new Array("FB4_2_1","FB4_2_2","FB4_2_3","FB4_2_4","FB4_2_5","FB4_1_1","FB4_1_2","FB4_1_3","FB4_1_4","FB4_1_5");
          
            d2imp["state1_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1");
          clkNegs["state1_SPECSIG"]=1;
              gblclk["state1_SPECSIG"]=new Array("clk5hz");
            prld["state1_SPECSIG"]="GND";
          d2["alert_sound"]=new Array("FB4_5_1","FB4_5_2","FB4_5_3","FB4_5_4","FB4_5_5","FB4_4_1","FB4_4_2","FB4_4_3","FB4_6_1","FB4_6_2","FB4_6_3");
          
            d2imp["alert_sound"]=new Array("1","1","1","1","1","1","1","1","1","1","1");
          clkNegs["alert_sound"]=1;
              gblclk["alert_sound"]=new Array("clk5hz");
            prld["alert_sound"]="GND";
          d2["timer2_SPECSIG"]=new Array("FB4_8_1","FB4_8_2","FB4_8_3","FB4_8_4","FB4_8_5","FB4_7_1","FB4_7_2","FB4_7_3","FB4_7_4","FB4_7_5");
          
            d2imp["timer2_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1","1");
          clkNegs["timer2_SPECSIG"]=1;
              gblclk["timer2_SPECSIG"]=new Array("clk5hz");
            prld["timer2_SPECSIG"]="GND";
          d2["state0_SPECSIG"]=new Array("FB4_11_1","FB4_11_2","FB4_11_3","FB4_11_4","FB4_11_5","FB4_10_1","FB4_10_2","FB4_10_3","FB4_12_1");
          
            d2imp["state0_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1");
          clkNegs["state0_SPECSIG"]=1;
              gblclk["state0_SPECSIG"]=new Array("clk5hz");
            prld["state0_SPECSIG"]="GND";
          d2["state3_SPECSIG"]=new Array("FB4_13_1","FB4_13_2","FB4_13_3","FB4_13_4","FB4_13_5","FB4_14_1","FB4_14_2","FB4_14_3","FB4_14_4");
          
            d2imp["state3_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1");
          clkNegs["state3_SPECSIG"]=1;
              gblclk["state3_SPECSIG"]=new Array("clk5hz");
            prld["state3_SPECSIG"]="GND";
          d2["timer0_SPECSIG"]=new Array("FB4_15_1","FB4_15_2","FB4_15_3","FB4_15_4","FB4_15_5","FB4_16_1","FB4_16_2","FB4_16_3","FB4_16_4");
          
            d2imp["timer0_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1");
          clkNegs["timer0_SPECSIG"]=1;
              gblclk["timer0_SPECSIG"]=new Array("clk5hz");
            prld["timer0_SPECSIG"]="GND";
          d2["timer4_SPECSIG"]=new Array("FB4_18_1","FB4_18_2","FB4_18_3","FB4_18_4","FB4_18_5","FB4_17_1","FB4_17_2","FB4_17_3","FB4_17_4");
          
            d2imp["timer4_SPECSIG"]=new Array("1","1","1","1","1","1","1","1","1");
          clkNegs["timer4_SPECSIG"]=1;
              gblclk["timer4_SPECSIG"]=new Array("clk5hz");
            prld["timer4_SPECSIG"]="GND";

      uimSignals = new Array();

      uimSigNegs = new Array();

      uimPterms = new Array();
      

      
        function getEqnList() {
          var str = "<html><head><link type='text/css' href='style.css' rel='stylesheet'></head><body class='pgBgnd'>";
          str += "<center><h3>Equations</h3></center>";
          str += "<table width='90%' align='center' border='1' cellpadding='0' cellspacing='0'>";
          for (s=0; s<uimSignals.length; s++) {
            str += "<tr><td>";
            str += retUimEqn(uimSignals[s]);
            str += "</td></tr>";
          }
          for (s=0; s<signals.length; s++) {
            str += "<tr><td>";
            str += retEqn(signals[s]);
            str += "</td></tr>";
          }

          var legend = retLegend();
		      if (legend != "") {
		        str += "<tr><td>" + legend + "</td></tr>";
		      }

          str += "</table>";
          str += "<form><span class='pgRef'>";

          if (!parent.leftnav.IsNS()) {
            str += "<table width='90%' align='center'>";
            str += "<tr><td align='left'><input type='button' value='back to top' ";
            str += "onclick='javascript:parent.leftnav.showEqnAll()' ";
            str += "onmouseover=\"window.status='goto top of page'; return true;\" ";
            str += "onmouseout=\"window.status=''\">";
            str += "</td>";
            str += "<td align='right'>";
            str += "<input type='button' value='print page' ";
            str += "onclick='javascript:window.print()' ";
            str += "onmouseover=\"window.status='print page'; return true;\" ";
            str += "onmouseout=\"window.status=''\">";
            str += "</td>";
            str += "</tr></table>";
          }
          else {
            str += "<table width='90%' align='center'>";
            str += "<tr><td align='left'><a href='javascript:parent.leftnav.showEqnAll()'>back to top</a>";
            str += "</td>";
            str += "<td align='right'>";
            str += "<a href='javascript:window.print()'>";
            str += "print page</a>";
            str += "</td>";
            str += "</tr></table>";
          }

          str += "</span></form>";
          str += "</body></html>";
          return str;
        }
      
    </script>
</head></html>

⌨️ 快捷键说明

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