2
0

testclk.sv 531 B

12345678910111213141516171819202122232425262728293031
  1. `timescale 1 ns / 1 ps
  2. module testclk;
  3. reg clock_48 = 1'b0;
  4. wire [2:0] led;
  5. wire [2:0] hdmi_d;
  6. wire hdmi_clk;
  7. wire hdmi_sda;
  8. wire hdmi_scl;
  9. wire hdmi_hpd;
  10. real mhz96_ns = 1000.0/96.0;
  11. initial
  12. begin
  13. forever
  14. #(mhz96_ns) clock_48 = !clock_48;
  15. end
  16. max80 max80 (
  17. .clock_48 ( clock_48 ),
  18. .led ( led ),
  19. .hdmi_d ( hdmi_d ),
  20. .hdmi_clk ( hdmi_clk ),
  21. .hdmi_sda ( hdmi_sda ),
  22. .hdmi_scl ( hdmi_scl ),
  23. .hdmi_hpd ( hdmi_hpd )
  24. );
  25. endmodule // testclk