Verilog——将单脉冲宽度信号变为双脉冲宽度信号(扩宽脉冲宽度)
生活随笔
收集整理的這篇文章主要介紹了
Verilog——将单脉冲宽度信号变为双脉冲宽度信号(扩宽脉冲宽度)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
將一個脈沖寬度的信號變為兩個脈沖寬度信號
module PluseVary(input wire sclk,input wire rst_n,input wire pulse_a,output reg pulse_b ); reg enable; always @(posedge sclk or negedge rst_n)beginif(rst_n==1'b0) enable<=1'b0;else enable<=~enable; endalways @(posedge sclk or negedge rst_n)beginif(rst_n==1'b0) pulse_b<=1'b0;else if(enable==1'b1)pulse_b<=pulse_a; end endmodule仿真結果
總結
以上是生活随笔為你收集整理的Verilog——将单脉冲宽度信号变为双脉冲宽度信号(扩宽脉冲宽度)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: G4560成功上Bigsur系统
- 下一篇: 把 Notepad++ 打造成一款易用的