handshake_gate.v

来自「handshake checker and it is used in the 」· Verilog 代码 · 共 39 行

V
39
字号
/*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 + =
减小字号Ctrl + -
显示快捷键?