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.

18 lines
364 B

2 years ago
  1. /*
  2. * Hacky baud rate generator to divide a 50MHz clock into a 115200 baud
  3. * rx/tx pair where the rx clcken oversamples by 16x.
  4. */
  5. module monitor_line (
  6. input wire clk_50m,
  7. input wire rst_n,
  8. input wire in,
  9. output reg out
  10. );
  11. always @(posedge clk_50m or negedge rst_n) begin
  12. if (!rst_n) out <= 1'b0;
  13. else out <= in;
  14. end
  15. endmodule