From f862b2a5ae5bc65b7e5ded48dac49aa161a6cfa1 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 15 Jun 2015 19:54:33 +0000 Subject: [PATCH] - always consume command git-svn-id: http://moon:8086/svn/vhdl/trunk@1303 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/spi/src/spi_master.vhd | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/spi/src/spi_master.vhd b/lib/spi/src/spi_master.vhd index aa245ee..1b6d428 100644 --- a/lib/spi/src/spi_master.vhd +++ b/lib/spi/src/spi_master.vhd @@ -287,7 +287,7 @@ begin when load_data => if xfer_count_busy = '0' then - state_next <= idle; + state_next <= finish; elsif write_fifo_empty = '0' then data_load_en <= '1'; state_next <= shift_write; @@ -301,12 +301,10 @@ begin state_next <= finish; elsif data_count_busy = '1' then if word_cnt_pipe(word_cnt_pipe'left) = '1' then - if data_count_busy = '1' then - if write_fifo_empty = '0' then - data_load_en <= '1'; - else - state_next <= load_data; - end if; + if write_fifo_empty = '0' then + data_load_en <= '1'; + else + state_next <= load_data; end if; end if; else