lss: Implement fractional baud rate generation for UART

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-03-11 23:49:39 -07:00
parent 1c686391ab
commit ebeadee172
19 changed files with 86 additions and 57 deletions

View File

@@ -78,7 +78,7 @@ for (genvar n = 0; n < UART_CNT; n = n + 1) begin : uart_ch
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk_125mhz),
.rst(rst_125mhz),
@@ -109,7 +109,7 @@ for (genvar n = 0; n < UART_CNT; n = n + 1) begin : uart_ch
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
end

View File

@@ -81,7 +81,7 @@ assign phy_reset_n = !rst;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk),
.rst(rst),
@@ -112,7 +112,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
taxi_axis_if #(.DATA_W(8), .ID_W(8)) axis_eth();

View File

@@ -71,7 +71,7 @@ assign uart_rst_n = 1'b1;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk),
.rst(rst),
@@ -102,7 +102,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// BASE-T PHY

View File

@@ -111,7 +111,7 @@ assign uart_rts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk),
.rst(rst),
@@ -142,7 +142,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// BASE-T PHY

View File

@@ -109,7 +109,7 @@ assign uart_rts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk),
.rst(rst),
@@ -140,7 +140,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// BASE-T PHY

View File

@@ -91,7 +91,7 @@ assign uart_rts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk),
.rst(rst),
@@ -122,7 +122,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// BASE-T PHY

View File

@@ -111,7 +111,7 @@ assign uart_rts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk_125mhz),
.rst(rst_125mhz),
@@ -142,7 +142,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// BASE-T PHY

View File

@@ -114,7 +114,7 @@ assign uart_cts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk_125mhz),
.rst(rst_125mhz),
@@ -145,7 +145,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// SFP+

View File

@@ -94,7 +94,7 @@ assign uart_cts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk_125mhz),
.rst(rst_125mhz),
@@ -125,7 +125,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// SFP+

View File

@@ -72,7 +72,7 @@ assign uart_cts = 0;
taxi_axis_if #(.DATA_W(8)) axis_uart();
taxi_uart
uut (
uart_inst (
.clk(clk_125mhz),
.rst(rst_125mhz),
@@ -103,7 +103,7 @@ uut (
/*
* Configuration
*/
.prescale(16'(125000000/115200/8))
.prescale(16'(125000000/115200))
);
// SFP+