alu_tb.v.bak
来自「verilog hdl经典例程」· BAK 代码 · 共 22 行
BAK
22 行
`timescale 1ns/1ns
module alutest;
wire [7:0] out;
reg [7:0] a,b;
reg [2:0]opcode;
parameter times=5;
initial
begin
a={$random}%256;
b={$random}%256;
opcode=3'h0;
repeat(times);
begin
#100 a={$random}%256;
b={$random}%256;
opcode=opcode+1;
end
#100 $stop;
end
alu alu1(out,opcode,a,b);
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?