📄 sevenseg_case_tb.tf
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -