sevenseg_case_tb.tf
来自「FPGA开发板上写的Verilog代码: 功能是从电脑端发送一个字节」· TF 代码 · 共 35 行
TF
35 行
module testbench();
// Inputs
reg [3:0] hex;
// Outputs
wire [7:0] seg;
// Instantiate the UUT
sevenseg_case uut (
.hex(hex),
.seg(seg)
);
// Initialize Inputs
initial $monitor($time, "seg = %h, hex = %h", seg, hex);
// Initialize Inputs
initial begin
hex = 8'h00;
end
always
#10 hex = hex + 8'h01;
initial #160 $finish; //Complete simulation after 160 units
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?