forked from tanchou/Verilog
Debg compliqué
This commit is contained in:
@@ -65,10 +65,11 @@ module top_uart_ultrason_command (
|
||||
reg [1:0] mesure = STOP;
|
||||
|
||||
always @(posedge clk) begin
|
||||
leds [5] <= rx;
|
||||
|
||||
leds [4] <= tx;
|
||||
case (rx_state)
|
||||
IDLE: begin
|
||||
leds [5] <= 0;
|
||||
wr_en <= 0;
|
||||
rd_en <= 0;
|
||||
|
||||
@@ -81,6 +82,7 @@ module top_uart_ultrason_command (
|
||||
end
|
||||
|
||||
READ: begin
|
||||
leds [5] <= 1;
|
||||
case (rd_data)
|
||||
8'h01: begin // Start mesure one mesure
|
||||
start <= 1;
|
||||
|
Reference in New Issue
Block a user