⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sevenseg_case_tb.tf

📁 FPGA开发板上写的Verilog代码 功能是从电脑端发送一个字节
💻 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 + -