五、Reading Simulations
Writing Testbenches
1、Clock
Problem Statement:
You are provided a module with the following declaration:
module dut ( input clk ) ;Write a testbench that creates one instance of module dut (with any instance name), and create a clock signal to drive the module's clk input. The clock has a period of 10 ps. The clock should be initialized to zero with its first transition being 0 to 1.
module top_module ( );
reg clk;
initial begin
clk = 1'b0;
end
always #5 clk =~clk;
dut instance1(.clk(clk));
endmodule
2、Testbench1
Problem Statement:
Create a Verilog testbench that will


最低0.47元/天 解锁文章
620

被折叠的 条评论
为什么被折叠?



