You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
691 B

2 years ago
  1. `timescale 1ns / 1ns
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Module Name: vtf_led_test
  4. //////////////////////////////////////////////////////////////////////////////////
  5. module vtf_led_test;
  6. // Inputs
  7. reg sys_clk;
  8. reg rst_n;
  9. // Outputs
  10. wire [3:0] led;
  11. // Instantiate the Unit Under Test (UUT)
  12. led_test uut (
  13. .sys_clk(sys_clk),
  14. .rst_n(rst_n),
  15. .led(led)
  16. );
  17. initial begin
  18. // Initialize Inputs
  19. sys_clk = 0;
  20. rst_n = 0;
  21. // Wait 100 ns for global reset to finish
  22. #1000;
  23. rst_n = 1;
  24. // Add stimulus here
  25. #20000;
  26. // $stop;
  27. end
  28. always #10 sys_clk = ~ sys_clk; //20ns
  29. endmodule