1
0
forked from tanchou/Verilog

Fix build script and update state machine in UART loopback module

This commit is contained in:
Gamenight77
2025-05-07 10:39:52 +02:00
parent ec1c69cf8f
commit 83c40bee28
4 changed files with 181 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ module ultrasonic_fpga #(
case (state)
IDLE: begin
done <= 1;
sig_out <= 0;
sig_dir <= 0;
distance <= 0;

View File

@@ -56,7 +56,7 @@ module top_uart_ultrason (
SEND_LOW: begin
wr_en <= 1;
wr_data <= distance[7:0]; // Octet LSB
state <= IDLE;
state <= SEND_HIGH;
end
SEND_HIGH: begin