Changeset 10151


Ignore:
Timestamp:
02/10/11 14:52:59 (14 years ago)
Author:
weitzel
Message:
new array types and constants in library ftm_definitions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/ftm_definitions.vhd

    r10127 r10151  
    2626-- use IEEE.NUMERIC_STD.ALL;
    2727
    28 -- package ftm_array_types is 
    29 -- end ftm_array_types;
     28package ftm_array_types is
     29
     30  -- data arrays for a single FTU
     31  type FTU_enable_array_type is array (0 to 3) of std_logic_vector(15 downto 0);
     32  type FTU_dac_array_type    is array (0 to 4) of std_logic_vector(15 downto 0);
     33  type FTU_rate_array_type   is array (0 to 4) of std_logic_vector(31 downto 0);
     34  type active_FTU_array_type is array (0 to 3) of std_logic_vector(15 downto 0);
     35 
     36end ftm_array_types;
    3037
    3138
     
    3845package ftm_constants is
    3946
     47  constant NO_OF_CRATES         : integer :=  4;
     48  constant NO_OF_FTUS_PER_CRATE : integer := 10;
     49  constant NO_OF_FTU_ENABLE_REG : integer :=  4;
     50  constant NO_OF_FTU_DAC_REG    : integer :=  5;
     51 
    4052  --internal FPGA clock frequencies
    4153  constant INT_CLK_FREQUENCY_1 : integer :=  50000000;  --  50MHz
     
    5971  constant DNA_FOR_SIM : bit_vector := X"01710000E0000501";
    6072
     73  --RAM address offsets and widths
     74  constant STATIC_RAM_ACT_FTU_OFFSET : integer := 16#1B0#;
     75  constant STATIC_RAM_CFG_FTU_OFFSET : integer := 16#020#;
     76  constant STATIC_RAM_ADDR_WIDTH     : integer := 12;
     77 
    6178end ftm_constants;
Note: See TracChangeset for help on using the changeset viewer.