{"id":2135,"date":"2019-02-20T03:44:16","date_gmt":"2019-02-20T03:44:16","guid":{"rendered":""},"modified":"2019-02-20T11:44:54","modified_gmt":"2019-02-20T03:44:54","slug":"%e4%b8%80%e7%a7%8d%e5%9f%ba%e4%ba%8ecpld%e5%8a%a0%e8%bd%bdfpga%e7%9a%84%e6%96%b9%e6%a1%88%e8%ae%be%e8%ae%a1%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2135","title":{"rendered":"\u4e00\u79cd\u57fa\u4e8eCPLD\u52a0\u8f7dFPGA\u7684\u65b9\u6848\u8bbe\u8ba1\u8be6\u89e3"},"content":{"rendered":"
\n\t0 \u5f15\u8a00<\/p>\n
\n\t\u73b0\u4ee3\u901a\u4fe1\u6280\u672f\u53d1\u5c55\u65e5\u65b0\u6708\u5f02\uff0c\u901a\u4fe1\u7cfb\u7edf\u5fc5\u987b\u5177\u5907\u826f\u597d\u7684\u53ef\u5347\u7ea7\u80fd\u529b\u4ee5\u9002\u5e94\u65f6\u4ee3\u7684\u53d1\u5c55\u3002\u73b0\u573a\u53ef\u7f16\u7a0b\u95e8\u9635\u5217\uff08Field Program<\/u>mable Gate<\/u> Array\uff0cFPGA<\/u>\uff09\u7531\u4e8e\u540c\u65f6\u5177\u5907\u786c\u4ef6\u7535\u8def<\/u>\u9ad8\u901f\u8fd0\u884c\u548c\u8f6f\u4ef6\u53ef\u7f16\u7a0b\u7684\u53cc\u91cd\u4f18\u70b9\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u901a\u4fe1\u9886\u57df\u4e2d\u3002FPGA\u5728\u4e0a\u7535\u540e\uff0c\u9700\u8981\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u5bf9\u5185\u90e8\u5404\u529f\u80fd\u6a21\u5757\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u800c\u914d\u7f6e\u6587\u4ef6\u52a0\u8f7d\u7684\u6548\u7387\u76f4\u63a5\u5f71\u54cd\u7cfb\u7edf\u7684\u521d\u59cb\u5316\u65f6\u95f4\u3002\u56e0\u6b64\u5982\u4f55\u8bbe\u8ba1\u4e00\u79cd\u9ad8\u6548\u7684FPGA\u52a0\u8f7d\u65b9\u6848\uff0c\u662f\u901a\u4fe1\u7cfb\u7edf\u8bbe\u8ba1\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u73af\u8282\u3002<\/p>\n \n\t\u6587\u732e\u7684\u52a0\u8f7d\u65b9\u6848\u91c7\u7528\u5916\u90e8\u4e13\u7528\u7684E2PROM<\/u>\u5668\u4ef6\u5b58\u50a8\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5728\u4e0a\u7535\u540e\u7531FPGA\u63a7\u5236\u6574\u4e2a\u52a0\u8f7d\u8fc7\u7a0b\u3002\u8fd9\u79cd\u4e3b\u52a8\u52a0\u8f7d\u7684\u914d\u7f6e\u65b9\u5f0f\u9700\u8981\u4e13\u95e8\u7684\u5916\u90e8\u5b58\u50a8\u82af\u7247\uff0c\u4f7f\u7528\u9762\u7a84\uff0c\u65e0\u6cd5\u5b9e\u73b0\u7075\u6d3b\u7684\u5728\u7ebf\u5347\u7ea7\uff0c\u5e76\u4e14\u7531\u4e8eEEPROM\u7684\u5bb9\u91cf\u6709\u9650\uff0c\u53ea\u80fd\u7528\u4e8e\u52a0\u8f7d\u4e00\u4e9b\u5c0f\u7684FPGA\u903b\u8f91\u6587\u4ef6\u3002\u6587\u732e\u63d0\u51fa\u91c7\u7528CPU<\/u>\u5916\u6302FLASH\u5b58\u50a8\u914d\u7f6e\u6587\u4ef6\uff0c\u91c7\u7528\u901a\u7528\u8f93\u5165\uff0f\u8f93\u51fa\uff08General Purpose Input\uff0fOutput\uff0cCPU GPI<\/u>O\uff09\u7ba1\u813e\u6a21\u62df\u88ab\u52a8\u4e32\u884c\uff08Passive Serial\uff0cPS\uff09\u52a0\u8f7d\u65f6\u5e8f\u8fdb\u884c\u914d\u7f6e\u6587\u4ef6\u52a0\u8f7d\u7684\u65b9\u6848\uff0c\u7136\u800c\u8fd9\u79cd\u65b9\u6848\u9700\u8981\u5360\u7528CPU\u5b9d\u8d35\u7684GPIO\u8d44\u6e90\uff0c\u867d\u7136\u91c7\u7528PS\u65b9\u5f0f\u52a0\u8f7d\u53ef\u4ee5\u8282\u7701\u4e00\u5b9a\u7684\u7ba1\u811a\uff0c\u4f46\u662f\u7531\u4e8eCPU\u6ca1\u6709\u4e13\u95e8\u7684PS\u52a0\u8f7d\u63a7\u5236\u5668\uff0c\u5fc5\u987b\u901a\u8fc7\u8f6f\u4ef6\u63a7\u5236GPIO\u6765\u6a21\u62dfPS\u52a0\u8f7d\u7684\u65f6\u5e8f\uff0c\u5bf9\u4e8e\u8f6f\u4ef6\u6700\u666e\u904d\u4f7f\u7528\u7684C\u8bed\u8a00\uff0c\u6bcf\u4e00\u6b65\u64cd\u4f5c\u90fd\u9700\u8981\u6570\u6761\u6307\u4ee4\uff0c\u8017\u8d39\u65f6\u95f4\u3002\u5bf9\u4e8e\u6709\u591a\u4e2aFPGA\uff0c\u8981\u6c42\u8fdc\u7a0b\u5347\u7ea7\uff0c\u4e14\u5bf9\u914d\u7f6e\u901f\u5ea6\u8981\u6c42\u9ad8\u7684\u5927\u578b\u7cfb\u7edf\u6765\u8bf4\uff0c\u8fd9\u6837\u7684\u52a0\u8f7d\u65f6\u95f4\u662f\u65e0\u6cd5\u5fcd\u53d7\u7684\u3002<\/p>\n \n\t\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u57fa\u4e8eCPLD<\/u>\u52a0\u8f7dFPGA\u7684\u65b9\u6848\uff1aFPGA\u914d\u7f6e\u6587\u4ef6\u88ab\u5b58\u653e\u5728CPU\u5916\u6302\u7684FLASH\u5b58\u50a8\u5668\u4e2d\uff0c\u52a0\u8f7d\u65f6\u7531CPU\u5c06\u914d\u7f6e\u6587\u4ef6\u8bfb\u51fa\uff0c\u518d\u901a\u8fc7\u8fde\u63a5CPLD\u7684Local Bus\u603b\u7ebf\u5c06\u6570\u636e\u4ee5\u5e76\u884c\u65b9\u5f0f\u9001\u7ed9CPLD\uff0cCPLD\u5229\u7528\u901f\u5ea6\u8f83\u9ad8\u7684\u65f6\u949f<\/u>\u5c06\u6570\u636e\u4e32\u884c\u9001\u5165FPGA\u3002\u8be5\u65b9\u6848\u65e2\u53ef\u4ee5\u8282\u7701CPU\u548cFPGA\u7684\u7ba1\u811a\uff0c\u53c8\u53ef\u4ee5\u5b9e\u73b0FPGA\u5728\u7ebf\u5feb\u901f\u52a0\u8f7d\u3002<\/p>\n \n\t1 FPGA\u53ca\u5176\u52a0\u8f7d\u65b9\u5f0f\u4ecb\u7ecd<\/p>\n \n\tFPGA\u662f\u4e00\u79cd\u53ef\u7f16\u7a0b\u5668\u4ef6\uff0c\u7528\u6237\u53ef\u901a\u8fc7\u8f6f\u4ef6\u624b\u6bb5\u914d\u7f6eFPGA\u5668\u4ef6\u5185\u90e8\u7684\u8fde\u63a5\u7ed3\u6784\u548c\u903b\u8f91\u5355\u5143\uff0c\u5b8c\u6210\u6240\u9700\u7684\u6570\u5b57\u7535\u8def\u529f\u80fd\u3002\u76ee\u524d\u5e02\u573a\u4e0a\u6709\u4e09\u79cd\u57fa\u672c\u7684FPGA\u7f16\u7a0b\u6280\u672f\uff1aSRAM\uff0c\u53cd\u7194\u4e1d\u548cFLASH\u3002\u5176\u4e2d\u57fa\u4e8eSRAM\u7684FPGA\u7531\u4e8e\u5176\u901f\u5ea6\u5feb\u4e14\u5177\u6709\u53ef\u91cd\u7f16\u7a0b\u80fd\u529b\uff0c\u662f\u76ee\u524d\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u4e00\u79cd\u3002\u4f46\u662f\u8fd9\u79cdFPGA\u662f\u6613\u5931\u6027\u7684\uff0c\u6bcf\u6b21\u6389\u7535\u540e\uff0cFPGA\u6062\u590d\u767d\u7247\uff0c\u5185\u90e8\u903b\u8f91\u6d88\u5931\uff0c\u4e0a\u7535\u65f6\u9700\u8981\u91cd\u65b0\u4e3aFPGA\u52a0\u8f7d\u914d\u7f6e\u6570\u636e\u3002<\/p>\n \n\t\u5927\u90e8\u5206FPGA\u7684\u52a0\u8f7d\u65b9\u5f0f\u90fd\u53ef\u4ee5\u5206\u4e3a\u4e3b\u52a8\u52a0\u8f7d\u548c\u88ab\u52a8\u52a0\u8f7d\u3002\u4e3b\u52a8\u52a0\u8f7d\u548c\u88ab\u52a8\u52a0\u8f7d\u6700\u5927\u7684\u533a\u522b\u5728\u4e8e\u52a0\u8f7d\u8fc7\u7a0b\u662f\u7531\u8c01\u6765\u63a7\u5236\uff0c\u4e3b\u52a8\u52a0\u8f7d\u7684\u52a0\u8f7d\u8fc7\u7a0b\u662f\u7531FPGA\u81ea\u8eab\u63a7\u5236\uff0cFPGA\u4e3b\u52a8\u4ece\u5916\u90e8\u5b58\u50a8\u5668\u4e2d\u8bfb\u53d6\u903b\u8f91\u4fe1\u606f\u6765\u4e3a\u81ea\u5df1\u8fdb\u884c\u914d\u7f6e\uff0cFPGA\u5185\u90e8\u7684\u632f\u8361\u5668<\/u>\u4ea7\u751f\u52a0\u8f7d\u65f6\u949f\u3002<\/p>\n \n\t\u88ab\u52a8\u52a0\u8f7d\u7684\u6574\u4e2a\u52a0\u8f7d\u8fc7\u7a0b\u90fd\u662f\u7531\u5916\u90e8\u63a7\u5236\u5668\u63a7\u5236\uff0cFPGA\u63a5\u6536\u914d\u7f6e\u65f6\u949f\uff0c\u914d\u7f6e\u547d\u4ee4\u548c\u914d\u7f6e\u6570\u636e\uff0c\u7ed9\u51fa\u914d\u7f6e\u72b6\u6001\u4fe1\u53f7\u4ee5\u53ca\u914d\u7f6e\u5b8c\u6210\u6307\u793a\u4fe1\u53f7\u7b49\u3002<\/p>\n \n\t\u4e3a\u4e86\u9009\u62e9\u4e00\u79cd\u5408\u9002\u7684\u52a0\u8f7d\u65b9\u5f0f\uff0c\u8fd9\u91cc\u5c06Altera<\/u>\u516c\u53f8FPGA\u4ea7\u54c1\u7684\u5404\u79cd\u52a0\u8f7d\u65b9\u5f0f\u7684\u5bf9\u6bd4\u4e8e\u5982\u56fe1\u6240\u793a\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u914d\u7f6e\u901f\u5ea6\u7684\u5feb\u6162\u53ea\u662f\u76f8\u5bf9\u7684\uff0c\u5176\u4ed6\u4e00\u4e9b\u56e0\u7d20\u5982\u95ea\u5b58\u7684\u8bfb\u53d6\u65f6\u95f4\uff0c\u9a71\u52a8\u65f6\u949f\u9891\u7387\u7b49\u4e5f\u4f1a\u5f71\u54cd\u914d\u7f6e\u7684\u65f6\u95f4\u3002<\/p>\n \n\t<\/p>\n \n\t\u4ece\u56fe\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u5e76\u884c\u52a0\u8f7d\u65b9\u5f0f\u867d\u7136\u901f\u5ea6\u8f83\u5feb\u4f46\u662f\u8017\u8d39\u8f83\u591a\u7684\u7ba1\u811a\uff1b\u800c\u4e32\u884c\u52a0\u8f7d\u5219\u53ef\u4ee5\u8282\u7701\u7ba1\u811a\u3001\u964d\u4f4e\u6210\u672c\u3002\u5728\u51e0\u79cd\u4e32\u884c\u52a0\u8f7d\u65b9\u5f0f\u4e2d\uff0cPS\u52a0\u8f7d\u65b9\u5f0f\u662f\u5927\u90e8\u5206\u5668\u4ef6\u90fd\u652f\u6301\u7684\u65b9\u5f0f\uff0c\u56e0\u6b64\u672c\u6587\u540e\u7eed\u7684\u8bbe\u8ba1\u65b9\u6848\u9009\u62e9PS\u52a0\u8f7d\u65b9\u5f0f\u8fdb\u884c\u5b9e\u73b0\u3002<\/p>\n \n\t2 \u52a0\u8f7d\u65b9\u6848\u7684\u8bbe\u8ba1<\/p>\n \n\t\u6574\u4e2a\u52a0\u8f7d\u65b9\u6848\u4e3b\u8981\u7531\u786c\u4ef6\u7535\u8def\uff0cCPLD\u903b\u8f91\uff0c\u8f6f\u4ef6\u4ee3\u7801\u51e0\u90e8\u5206\u7ec4\u6210\u3002<\/p>\n \n\t2\uff0e1 \u786c\u4ef6\u8bbe\u8ba1<\/p>\n \n\t\u5728\u7b2c1\u8282\u7684\u8ba8\u8bba\u4e2d\u9009\u62e9\u4e86PS\u52a0\u8f7d\u65b9\u5f0f\u3002PS\u52a0\u8f7d\u4e00\u822c\u8981\u7528\u52305\u6839\u4fe1\u53f7\u7ebf\uff0c\u5206\u522b\u662fnconfig\uff0cdclk\uff0cdata\uff0cnstatus\u548cconf_done\uff0c\u5b83\u4eec\u7684\u542b\u4e49\u5982\u56fe2\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\t\u5728\u4f20\u7edf\u7684PS\u52a0\u8f7d\u65b9\u5f0f\u4e2d\uff0cCPU\u4e0eFPGA\u7684\u8fde\u7ebf\u5982\u56fe3\u6240\u793a\u3002<\/p>\n \n\t\u8fd9\u79cd\u52a0\u8f7d\u65b9\u5f0f\u7684\u539f\u7406\u662f\uff1a\u5148\u5c06FPGA\u7684\u914d\u7f6e\u6570\u636e\u653e\u5728CPU\u5916\u6302\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668\u4e2d\uff0cCPU\u542f\u52a8\u540e\uff0cCPU\u901a\u8fc7GPIO\u6a21\u62df\u65f6\u5e8f\u7684\u65b9\u5f0f\u5c06\u914d\u7f6e\u6570\u636e\u52a0\u8f7d\u5230FPGA\u4e2d\u3002CPU\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u4ea7\u751f\u7684\u52a0\u8f7d\u65f6\u949f\u53ea\u6709kHz\uff0c\u52a0\u8f7d\u4e00\u4e2a10 MB\u5927\u5c0f\u7684\u914d\u7f6e\u6587\u4ef6\u5927\u6982\u9700\u8981100 s\u3002\u901a\u8fc7\u4f18\u5316\u4ee3\u7801\u53ef\u4ee5\u51cf\u5c0f\u52a0\u8f7d\u65f6\u95f4\uff0c\u4f46\u662f\u8f6f\u4ef6\u4e0d\u80fd\u6a21\u62df\u9ad8\u9891\u65f6\u949f\u662f\u5176\u56fa\u6709\u7684\u7f3a\u9677\u3002CPLD\u53ef\u4ee5\u5229\u7528\u5916\u90e8\u9ad8\u901f\u65f6\u949f\u4f5c\u4e3a\u52a0\u8f7d\u53c2\u8003\u65f6\u949f\uff0c\u4e14\u7531\u4e8e\u5b83\u63a7\u5236\u7b80\u5355\uff0c\u6269\u5c55\u65b9\u4fbf\u7684\u7279\u6027\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u52a0\u8f7d\u7684\u6865\u6881\uff0c\u5728CPU\u548cFPGA\u4e4b\u95f4\u5efa\u7acb\u5feb\u901f\u52a0\u8f7d\u7684\u901a\u9053\u3002<\/p>\n \n\t\u5229\u7528CPLD\u8fdb\u884cPS\u52a0\u8f7d\u7684\u7535\u8def\u8fde\u63a5\u8bbe\u8ba1\u5982\u89c1\u56fe4\u3002<\/p>\n \n\t<\/p>\n \n\tCPU\u8981\u4ece\u5916\u6302\u5b58\u50a8\u5668\u4e2d\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u53d1\u8d77\u52a0\u8f7d\u4efb\u52a1\uff0c\u901a\u77e5CPLD\u5f00\u59cb\u52a0\u8f7d\u5e76\u901a\u8fc7Local Bus\u5411CPLD\u53d1\u9001\u52a0\u8f7d\u6570\u636e\u3002\u5e38\u7528\u7684CPU Local Bus\u53c2\u8003\u65f6\u949f\u7ea6\u4e3a66 MHz\uff0c\u52a0\u8f7d1 B\u7684\u6570\u636e\u9700\u8981\u7ea615\u7490\u3002CPLD\u5bf9\u5916\u90e8\u53c2\u8003\u65f6\u949f\uff08\u53ef\u9009\u62e9\uff0c\u672c\u6587\u9009\u752866 MHz\u6676\u632f\uff09\u8fdb\u884c4\u5206\u9891\u540e\u4f5c\u4e3a\u52a0\u8f7d\u65f6\u949f\uff0c\u6b64\u65f6\u949f\u7ea6\u4e3a16\uff0e5 MHz\uff0c\u5176\u52a0\u8f7d\u6548\u7387\u6bd4CPU GPIO\u52a0\u8f7d\u65b9\u5f0f\u63d0\u9ad810\u500d\u4ee5\u4e0a\u3002<\/p>\n \n\t2\uff0e2 CPLD\u52a0\u88c1\u6a21\u5757\u7684\u8bbe\u8ba1<\/p>\n \n\tCPLD\u52a0\u8f7d\u6a21\u5757\u4e3b\u8981\u662f\u5229\u7528CPLD\u903b\u8f91\u4ee3\u7801\u5b9e\u73b0PS\u52a0\u8f7d\u65f6\u5e8f\uff0c\u8fbe\u5230\u5feb\u901f\u52a0\u8f7d\u7684\u76ee\u7684\u3002FPGA\u7684PS\u52a0\u8f7d\u65f6\u5e8f\u5982\u56fe5\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\tPS\u52a0\u8f7d\u7684\u8fc7\u7a0b\u5982\u56fe6\u6240\u793a\u3002<\/p>\n \n\t\u6839\u636ePS\u52a0\u8f7d\u7684\u65f6\u5e8f\u548c\u6d41\u7a0b\u56fe\uff0c\u8bbe\u8ba1\u901a\u8fc7CPU\u548cCPLD\u5bf9FPGA\u8fdb\u884c\u52a0\u8f7d\u7684\u8fc7\u7a0b\u5982\u4e0b\uff1aCPLD\u5728\u6536\u5230CPU\u53d1\u51fa\u7684\u52a0\u8f7d\u5f00\u59cb\u547d\u4ee4\u540e\uff0c\u5c06nconfig\u4fe1\u53f7\u62c9\u4f4e\uff08\u5668\u4ef6\u65f6\u5e8f\u5bf9nconfig\u7684\u4f4e\u7535\u5e73\u8109\u5bbd\u6709\u8981\u6c42\uff09\uff0c\u5f53FPGA\u6536\u5230nconfig\u7684\u4f4e\u8109\u51b2\u6709\u6548\u4fe1\u53f7\u540e\uff0c\u4f1a\u9a6c\u4e0a\u6e05\u9664\u73b0\u6709\u7684\u7a0b\u5e8f\u8fdb\u5165\u52a0\u8f7d\u72b6\u6001\uff0c\u62c9\u4f4enstatus\u548cconf_done\u4fe1\u53f7\uff0c\u5728nconfig\u4fe1\u53f7\u53d8\u9ad8500 μs\uff08\u5668\u4ef6\u8981\u6c42\uff09\u540eCPLD\u53ef\u4ee5\u5f00\u59cb\u5411FPGA\u9001\u65f6\u949f\u548c\u6570\u636e\u8fdb\u884c\u52a0\u8f7d\uff0c\u52a0\u8f7d\u5b8c\u6210\u540e\uff0cFPGA\u5c06conf_done\u4fe1\u53f7\u62c9\u9ad8\uff0c\u9012\u77e5CPLD\uff0cCPLD\u518d\u901a\u77e5CPU\u52a0\u8f7d\u5df2\u5b8c\u6210\uff0cPPGA\u8fdb\u5165\u521d\u59cb\u5316\u9636\u6bb5\u3002<\/p>\n \n\t\u8981\u5b9e\u73b0\u6210\u529f\u7684\u52a0\u8f7d\uff0c\u5fc5\u987b\u4fdd\u8bc1\u52a0\u8f7d\u8fc7\u7a0b\u6b63\u786e\uff0c\u52a0\u8f7d\u65f6\u5e8f\u6ee1\u8db3\u5668\u4ef6\u8981\u6c42\u3002\u8fd8\u8981\u6ce8\u610f\u4e0eCPU\u8f6f\u4ef6\u7a0b\u5e8f\u7684\u914d\u5408\u3002<\/p>\n \n\t\uff081\uff09nconfig\u4fe1\u53f7\u65f6\u5e8f\u7684\u63a7\u5236\u3002nconfig\u4fe1\u53f7\u65f6\u5e8f\u63a7\u5236\u7531CPU\u8f6f\u4ef6\u5b9e\u73b0\uff0c\u5728\u786c\u4ef6\u8fde\u63a5\u4e0a\uff0c\u5c06nconfig\u4fe1\u53f7\u4f7f\u7528\u5916\u90e8\u7535\u963b<\/u>\u4e0a\u62c9\uff0c\u8f6f\u4ef6\u5bf9CPLD\u5bc4\u5b58\u5668<\/u>\u4e2d\u7684configbit\u5148\u51990\uff0c\u518d\u51991\uff0c\u4e2d\u95f4\u5ef6\u8fdf10μs\uff0c\u4fdd\u8bc1nconfig\u4fe1\u53f7\u7684\u8109\u5bbd\u8fbe\u5230\u82af\u7247\u8981\u6c42\u3002<\/p>\n \n\t\u5b9e\u9645\u6d4b\u8bd5\u6ce2\u5f62\u5982\u56fe7\u6240\u793a\uff0c\u6a2a\u8f74\u8868\u793a\u65f6\u95f4\uff0c\u9760\u4e0a\u7684\u4fe1\u53f7\u7ebf\u4e3anconfig\u4fe1\u53f7\uff0c\u9760\u4e0b\u7684\u4e3anstatus\u4fe1\u53f7\uff0cnconfig\u8109\u5bbd\u7ea6\u4e3a11μs\uff0c\u6ee1\u8db3\u8981\u6c42\u3002<\/p>\n \n\t\uff082\uff09dclk\u65f6\u5e8f\u7684\u63a7\u5236\u3002dclk\u7531CPLD\u7684\u53c2\u8003\u65f6\u949felk_ref\u56db\u5206\u9891\u4ea7\u751f\u3002\u5668\u4ef6\u8981\u6c42dclk\u5728nconfig\u4fe1\u53f7\u53d8\u9ad8\u540e\u81f3\u5c11500 μs\u540e\u624d\u8f93\u51fa\uff0c\u8fd9\u4e2a\u65f6\u5e8f\u662f\u7531CPU\u8f6f\u4ef6\u6765\u63a7\u5236\uff0c\u8f6f\u4ef6\u5148\u5c06nconfig\u4fe1\u53f7\u62c9\u4f4e10 μs\uff0c\u7b49\u5f85FPGA\u56de\u5e94\u7684nstatus\uff0c\u5f53nstatus\u9ad8\u7535\u5e73\u5230\u6765\u540e\uff0c\u5ef6\u8fdf600μs\u5f00\u59cb\u901a\u8fc7Local Bus\u5411CPLD\u53d1\u9001\u6570\u636e\uff0c\u540c\u65f6\u7f6e\u4f4d\u65f6\u949f\u4f7f\u80fd\u6807\u5fd7\u4f4d\uff0cCPLD\u4ee5\u6b64\u65f6\u949f\u6807\u5fd7\u4f4d\u6765\u89e6\u53d1dclk\uff0c\u4ee5\u6b64\u4fdd\u8bc1dclk\u7684\u65f6\u5e8f\u3002\u5b9e\u9645\u6d4b\u8bd5\u6ce2\u5f62\u5982\u56fe8\u6240\u793a\u3002\u6a2a\u8f74\u8868\u793a\u65f6\u95f4\uff0c\u9760\u4e0a\u7684\u4fe1\u53f7\u7ebf\u4e3anconfig\uff0c\u9760\u4e0b\u7684\u4e3adclk\uff0c\u4ecenconfig\u53d8\u9ad8\u5230dclk\u8f93\u51fa\u7684\u5ef6\u8fdf\u7ea6\u4e3a605μs\uff0c\u6ee1\u8db3\u8981\u6c42\u3002<\/p>\n \n\t\uff083\uff09CPLD\u4e0eCPU\u6807\u5fd7\u4f4d\u7684\u63a7\u5236\u5b9e\u73b0\u3002\u5fc5\u987b\u63a7\u5236CPLD\u52a0\u8f7d\u53e3\u5728CPU\u9001\u6570\u636e\u5b8c\u6210\u4e4b\u540e\u518d\u5de5\u4f5c\uff0c\u5426\u5219\u4f1a\u5f15\u8d77\u6570\u636e\u963b\u585e\u3002\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e00\u63a7\u5236\uff0cCPU\u4f1a\u9001\u51fa\u4e00\u4e2a\u6807\u5fd7\u4f4d\uff0c\u5373CPU\u5728\u7b2c\u4e00\u4e2aLocal Bus\u7684\u8bbf\u95ee\u5468\u671f\u53d1\u90018 b\u52a0\u8f7d\u6570\u636e\uff0c\u5728\u4e0b\u4e00\u4e2a\u5468\u671fCPU\u4f1a\u5bf9\u6807\u5fd7\u5bc4\u5b58\u5668\u8fdb\u884c\u53d6\u53cd\u64cd\u4f5c\uff0cCPLD\u4f1a\u53bb\u68c0\u6d4b\u6807\u5fd7\u4f4d\u7684\u6cbf\uff08\u4e0a\u5347\u6cbf\u4e0b\u964d\u6cbf\u90fd\u53ef\uff09\uff0c\u5f53CPLD\u68c0\u6d4b\u5230\u8fd9\u4e2a\u6cbf\uff0c\u8bf4\u660eCPU\u7684\u6570\u636e\u5df2\u7ecf\u53d1\u9001\u5b8c\u6210\uff0cCPLD\u4f1a\u4ea7\u751f\u52a0\u8f7d\u65f6\u949f\uff0c\u5e76\u5229\u7528\u6b64\u65f6\u949f\u5c06\u52a0\u8f7d\u6570\u636e\u9001\u5165FPGA\u3002CPLD\u53ea\u5bf9\u8fb9\u6cbf\u8fdb\u884c\u68c0\u6d4b\u53ef\u4ee5\u51cf\u5c11Local Bus\u7684\u8bbf\u95ee\u5468\u671f\uff0c\u5982\u679c\u75280\uff0c1\u7535\u5e73\u6216\u8005\u53ea\u7528\u4e0a\u5347\u6cbf\uff08\u53ea\u7528\u4e0b\u964d\u6cbf\uff09\uff0cCPU\u4f20\u9001\u5b8c\u6570\u636e\u540e\uff0c\u9700\u8981\u5148\u8bfb\u6807\u5fd7\u5bc4\u5b58\u5668\u7684\u503c\uff0c\u518d\u5bf9\u6807\u5fd7\u4f4d\u8fdb\u884c\u64cd\u4f5c\uff0c\u800c\u7528\u4e0a\u5347\u6cbf\u548c\u4e0b\u964d\u6cbf\uff0cCPU\u53ea\u9700\u8981\u5728\u7b2c\u4e00\u6b21\u4f20\u9001\u6570\u636e\u5b8c\u6210\u540e\u8bfb\u6807\u5fd7\u5bc4\u5b58\u5668\uff0c\u968f\u540e\u7684\u6570\u636e\u4f20\u9001\u5b8c\u6210\u540e\u53ea\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u53d6\u53cd\u5373\u53ef\u3002\u5b9e\u73b0\u7a0b\u5e8f\u5982\u56fe9\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\t\uff084\uff09\u52a0\u8f7d\u6a21\u5757\u3002\u5f53\u68c0\u6d4b\u5230CPU\u7684\u6807\u5fd7\u65f6CPLD\u5f00\u59cb\u53d1\u9001\u6570\u636e\u5bf9FPGA\u8fdb\u884c\u52a0\u8f7d\uff0c\u52a0\u8f7d\u5b8c\u6210\u540e\u5bf9\u81ea\u8eab\u7684\u53d1\u9001\u5b8c\u6210\u6807\u5fd7\u53d6\u53cd\uff0c\u5173\u95ed\u8f93\u51fa\u4f7f\u80fd\u3002\u8981\u6ce8\u610f\u4e0d\u540c\u82af\u7247\u5382\u5bb6\u7684\u52a0\u8f7d\u9ad8\u4f4e\u4f4d\u987a\u5e8f\u4e0d\u540c\u3002FPGA\u662f\u9760dclk\u7684\u4e0a\u5347\u6cbf\u6765\u91c7\u6837\u6570\u636e\u7684\uff0c\u6240\u4ee5\u5728dclk\u7684\u4e0b\u964d\u6cbf\u5c06\u6570\u636e\u4eceCPLD\u9001\u51fa\uff0c\u8fd9\u6837\u5728FPGA\u7aef\u91c7\u6837\u65f6dclk\u7684\u4e0a\u5347\u6cbf\u6b63\u597d\u5bf9\u7740\u6570\u636e\u7684\u4e2d\u95f4\uff0c\u80fd\u83b7\u5f97\u6700\u5927\u7684\u65f6\u5e8f\u7a97\u53e3\uff0c\u5982\u56fe10\u6240\u793a\u3002<\/p>\n \n\t<\/p>\n \n\t\u5b9e\u73b0\u7a0b\u5e8f\u5982\u56fe11\u6240\u793a\u3002<\/p>\n \n\t\uff085\uff09\u52a0\u8f7d\u7ed3\u675f\u540e\uff0cFPGA\u5c06conf_done\u4fe1\u53f7\u62c9\u9ad8\uff0cCPLD\u901a\u77e5FPGA\u52a0\u8f7d\u5df2\u7ecf\u5b8c\u6210\u3002<\/p>\n \n\t3 \u529f\u80fd\u3001\u6027\u80fd\u6d4b\u8bd5<\/p>\n \n\t\u4e3a\u4e86\u9a8c\u8bc1\u65b9\u6848\u7684\u6709\u6548\u6027\uff0c\u9009\u7528Altera\u7684FPGA\uff08EP4SGX530\uff09\uff0cCPLD\uff08EPM570F256CS\uff09\uff0cMPC8548\u642d\u5efa\u4e86\u4e00\u4e2a\u52a0\u8f7d\u7cfb\u7edf\uff0c\u6d4b\u8bd5\u7ed3\u679c\u5982\u56fe12\u6240\u793a\uff0c\u6a2a\u8f74\u8868\u793a\u65f6\u95f4\uff0c\u6709\u56fa\u5b9a\u5468\u671f\u7684\u4fe1\u53f7\u4e3adclk\u3002\u7531\u56fe\u53ef\u77e5\u52a0\u8f7d\u6210\u529f\uff0c\u52a0\u8f7d\u65f6\u949f\u9891\u7387\u7ea6\u4e3a17 MHz\u3002\u603b\u4f53\u52a0\u8f7d\u65f6\u95f4\u53ef\u7531conf_done\u4fe1\u53f7\u6307\u793a\uff0c\u5982\u56fe\u6240\u793a\u6a2a\u8f74\u8868\u793a\u65f6\u95f4\uff0c\u4ece\u56fe\u4e0a\u53ef\u4ee5\u770b\u51fa\uff0c\u52a0\u8f7d\u4e00\u4e2a10 MB\u5927\u5c0f\u7684FPGA\u914d\u7f6e\u6587\u4ef6\u5927\u7ea6\u9700\u898110 s\u3002<\/p>\n \n\t<\/p>\n \n\t4 \u7ed3\u8bba<\/p>\n \n\tCPU\u76f4\u63a5\u5bf9FPGA\u8fdb\u884c\u52a0\u8f7d\u7684\u4f20\u7edf\u65b9\u5f0f\uff0c\u52a0\u8f7d\u4e00\u4e2a10 MB\u7684FPGA\u914d\u7f6e\u6587\u4ef6\u5927\u6982\u9700\u8981100 s\uff0c\u5229\u7528CPLD\u5bf9FPGA\u8fdb\u884c\u52a0\u8f7d\uff0c\u53ea\u9700\u8981\u7ea610 s\uff08Local Bus\u7684\u8bbf\u95ee\u5468\u671f\u7ea6\u4e3a200 ns\uff0c\u76f8\u5bf9\u4e8eCPLD\u5bf9FPGA\u7684\u52a0\u8f7d\u65f6\u95f4\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\uff0c\u4e24\u8005\u53ef\u4ee5\u5e76\u884c\u8fdb\u884c\uff09\uff0c\u52a0\u8f7d\u901f\u5ea6\u63d0\u9ad8\u4e8610\u500d\u5de6\u53f3\u3002\u5728\u6709\u4e24\u4e2a\u751a\u81f3\u591a\u4e2aFPGA\u9700\u8981\u52a0\u8f7d\u7684\u7cfb\u7edf\uff0c\u5176\u4f18\u52bf\u66f4\u4e3a\u660e\u663e\u3002\u8be5\u65b9\u6cd5\u5bf9\u53ea\u8981\u6709CPU\uff0cCPLD\u548cFPGA\u7684\u7cfb\u7edf\u5373\u53ef\u79fb\u690d\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301Altera\uff0cXILINX\u548cLATTICE<\/u>\u4e09\u5927\u5382\u5bb6\u7684\u903b\u8f91\u5668\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" 0 \u5f15\u8a00 \u73b0\u4ee3\u901a\u4fe1\u6280\u672f\u53d1\u5c55\u65e5\u65b0\u6708\u5f02\uff0c\u901a\u4fe1\u7cfb\u7edf\u5fc5\u987b\u5177\u5907\u826f\u597d\u7684\u53ef\u5347\u7ea7\u80fd\u529b\u4ee5\u9002\u5e94\u65f6\u4ee3\u7684\u53d1\u5c55\u3002\u73b0\u573a\u53ef\u7f16\u7a0b\u95e8\u9635\u5217\uff08Field Prog ram mable Ga te Array\uff0c FPGA \uff09\u7531\u4e8e\u540c\u65f6\u5177\u5907\u786c\u4ef6 \u7535\u8def \u9ad8\u901f\u8fd0\u884c\u548c\u8f6f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2135"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2135"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2135\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}