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

📄 handshake_gate.v

📁 handshake checker and it is used in the design of USB or other material ,it is a simple one on the a
💻 V
字号:
/*module handshake_gate;    input  a,clk, r, reset;    output ef;    wire cob_a, cob_r, a1,a1not, a,anot,r1,r1not,r,rnot,cob1,cob2,cob3,e0;    begin        nor(cob_a,~a,reset);        nor(cob_r,~r,reset);    d_ff (.d(cob_a),.clk(clk),.q(a1),._q(a1not));    d_ff  (.d(a1),.clk(clk),.q(a),._q(anot));    d_ff  (.d(cob_r),.clk(clk),.q(r1),._q(r1not));    d_ff  (.d(r1),.clk(clk),.q(r),._q(rnot));    and  (cob1,rnot,anot,r1not);    and (cob2,rnot,r1,a1not);    and (cob3,r,a,a1not);    or  (e0, cob1,cob2, cob3);    locker final(.reset(reset),.e0(e0),.ef(ef));endendmodule; */module handshake_gate(a,clk,r,reset,ef);    input  a,clk, r, reset;    output ef;    wire cob_a, cob_r, a1,a1not, a,anot,r1,r1not,r,rnot,cob1,cob2,cob3,e0;   // begin        nor(cob_a,~a,reset);        nor(cob_r,~r,reset);    d_ff  H(.d(cob_a),.clk(clk),.q(a1),._q(a1not));    d_ff  I(.d(a1),.clk(clk),.q(a),._q(anot));    d_ff  J(.d(cob_r),.clk(clk),.q(r1),._q(r1not));    d_ff  K (.d(r1),.clk(clk),.q(r),._q(rnot));    and  (cob1,rnot,anot,r1not);    and (cob2,rnot,r1,a1not);    and (cob3,r,a,a1not);    or  (e0, cob1,cob2, cob3);    locker final(.reset(reset),.e0(e0),.ef(ef));// endendmodule 

⌨️ 快捷键说明

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