📄 alu_tb.v
字号:
`timescale 1ns/1nsmodule 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;endalu alu1(out,opcode,a,b);endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -