mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 08:58:40 -08:00
lss: Implement fractional baud rate generation for UART
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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+
|
||||
|
||||
@@ -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+
|
||||
|
||||
@@ -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+
|
||||
|
||||
Reference in New Issue
Block a user