Changeset 10157 for firmware


Ignore:
Timestamp:
Feb 17, 2011, 1:54:45 PM (9 years ago)
Author:
weitzel
Message:
new version of ftm_definitions.vhd
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/ftm_definitions.vhd

    r10151 r10157  
    3333  type FTU_rate_array_type   is array (0 to 4) of std_logic_vector(31 downto 0);
    3434  type active_FTU_array_type is array (0 to 3) of std_logic_vector(15 downto 0);
     35  type FTU_answer_array_type is array (0 to 3) of integer range 0 to 10;
    3536 
    3637end ftm_array_types;
     
    4950  constant NO_OF_FTU_ENABLE_REG : integer :=  4;
    5051  constant NO_OF_FTU_DAC_REG    : integer :=  5;
     52  constant NO_OF_FTU_LIST_REG   : integer :=  6;
    5153 
    5254  --internal FPGA clock frequencies
     
    6062  --communication with FTUs
    6163  constant FTU_RS485_BAUD_RATE   : integer := 250000;  -- bits / sec in our case
    62   constant FTU_RS485_TIMEOUT     : integer := (INT_CLK_FREQUENCY_1 * 5) / 1000;  -- 5ms @ 50MHz (250000 clk periods)
    63   constant FTU_RS485_BLOCK_WIDTH : integer := 224;     -- 28 byte protocol
     64  constant FTU_RS485_TIMEOUT     : integer := (INT_CLK_FREQUENCY_1 * 2) / 1000;  -- 2ms @ 50MHz (100000 clk periods)
     65  constant FTU_RS485_NO_OF_RETRY : integer range 0 to 2 := 2;  -- in case of timeout, !!! HAS TO BE < 3 !!!
     66  constant FTU_RS485_BLOCK_WIDTH : integer := 224;  -- 28 byte protocol
    6467  constant FTU_RS485_START_DELIM : std_logic_vector(7 downto 0) := "01000000";  -- start delimiter "@"
    6568 
     
    7578  constant STATIC_RAM_CFG_FTU_OFFSET : integer := 16#020#;
    7679  constant STATIC_RAM_ADDR_WIDTH     : integer := 12;
     80  constant FTU_LIST_RAM_OFFSET       : integer := 16#009#;
     81  constant FTU_LIST_RAM_ADDR_WIDTH   : integer := 12;
    7782 
    7883end ftm_constants;
Note: See TracChangeset for help on using the changeset viewer.