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.

32 lines
730 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. `timescale 1ns / 1ns
  2. module Top (
  3. input sys_clk,
  4. input rst_n,
  5. output reg [3:0] led,
  6. output reg [3:0] key,
  7. output wire usb_serial_tx,
  8. input wire usb_serial_rx,
  9. output wire [35:3] test_io
  10. );
  11. wire inclkpll_clk0out;
  12. inclkpll inclkpll_inst (
  13. .clkin1 (sys_clk),
  14. .clkout0(inclkpll_clk0out)
  15. );
  16. uart_reg_reader uart_reg_reader_impl (
  17. .clk(sys_clk),
  18. .rst_n(rst_n),
  19. .reg_data(),
  20. .reg_add(),
  21. .reg_add_valid(),
  22. .uart_rx_pin(usb_serial_rx),
  23. .uart_tx_pin(usb_serial_tx)
  24. );
  25. monitor_line monitor_line_usb_serial_rx(sys_clk, rst_n, usb_serial_rx, test_io[4]);
  26. assign test_io[3] = usb_serial_tx;
  27. // assign test_io[3] = inclkpll_clk0out;
  28. endmodule