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

📄 send_register.v

📁 UART程序
💻 V
字号:
module send_register(clk,rst,ce,din,txd1,txd2,cs1,cs2);   input clk,rst,ce,cs1,cs2;   input[9:0] din;   output txd1,txd2;   reg txd1,txd2; reg[9:0] s_buf;         always @(posedge clk or negedge rst)    if(!rst)      begin
		s_buf<=din;       txd1<=1;       txd2<=1;      end    else      if(ce)      begin          if(cs1)            begin              txd1<=s_buf[0];              s_buf<={1'b1,s_buf[9:1]};              txd2<=1;            end          else if(cs2)             begin              txd2<=s_buf[0];              s_buf<={1'b1,s_buf[9:1]};              txd1<=1;             end              else               begin               txd1<=1;               txd2<=1;              end          end          endmodule

⌨️ 快捷键说明

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