1
0
forked from tanchou/Verilog

Fix UART RX module instantiation and update build script for correct file references

This commit is contained in:
Gamenight77
2025-05-07 11:07:42 +02:00
parent 83c40bee28
commit f990a6f6d3
3 changed files with 809 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -19,7 +19,7 @@ if not exist runs (
)
echo === Étape 1 : Synthèse avec Yosys ===
yosys -p "read_verilog -sv src/verilog/%TOP%1.v IP/verilog/other_rx.v IP/verilog/other_tx.v src/verilog/uart_rx.v src/verilog/uart_tx.v; synth_gowin -top %TOP% -json %JSON_FILE%"
yosys -p "read_verilog -sv src/verilog/%TOP%.v IP/verilog/other_rx.v IP/verilog/rxuartlite.v IP/verilog/other_tx.v src/verilog/uart_rx.v src/verilog/uart_tx.v; synth_gowin -top %TOP% -json %JSON_FILE%"
if errorlevel 1 goto error
echo === Étape 2 : Placement & Routage avec nextpnr-himbaechel ===

View File

@@ -17,23 +17,22 @@ module top_uart_loopback (
end
// === UART RX ===
other_uart_rx uart_rx_inst (
.clk(clk),
.rst_n(1'b1),
.rx_pin(rx),
.rx_data_valid(rx_received),
.rx_data_ready(1'b1),
.rx_data(rx_data)
rxuartlite uart_rx_inst (
.i_clk(clk),
.i_reset(1'b0),
.i_uart_rx(rx),
.o_wr(rx_received),
.o_data(rx_data)
);
// === UART TX ===
other_uart_tx uart_tx_inst (
uart_tx uart_tx_inst (
.clk(clk),
.rst_n(1'b1),
.tx_data(tx_data),
.tx_data_valid(tx_enable),
.tx_data_ready(tx_ready),
.tx_pin(tx)
.rst_p(1'b0),
.data(data_const),
.tx_enable(tx_enable),
.tx_ready(tx_ready),
.tx(tx)
);
// === FSM avec délai ===