process (a, sts_ready)
begin
-- sts_ready is in the sensitivity list because flash_array is a variable and cannot be
- array_word <= sparse_get(flash_array, to_integer(unsigned(a(a'high downto 1) & '0'))) &
- sparse_get(flash_array, to_integer(unsigned(a(a'high downto 1) & '1'))) after T_OH;
+ array_word <= sparse_get(flash_array, to_integer(unsigned(a(a'high downto 1) & '1'))) &
+ sparse_get(flash_array, to_integer(unsigned(a(a'high downto 1) & '0'))) after T_OH;
end process;
if byte_n = '0' then
sparse_set(flash_array, to_integer(unsigned(prog_addr)), prog_word(7 downto 0));
else
- sparse_set(flash_array, to_integer(unsigned(prog_addr(prog_addr'high downto 1) & '0')), prog_word(15 downto 8));
- sparse_set(flash_array, to_integer(unsigned(prog_addr(prog_addr'high downto 1) & '1')), prog_word( 7 downto 0));
+ sparse_set(flash_array, to_integer(unsigned(prog_addr(prog_addr'high downto 1) & '1')), prog_word(15 downto 8));
+ sparse_set(flash_array, to_integer(unsigned(prog_addr(prog_addr'high downto 1) & '0')), prog_word( 7 downto 0));
end if;
wsm_state_cur <= W_IDLE;