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.

50 lines
819 B

2 years ago
  1. `timescale 1ns / 1ns
  2. module test_top;
  3. // Inputs
  4. reg clk_50m;
  5. reg rst_n;
  6. wire rxclk_en;
  7. wire txclk_en;
  8. wire [3:0] led;
  9. wire test_io3;
  10. wire test_io4;
  11. wire test_io5;
  12. wire test_io6;
  13. wire test_io7;
  14. wire test_io8;
  15. wire test_io9;
  16. wire test_io10;
  17. wire test_io11;
  18. Top top_impl (
  19. .sys_clk(clk_50m),
  20. .rst_n(rst_n),
  21. .led(led),
  22. .test_io3(test_io3),
  23. .test_io4(test_io4),
  24. .test_io5(test_io5),
  25. .test_io6(test_io6),
  26. .test_io7(test_io7),
  27. .test_io8(test_io8),
  28. .test_io9(test_io9),
  29. .test_io10(test_io10),
  30. .test_io11(test_io11)
  31. );
  32. initial begin
  33. // Initialize Inputs
  34. clk_50m = 0;
  35. rst_n = 0;
  36. #100;
  37. rst_n = 1;
  38. #15;
  39. #300000;
  40. $stop;
  41. end
  42. always #10 clk_50m = ~clk_50m; //20ns 50MHZ
  43. endmodule