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

/*
* Hacky baud rate generator to divide a 50MHz clock into a 115200 baud
* rx/tx pair where the rx clcken oversamples by 16x.
*/
module monitor_line (
input wire clk_50m,
input wire rst_n,
input wire in,
output reg out
);
always @(posedge clk_50m or negedge rst_n) begin
if (!rst_n) out <= 1'b0;
else out <= in;
end
endmodule