From 987035cd215d71ee109cae9038fe55d6cf83ea76 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 6 Jan 2024 00:14:12 +0100 Subject: [PATCH] fix: full_on skips indices --- src/ssd1306/full_on.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssd1306/full_on.vhd b/src/ssd1306/full_on.vhd index 4734435..476ceb1 100644 --- a/src/ssd1306/full_on.vhd +++ b/src/ssd1306/full_on.vhd @@ -98,10 +98,10 @@ begin -- architecture a1 (curr_index + 1) when go_next = '1' else curr_index; - go_next <= '1' when tx_ready = '1' and curr_index < INIT_DATA'length else '0'; + go_next <= '1' when tx_ready = '1' and curr_index < INIT_DATA'length and curr_state = COUNT else '0'; - tx_valid <= '1' when tx_ready = '1' and curr_index < INIT_DATA'length else '0'; + tx_valid <= '1' when go_next = '1' else '0'; tx_data <= INIT_DATA(curr_index) when curr_index < INIT_DATA'length else "00000000"; next_state <= START when start_i = '1' and curr_state = IDLE else -- 2.49.0