forked from tanchou/Verilog
Fix formatting and update LED assignment in top_uart_ultrason_command module
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
module top_uart_ultrason_command (
|
module top_uart_ultrason_command (
|
||||||
input wire clk, // 27 MHz
|
input wire clk, // 27 MHz
|
||||||
output wire tx,
|
output wire tx,
|
||||||
input wire rx,
|
input wire rx,
|
||||||
inout wire ultrason_sig, // Capteur ultrason
|
inout wire ultrason_sig, // Capteur ultrason
|
||||||
output reg [5:0] leds
|
output reg [5:0] leds
|
||||||
);
|
);
|
||||||
|
|
||||||
// === UART RX WIRE ===
|
// === UART RX WIRE ===
|
||||||
@@ -66,7 +66,8 @@ module top_uart_ultrason_command (
|
|||||||
|
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
|
|
||||||
leds [4] <= tx;
|
leds [4] <= data_available;
|
||||||
|
|
||||||
case (rx_state)
|
case (rx_state)
|
||||||
IDLE: begin
|
IDLE: begin
|
||||||
leds [5] <= 0;
|
leds [5] <= 0;
|
||||||
|
Reference in New Issue
Block a user