<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ` `在使用zynq中,常常需要將PL部分的中斷引入到PS,這時候需要借助AXI GPIO的中斷,進入AXI GPIO的信號會在信號的上升沿和下降沿產生一個與AXI時鐘周期一樣時間的高電平中斷信號。如下圖所示。 ![](https://img.kancloud.cn/41/a9/41a9feff53bfdbe68d48e8e7d29944d7_833x116.png) ` `在這種情況下,會出現在時鐘上升沿和下降沿都產生一個中斷信號,導致兩次觸發中斷信號,造成處理錯誤。 ` `為了避免這種情況的產生,對進入AXI GPIO的信號需要進行同步處理,比如想只在信號的上升沿產生中斷信號,則可以利用與AXI GPIO相同的時鐘對信號進行截取。 ``` module top_module (); reg clk=0; reg din; wire dout; always #5 clk = ~clk; // Create clock with period=10 initial `probe_start; // Start the timing diagram `probe(clk); // Probe signal "clk" // A testbench initial begin #10 din <= 1; #60 din <= 0; #50 din <= 1; #60 din <= 0; $display ("Hello world! The current time is (%0d ps)", $time); #200 $finish; // Quit the simulation end test inst1( .clk(clk), .sig_in(din), .sig_out(dout) ); endmodule module test( input wire clk, input sig_in, output sig_out ); reg ff1; reg ff2; assign sig_out = ((~ff2) & ff1); always@(posedge clk) begin ff1 <= sig_in; ff2 <= ff1; end reg [31:0]ad_time_cnt; always@(posedge clk or posedge sig_out) begin if( sig_out == 1'b1)begin ad_time_cnt <= 'd0; end else begin ad_time_cnt <= ad_time_cnt +1'b1 ; end end `probe(sig_in); `probe(sig_out); `probe(ad_time_cnt); endmodule ``` ![](https://img.kancloud.cn/0e/c7/0ec701c6fb7e3ff70b86a010ce64f0f5_774x118.png) ` `這樣這個信號在進入AXI GPIO時,上升沿和下降沿的信號將會合并為一個信號,從而只產生一次中斷。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看