Ignore:
Timestamp:
07/20/11 14:54:17 (14 years ago)
Author:
weitzel
Message:
FTM firmware features now the config_single_FTU command (to be tested); also some defaults were changed
Location:
firmware/FTM/ethernet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified firmware/FTM/ethernet/ethernet_modul_beha.vhd

    r10441 r11485  
    22--
    33-- Created:
    4 --          by - kai.users (tpkw.local.priv)
    5 --          at - 11:20:56 04/20/11
     4--          by - kai.UNKNOWN (E5PCXX)
     5--          at - 13:50:41 30.06.2011
    66--
    77-- Generated by Mentor Graphics' HDL Designer(TM) 2009.1 (Build 12)
     
    1010USE ieee.std_logic_1164.all;
    1111USE ieee.std_logic_arith.all;
    12 
    1312library ftm_definitions;
    1413USE ftm_definitions.ftm_array_types.all;
     
    118117      current_cc_state       : IN     std_logic_vector (15 DOWNTO 0);
    119118      start_run_param        : OUT    std_logic_vector (15 DOWNTO 0) := (others => '0');
    120       start_run_num_events   : OUT    std_logic_vector (31 DOWNTO 0) := (others => '0')
     119      start_run_num_events   : OUT    std_logic_vector (31 DOWNTO 0) := (others => '0');
     120      new_config_ftu         : OUT    std_logic                      := '0';
     121      new_config_ftu_ack     : IN     std_logic;
     122      new_config_ftu_param   : OUT    std_logic_vector (15 DOWNTO 0) := (others => '0')
    121123   );
    122124
     
    459461      crate_reset              : OUT    std_logic                      := '0';
    460462      crate_reset_ack          : IN     std_logic ;
    461       crate_reset_param        : OUT    std_logic_vector (15 DOWNTO 0) := (others => '0')
     463      crate_reset_param        : OUT    std_logic_vector (15 DOWNTO 0) := (others => '0');
     464      new_config_ftu           : OUT    std_logic                      := '0';
     465      new_config_ftu_ack       : IN     std_logic ;
     466      new_config_ftu_param     : OUT    std_logic_vector (15 DOWNTO 0) := (others => '0')
    462467   );
    463468   END COMPONENT;
     
    717722         crate_reset              => crate_reset,
    718723         crate_reset_ack          => crate_reset_ack,
    719          crate_reset_param        => crate_reset_param
     724         crate_reset_param        => crate_reset_param,
     725         new_config_ftu           => new_config_ftu,
     726         new_config_ftu_ack       => new_config_ftu_ack,
     727         new_config_ftu_param     => new_config_ftu_param
    720728      );
    721729
  • TabularUnified firmware/FTM/ethernet/w5300_modul.vhd

    r10803 r11485  
    2323USE IEEE.STD_LOGIC_ARITH.all;
    2424USE IEEE.STD_LOGIC_UNSIGNED.all;
    25 
    2625library ftm_definitions;
    2726USE ftm_definitions.ftm_array_types.all;
     
    108107    crate_reset               : OUT std_logic := '0';
    109108    crate_reset_ack           : IN  std_logic;
    110     crate_reset_param         : OUT std_logic_vector (15 DOWNTO 0) := (others => '0')
     109    crate_reset_param         : OUT std_logic_vector (15 DOWNTO 0) := (others => '0');
     110    new_config_ftu            : OUT std_logic := '0';
     111    new_config_ftu_ack        : IN  std_logic;
     112    new_config_ftu_param      : OUT std_logic_vector (15 DOWNTO 0) := (others => '0')
     113   
    111114  );
     115
    112116END w5300_modul ;
    113117
     
    327331              ftu_error_send_ack <= '1';
    328332              ftu_error_send_ready <= '1';
     333              --
     334              start_run <= '0';
     335              stop_run <= '0';
     336              crate_reset <= '0';
     337              new_config_ftu <= '0';
    329338              -- set internal signals
    330339              new_config_flag <= '0';
     
    769778                    crate_reset <= '1';
    770779                    crate_reset_param <= cmd_array (2);
     780--                    led_int <= cmd_array (2) (7 downto 0);
    771781                    if (crate_reset_ack = '1') then
    772782                      crate_reset <= '0';
     
    776786                    end if;
    777787
     788                  when CMD_CONFIG_FTU =>
     789                    new_config_ftu <= '1';
     790                    new_config_ftu_param <= cmd_array (2);
     791--                    led_int <= cmd_array (2) (7 downto 0);
     792                    if (new_config_ftu_ack = '1') then
     793                      new_config_ftu <= '0';
     794                      state_read_data <= RD_5;
     795                    else
     796                      state_init <= MAIN;
     797                    end if;
     798                   
    778799                  when CMD_WRITE =>
    779800                    case cmd_array (2) is
     
    897918                  next_packet_data_cnt <= 0;
    898919                  wait_for_data_flag <= '0';
     920                  next_state_read_data <= RD_CMD;
    899921                  new_config_flag <= '1';
    900                   next_state_read_data <= RD_CMD;
    901922                end if;
    902923
Note: See TracChangeset for help on using the changeset viewer.