使用Vivado进行行为级仿真
1.编写设计文件
1 module test( 2 input in, 3 output out 4 ); 5 6 assign out = ~in; 7 8 endmodule
2.编写testbench(Set as Top)
1 module simu( 2 3 ); 4 5 reg clk = 0; 6 always #10 clk <= ~clk; 7 8 wire out; 9 10 test mytest(clk,out); 11 12 endmodule
3.运行Run Simulation - Run Behavioral Simulation