forked from tanchou/Verilog
MAJ FIFO -> turn wire rd_data into register
This commit is contained in:
@@ -120,13 +120,11 @@ localparam DATA_BYTE = 8'h31; // ASCII '1'
|
||||
tx_enable <= 1'b0;
|
||||
leds[5:0] <= rx_data[5:0];
|
||||
|
||||
if (tx_ready && delay_counter == 0) begin
|
||||
if (tx_ready && rx_received) begin
|
||||
// Start new transmission
|
||||
tx_enable <= 1'b1;
|
||||
data_const <= DATA_BYTE;
|
||||
tx_data <= rx_data;
|
||||
|
||||
// Display received data on LEDs
|
||||
|
||||
delay_counter <= DELAY_CYCLES;
|
||||
end
|
||||
|
Reference in New Issue
Block a user