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

📄 oneshot_rx.txt

📁 these files are written in verilog but i am uploading in text format
💻 TXT
字号:
`timescale 1ns/1ps
module oneshot_rx(osin_rx,clk1,osout_rx,load_rx);
input osin_rx;
input clk1;
output osout_rx,load_rx;
reg osout_rx,load_rx; 
reg count=1'b1;
always @(posedge osin_rx or posedge osout_rx)
begin
  if(osin_rx)
   begin
   if(count)
     begin
        if(osout_rx)
           load_rx<= 0;
        else
           load_rx <= 1;
      count<=1'b0; 
     end
  end
if(osout_rx)
	 load_rx<= 0;
end

always @(posedge clk1)
begin
osout_rx <= load_rx;
end
endmodule

⌨️ 快捷键说明

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