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

📄 eqns.htm

📁 利用XC9572-PQ44(Xilinx CPLD)制作的一款家用防盗报警器的Verilog源代码及原理图
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="paths.js"></script><script src="eqns.js"></script><script>
      var design = "main_ctrl";
      var device = "XC9572XL";
      signals = new Array("alert_phone","alert_sound","led1","power_ctrl","ring_en","ring_out","state0_SPECSIG","state1_SPECSIG","state2_SPECSIG","state3_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG","timer7_SPECSIG");
      sigNegs = new Array("OFF","OFF","OFF","ON","OFF","OFF","OFF","OFF","OFF","OFF","ON","ON","ON","ON","OFF","OFF","OFF","OFF");
      sigTypes = new Array("T","T","D","D","T","","T","T","T","D","T","D","D","D","T","T","T","T");

      
        specSig["b_SPECSIG"]=new Array("(b)");
      
        specSig["GCKI_SPECSIG"]=new Array("GCK/I");
      
        specSig["timer1_SPECSIG"]=new Array("timer<1>");
      
        specSig["timer7_SPECSIG"]=new Array("timer<7>");
      
        specSig["timer5_SPECSIG"]=new Array("timer<5>");
      
        specSig["state1_SPECSIG"]=new Array("state<1>");
      
        specSig["timer2_SPECSIG"]=new Array("timer<2>");
      
        specSig["timer0_SPECSIG"]=new Array("timer<0>");
      
        specSig["timer6_SPECSIG"]=new Array("timer<6>");
      
        specSig["timer3_SPECSIG"]=new Array("timer<3>");
      
        specSig["state2_SPECSIG"]=new Array("state<2>");
      
        specSig["state0_SPECSIG"]=new Array("state<0>");
      
        specSig["state3_SPECSIG"]=new Array("state<3>");
      
        specSig["timer4_SPECSIG"]=new Array("timer<4>");
      
            pterms["FB1_1_1"]=new Array("state3_SPECSIG","state0_SPECSIG","state2_SPECSIG");
          
            pterms["FB1_1_2"]=new Array("state3_SPECSIG","state2_SPECSIG","/timer0_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_1_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["FB1_1_4"]=new Array("state1_SPECSIG","state0_SPECSIG","state2_SPECSIG","/timer0_SPECSIG","timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","/timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_1_5"]=new Array("state1_SPECSIG","/state3_SPECSIG","state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","/timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_2_1"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_2_2"]=new Array("state1_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_2_3"]=new Array("state3_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_2_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer1_SPECSIG","/timer2_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_2_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","timer4_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_3_1"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer2_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_3_2"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","timer2_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_3_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","/timer3_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_3_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer3_SPECSIG","timer4_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_3_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer0_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_4_1"]=new Array("/sw1","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_4_2"]=new Array("state2_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_4_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer3_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_4_4"]=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["FB1_4_5"]=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["FB1_6_1"]=new Array("/state1_SPECSIG","state3_SPECSIG","state0_SPECSIG","/state2_SPECSIG");
          
            pterms["FB1_6_2"]=new Array("/state1_SPECSIG","/state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_7_1"]=new Array("sw1","led1");
          
            pterms["FB1_7_2"]=new Array("led1","state1_SPECSIG");
          
            pterms["FB1_7_3"]=new Array("led1","state3_SPECSIG");
          
            pterms["FB1_7_4"]=new Array("led1","state0_SPECSIG");
          
            pterms["FB1_7_5"]=new Array("led1","state2_SPECSIG");
          
            pterms["FB1_8_1"]=new Array("/timer1_SPECSIG","/timer3_SPECSIG");
          
            pterms["FB1_8_2"]=new Array("/timer2_SPECSIG","/timer3_SPECSIG");
          
            pterms["FB1_8_3"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG");
          
            pterms["FB1_8_4"]=new Array("timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG");
          
            pterms["FB1_8_5"]=new Array("/state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/timer0_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_9_1"]=new Array("/timer0_SPECSIG","/timer3_SPECSIG");
          
            pterms["FB1_9_2"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG");
          
            pterms["FB1_9_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer1_SPECSIG");
          
            pterms["FB1_9_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer2_SPECSIG");
          
            pterms["FB1_9_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_10_1"]=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["FB1_10_2"]=new Array("state1_SPECSIG","/state3_SPECSIG","state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","/timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_10_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer2_SPECSIG");
          
            pterms["FB1_10_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_10_5"]=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["FB1_11_1"]=new Array("/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_11_2"]=new Array("/state3_SPECSIG","state0_SPECSIG","state2_SPECSIG","timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","/timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_11_3"]=new Array("/state3_SPECSIG","/state0_SPECSIG","state2_SPECSIG","/timer1_SPECSIG","/timer2_SPECSIG","/timer3_SPECSIG","/timer4_SPECSIG","/timer5_SPECSIG","/timer6_SPECSIG","/timer7_SPECSIG");
          
            pterms["FB1_11_4"]=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["FB1_11_5"]=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["FB1_12_1"]=new Array("timer0_SPECSIG","timer1_SPECSIG");
          
            pterms["FB1_12_2"]=new Array("/timer0_SPECSIG","/timer1_SPECSIG");
          
            pterms["FB1_12_3"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG");
          
            pterms["FB1_12_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG");
          
            pterms["FB1_12_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer3_SPECSIG");
          
            pterms["FB1_13_1"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer1_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_13_2"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer3_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_13_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer1_SPECSIG","/timer2_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_13_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","timer2_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_14_1"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_14_2"]=new Array("/sw1","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_14_3"]=new Array("state1_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_14_4"]=new Array("state3_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_14_5"]=new Array("state2_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG","timer5_SPECSIG","timer6_SPECSIG");
          
            pterms["FB1_15_1"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","/timer3_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_15_2"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","timer4_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_15_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer3_SPECSIG","timer4_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_15_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer0_SPECSIG","timer1_SPECSIG","timer3_SPECSIG","timer7_SPECSIG");
          
            pterms["FB1_15_5"]=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["FB1_16_1"]=new Array("sw1","/state1_SPECSIG","/state3_SPECSIG","/state2_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_16_2"]=new Array("state1_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_16_3"]=new Array("state3_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_16_4"]=new Array("state2_SPECSIG","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_16_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer1_SPECSIG","/timer2_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_17_1"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer4_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_17_2"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer2_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_17_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","timer2_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_17_4"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer1_SPECSIG","/timer3_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_17_5"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","/timer0_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer5_SPECSIG");
          
            pterms["FB1_18_1"]=new Array("state1_SPECSIG","state3_SPECSIG","state2_SPECSIG");
          
            pterms["FB1_18_2"]=new Array("/sw1","timer0_SPECSIG","timer1_SPECSIG","timer2_SPECSIG","timer3_SPECSIG","timer4_SPECSIG");
          
            pterms["FB1_18_3"]=new Array("sw1","state1_SPECSIG","state3_SPECSIG","/state0_SPECSIG","/state2_SPECSIG","timer0_SPECSIG","/timer3_SPECSIG","timer5_SPECSIG");
          

⌨️ 快捷键说明

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