{"rsdb":{"rid":"378604","subhead":"","postdate":"0","aid":"264734","fid":"92","uid":"1","topic":"1","content":"
\n

\u6982\u8ff0<\/h1> \n

 ZYNQ\u5206\u4e3aPS\u548cPL\u4e24\u90e8\u5206\uff0cPS\u7aef\u5373ARM\uff0cPL\u5373FPGA\u3002\u5728\u4f7f\u7528ZYNQ\u7684\u65f6\u5019\u4e0d\u514d\u9700\u8981PS\u548cPL\u7aef\u8fdb\u884c\u901a\u4fe1\u3002\u5927\u591a\u662f\u60c5\u51b5\u4e0bPS\u4f5c\u4e3a\u4e3b\u7aef\uff0cPL\u4f5c\u4e3a\u4ece\u7aef\uff0c\u901a\u8fc7AXI\u603b\u7ebf\u5b9e\u73b0PS-PL\u7aef\u7684\u901a\u4fe1\u3002\u672c\u6587\u4e3b\u8981\u4ecb\u7ecdPL\uff08\u5373FPGA\uff09\u5982\u4f55\u914d\u7f6e\u7684\u3002<\/p> \n

Block Design\u521b\u5efa<\/h1> \n

\u3000\u30001.\u70b9\u51fbCreate Block Design\uff0c\u6dfb\u52a0ZYNQ7 Processing System IP<\/p> \n

\"\"<\/p> \n

 <\/p> \n

\u3000\u30002.\u53cc\u51fb\u6253\u5f00ZYNQ7 Processing System\uff0c\u4e0b\u56fe\u6240\u793a\u8868\u793aPS\u4f5c\u4e3a\u4e3b\u7aef\u7684\u63a5\u53e3\u3002<\/p> \n

\n  \n \"\" \n

 <\/p> \n

\u3000\u30003.\u52a0\u5165AXI Interconnect IP\uff0c\u7531\u4e8e\u4e0a\u4e00\u6b65\u53ea\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u4e3b\u7aef\uff0c\u6240\u4ee5Slave\u548cMaster\u90fd\u9700\u8981\u8bbe\u7f6e\u4e3a1<\/p> \n

\n \"\" \n

 <\/p> \n

 <\/p> \n <\/div> \n

 \u63a5\u4e0b\u6765\u5c31\u9700\u8981AXI_Lite\u63a5\u53e3\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u81ea\u5df1\u5199\uff0c\u5b98\u65b9\u4e5f\u63d0\u4f9b\u4e86\u6a21\u677f\u3002\u63a5\u4e0b\u6765\u5c31\u8be6\u7ec6\u8bf4\u660e\u5b98\u65b9\u6a21\u677f<\/p> \n

AXI_Lite\u521b\u5efa<\/h1> \n

\u3000\u30001.\u70b9\u51fbTool > Create and Package New IP > Next\uff0c\u9009\u62e9 Create a new AXI4 peripheral > Next<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 \u3000\u30002.\u63a5\u4e0b\u6765\u8bbe\u7f6eIP\u7684\u540d\u5b57\u548c\u5b58\u653e\u5730\u5740\uff0c\u7136\u540e next\u3002<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

 \u3000\u30004.\u63a5\u4e0b\u6765\u8bbe\u7f6e\u53c2\u6570\uff0cNumber of Registers\u6839\u636e\u9700\u8981\u8bbe\u7f6e\uff0c\u5176\u4ed6\u7684\u4e0d\u53d8\u3002\u8bbe\u7f6e\u621064\uff0c\u8868\u793a\u670964\u4e2a\u5bc4\u5b58\u5668\uff0c\u6bcf\u4e2a\u5bc4\u5b58\u5668\u7684\u6570\u636e\u4f4d\u5bbd\u662f32bit\u3002\u70b9\u51fbNext<\/p> \n <\/div> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

 \u3000\u30005.\u8fd9\u91cc\u9009\u62e9Edit IP\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u5b98\u65b9\u7684\u6a21\u677f\u8fdb\u884c\u4e00\u4e9b\u4fee\u6539\u3002\u7136\u540e\u70b9\u51fbFinish\u4f1a\u91cd\u65b0\u6253\u5f00\u4e00\u4e2a\u5de5\u7a0b\uff0c\u5728\u8fd9\u4e2a\u5de5\u7a0b\u4e2d\u6211\u4eec\u53ef\u4ee5\u5bf9\u5b98\u65b9\u7684\u6a21\u677f\u8fdb\u884c\u4fee\u6539\u3002<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

 <\/p> \n

AXI-Lite\u5b98\u65b9\u6a21\u677f\u8bf4\u660e<\/h1> \n

\u3000\u3000\u53ef\u4ee5\u770b\u51fa\u5b98\u65b9\u6587\u6863\u7531\u4e24\u4e2a\u6587\u4ef6\u7ec4\u6210\uff0c\u8fd9\u4e2a\u5b98\u65b9\u6587\u6863\u662f\u5b9e\u73b0loopback\u7684\uff0c\u4ea6\u662fPS\u5bf9\u67d0\u4e2a\u5bc4\u5b58\u5668\u5199\u4e0b\u6765\u4ec0\u4e48\u6570\u636e\uff0c\u8bfb\u5230\u7684\u5c31\u662f\u4ec0\u4e48\u6570\u636e\uff0c\u5e76\u6ca1\u6709\u7ed9\u51fa\u63a5\u53e3\u6765\u548cPL\u901a\u4fe1\u7684\u3002\u63a5\u4e0b\u6765\u5c06\u5bf9\u8fd9\u4e24\u4e2a\u4ee3\u7801\u8fdb\u884c\u8bf4\u660e\u3002<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

axi_lite_v1_0\u6587\u4ef6\u8bf4\u660e<\/h2> \n

\u3000\u3000\u8fd9\u4e2a\u4ee3\u7801\u4e3b\u8981\u529f\u80fd\u662f\u8c03\u7528\u4e86axi_lite_v1_0_S00_AXI\u6a21\u5757\u3002\u5728\u771f\u5b9e\u7684\u4f7f\u7528\u4e2d\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4fee\u6539\u3002\u6dfb\u52a0\u4e00\u4e9b\u4fe1\u53f7\u6765\u548cPL\u901a\u4fe1\u3002<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n \n \n \n \n \n \n \n \n \n \n \n
\u4fe1\u53f7\u540d\u79f0<\/td> \n \u8bf4\u660e<\/td> \n <\/tr> \n
o_axi_clk<\/td> \n AXI-Lite\u7684\u65f6\u949f<\/td> \n <\/tr> \n
o_axi_rst_n<\/td> \n \u590d\u4f4d\u4fe1\u53f7<\/td> \n <\/tr> \n
o_rx_addr<\/td> \n PS\u5199\u5bc4\u5b58\u5668\u7684\u5730\u5740\uff08PS to PL\uff09<\/td> \n <\/tr> \n
o_rx_data<\/td> \n PS\u5199\u5bc4\u5b58\u5668\u7684\u6570\u636e\uff08PS to PL\uff09<\/td> \n <\/tr> \n
o_rx_data_vld<\/td> \n PS\u5199\u6570\u636e\u6709\u6548\uff08PS to PL\uff09<\/td> \n <\/tr> \n
i_tx_addr<\/td> \n PL\u7ed9PS\u6570\u636e\u5730\u5740<\/td> \n <\/tr> \n
i_tx_data<\/td> \n PL\u7ed9PS\u7684\u6570\u636e<\/td> \n <\/tr> \n
i_tx_data_vld<\/td> \n PL\u7ed9PS\u6570\u636e\u6709\u6548\u4fe1\u53f7<\/td> \n <\/tr> \n <\/tbody> \n <\/table> \n

\u3000\u3000\u65f6\u949f\u548c\u590d\u4f4d\u4fe1\u53f7\u76f4\u63a5\u628a\u8f93\u5165\u7684\u5f15\u51fa\u5c31\u597d\uff0c\u5176\u4ed6\u4fe1\u53f7\u5219\u9700\u8981\u5728\u53e6\u4e00\u4e2a\u6a21\u5757\u4e2d\u5904\u7406\u3002<\/p> \n

\u3000\u3000\u3000\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

 <\/p> \n

axi_lite_v1_0_S00_AXI<\/h2> \n

\u3000\u3000\u8be5\u6a21\u5757\u5b9e\u73b0\u4e86AXI\u2014Lite\uff0c\u6211\u4eec\u9700\u8981\u505a\u4e00\u4e9b\u4fee\u6539\u3002<\/p> \n

\u3000\u30001.\u548c\u4e0a\u4e00\u6a21\u5757\u5bf9\u5e94\uff0c\u9700\u8981\u6dfb\u52a0\u4e00\u4e9b\u63a5\u53e3\u3002<\/p> \n

\"\"<\/p> \n

 <\/p> \n

 <\/p> \n

 \u3000\u30002.PS\u5199\u5bc4\u5b58\u5668<\/p> \n

\n
always @( posedge S_AXI_ACLK )\n    begin\n      if ( S_AXI_ARESETN == 1'b0 )\n        begin slv_reg0 <= 0; slv_reg1 <= 0; slv_reg2 <= 0; slv_reg3 <= 0; slv_reg4 <= 0; slv_reg5 <= 0; slv_reg6 <= 0; slv_reg7 <= 0; slv_reg8 <= 0; slv_reg9 <= 0; slv_reg10 <= 0; slv_reg11 <= 0; slv_reg12 <= 0; slv_reg13 <= 0; slv_reg14 <= 0; slv_reg15 <= 0; slv_reg16 <= 0; slv_reg17 <= 0; slv_reg18 <= 0; slv_reg19 <= 0; slv_reg20 <= 0; slv_reg21 <= 0; slv_reg22 <= 0; slv_reg23 <= 0; slv_reg24 <= 0; slv_reg25 <= 0; slv_reg26 <= 0; slv_reg27 <= 0; slv_reg28 <= 0; slv_reg29 <= 0; slv_reg30 <= 0; slv_reg31 <= 0; slv_reg32 <= 0; slv_reg33 <= 0; slv_reg34 <= 0; slv_reg35 <= 0; slv_reg36 <= 0; slv_reg37 <= 0; slv_reg38 <= 0; slv_reg39 <= 0; slv_reg40 <= 0; slv_reg41 <= 0; slv_reg42 <= 0; slv_reg43 <= 0; slv_reg44 <= 0; slv_reg45 <= 0; slv_reg46 <= 0; slv_reg47 <= 0; slv_reg48 <= 0; slv_reg49 <= 0; slv_reg50 <= 0; slv_reg51 <= 0; slv_reg52 <= 0; slv_reg53 <= 0; slv_reg54 <= 0; slv_reg55 <= 0; slv_reg56 <= 0; slv_reg57 <= 0; slv_reg58 <= 0; slv_reg59 <= 0; slv_reg60 <= 0; slv_reg61 <= 0; slv_reg62 <= 0; slv_reg63 <= 0; end else begin if (slv_reg_wren) begin case ( axi_awaddr[ADDR_LSB+OPT_MEM_ADDR_BITS:ADDR_LSB] ) 6'h00: for ( byte_index = 0; byte_index <= (C_S_AXI_DATA_WIDTH\/8)-1; byte_index = byte_index+1 ) if ( S_AXI_WSTRB[byte_index] == 1 ) begin \/\/ Respective byte enables are asserted as per write strobes \/\/ Slave register 0 slv_reg0[(byte_index*8) +: 8] <= S_AXI_WDATA[(byte_index*8) +: 8]; end 6'h01: for ( byte_index = 0; byte_index <= (C_S_AXI_DATA_WIDTH\/8)-1; byte_index = byte_index+1 ) if ( S_AXI_WSTRB[byte_index] == 1 ) begin \/\/ Respective byte enables are asserted as per write strobes \/\/ Slave register 1 slv_reg1[(byte_index*8) +: 8] <= S_AXI_WDATA[(byte_index*8) +: 8];","orderid":"0","title":"ZYNQ PS-PL\u901a\u4fe1\uff08PL\u4fa7\uff09(\u4e00)","smalltitle":"","mid":"0","fname":"Verilog","special_id":"0","bak_id":"0","info":"0","hits":"589","pages":"12","comments":"0","posttime":"2023-07-23 13:25:58","list":"1690089958","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"ZYNQ<\/A> PS-PL<\/A> \u901a\u4fe1<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"119.59.235.169","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"ZYNQ PS-PL\u901a\u4fe1\uff08PL\u4fa7\uff09","lastview":"1713310470","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}