Ignore:
Timestamp:
05/24/11 18:08:46 (14 years ago)
Author:
weitzel
Message:
FTM: crate reset implemented
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/ethernet/w5300_modul.vhd

    r10740 r10803  
    1818--
    1919----------------------------------------------------------------------------------
     20
    2021LIBRARY IEEE;
    2122USE IEEE.STD_LOGIC_1164.all;
     
    109110    crate_reset_param         : OUT std_logic_vector (15 DOWNTO 0) := (others => '0')
    110111  );
    111 
    112112END w5300_modul ;
    113113
     
    606606                if (dd_write_general_ready = '1') then
    607607                  data_package_type <= FTM_PACKAGE_TYPE_DD;
    608                   data_package_length <= DD_BLOCK_SIZE + 1; -- +1 := package end
     608                  data_package_length <= X"0" & (DD_BLOCK_SIZE + 1); -- +1 := package end
    609609                  read_addr_state <= READ_FROM_DD_ADDR;
    610610                  local_sd_addr <= X"000"; -- start at address 0x000
     
    640640                next_state <= SEND_FTU_ERROR;
    641641                data_package_type <= FTM_PACKAGE_TYPE_FTU_ERR;
    642                 data_package_length <= FTU_ERROR_LENGTH + 1; -- +1 := package end
     642                data_package_length <= X"0" & (FTU_ERROR_LENGTH + 1); -- +1 := package end
    643643                read_addr_state <= READ_FTU_ERROR;
    644644                local_sd_addr <= X"000";
     
    851851                    state_read_data <= RD_5;
    852852                    data_package_type <= FTM_PACKAGE_TYPE_FTU_LIST;
    853                     data_package_length <= FL_BLOCK_SIZE + 1; -- +1 := package end
     853                    data_package_length <= X"0" & (FL_BLOCK_SIZE + 1); -- +1 := package end
    854854                    read_addr_state <= READ_FROM_FL_ADDR;
    855855                    local_sd_addr <= X"000"; --start at address 0x000
     
    863863              when RD_READ_SD_BLOCK =>
    864864                data_package_type <= FTM_PACKAGE_TYPE_SD;
    865                 data_package_length <= SD_BLOCK_SIZE + 1; -- +1 := package end
     865                data_package_length <= X"0" & (SD_BLOCK_SIZE + 1); -- +1 := package end
    866866                state_read_data <= RD_5;
    867867                read_addr_state <= READ_FROM_SD_ADDR;
     
    875875              when RD_READ_SD_ADDR =>
    876876                data_package_type <= FTM_PACKAGE_TYPE_SD_WORD;
    877                 data_package_length <= SD_SINGLE_WORD_SIZE + 1; -- +1 := package end
     877                data_package_length <= X"0" & (SD_SINGLE_WORD_SIZE + 1); -- +1 := package end
    878878                state_read_data <= RD_5;
    879879                read_addr_state <= READ_FROM_SD_ADDR;
Note: See TracChangeset for help on using the changeset viewer.