alu_tb.v

来自「verilog hdl经典例程」· Verilog 代码 · 共 23 行

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