top.v

来自「Manual for DSP sp3 for students who do c」· Verilog 代码 · 共 46 行

V
46
字号
`timescale 1ns / 1ps//////////////////////////////////////////////////////////////////////////////////// Company: // Engineer: // // Create Date:    16:17:42 01/21/2009 // Design Name: // Module Name:    top // Project Name: // Target Devices: // Tool versions: // Description: //// Dependencies: //// Revision: // Revision 0.01 - File Created// Additional Comments: ////////////////////////////////////////////////////////////////////////////////////module top();
wire sum,cout;reg cin,a,b;labfirst l1(cin, a, b, sum, cout);

initial begin

#5;
a=1;
cin=1;
b=0;
#5;
a=1;cin=1;b=1;
#5;
a=0;cin=0;b=1;
#5;
end
endmodule

⌨️ 快捷键说明

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