Changeset 10260 for firmware/FTM


Ignore:
Timestamp:
03/24/11 16:38:45 (14 years ago)
Author:
vogler
Message:
ftm_definitions clock constants and array for conditioner interface updated
Location:
firmware/FTM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/Clock_cond_interface/Clock_cond_interface.vhd

    r10259 r10260  
    153153  signal cc_R14_sig            : std_logic_vector (31 downto 0);
    154154  signal cc_R15_sig            : std_logic_vector (31 downto 0);
    155  
     155
     156
     157
     158
    156159begin
    157160 
     
    198201  cc_R0_sig  <= cc_R0;             
    199202  cc_R1_sig  <= cc_R1;
    200  
    201   cc_R2_sig  <= cc_R2;             
    202   cc_R3_sig  <= cc_R3;
    203   cc_R4_sig  <= cc_R4;             
    204   cc_R5_sig  <= cc_R5;
    205   cc_R6_sig  <= cc_R6;             
    206   cc_R7_sig  <= cc_R7; 
     203  cc_R2_sig  <= cc_R2_const;                 
     204  cc_R3_sig  <= cc_R3_const;   
     205  cc_R4_sig  <= cc_R4_const;           
     206  cc_R5_sig  <= cc_R5_const;   
     207  cc_R6_sig  <= cc_R6_const;       
     208  cc_R7_sig  <= cc_R7_const;     
    207209  cc_R8_sig  <= cc_R8;
    208  
    209210  cc_R9_sig  <= cc_R9;     
    210211  cc_R11_sig <= cc_R11;       
     
    216217                                                -- bit 31 of register 0
    217218  clk_cond_array_sig(1) <= cc_R0_sig;
    218   clk_cond_array_sig(2) <= cc_R1_sig; 
    219   clk_cond_array_sig(3) <= cc_R8_sig;
    220   clk_cond_array_sig(4) <= cc_R9_sig;
    221   clk_cond_array_sig(5) <= cc_R11_sig;
    222   clk_cond_array_sig(6) <= cc_R13_sig;
    223   clk_cond_array_sig(7) <= cc_R14_sig;
    224   clk_cond_array_sig(8) <= cc_R15_sig;
     219  clk_cond_array_sig(2) <= cc_R1_sig;
     220 
     221  clk_cond_array_sig(3) <= cc_R2_sig; -- unused channels
     222  clk_cond_array_sig(4) <= cc_R3_sig;
     223  clk_cond_array_sig(5) <= cc_R4_sig;
     224  clk_cond_array_sig(6) <= cc_R5_sig;
     225  clk_cond_array_sig(7) <= cc_R6_sig;
     226  clk_cond_array_sig(8) <= cc_R7_sig;
     227 
     228  clk_cond_array_sig(9)  <= cc_R8_sig;
     229  clk_cond_array_sig(10) <= cc_R9_sig;
     230  clk_cond_array_sig(11) <= cc_R11_sig;
     231  clk_cond_array_sig(12) <= cc_R13_sig;
     232  clk_cond_array_sig(13) <= cc_R14_sig;
     233  clk_cond_array_sig(14) <= cc_R15_sig;
    225234
    226235
  • firmware/FTM/ftm_definitions.vhd

    r10259 r10260  
    5050
    5151  -- data array for clock conditioner interface
    52   type clk_cond_array_type is array (0 to 13) of std_logic_vector (31 downto 0);
     52  type clk_cond_array_type is array (0 to 14) of std_logic_vector (31 downto 0);
    5353
    5454  -- network array types
     
    113113  constant LMK03000_Reset          : std_logic_vector (31 downto 0) :=  x"80000000";
    114114  constant LMK03000_REGISTER_WIDTH : integer := 32;
    115   constant LMK03000_REGISTER_COUNT : integer := 9;  -- number of registers to be programmed in the LMK03000 including reset
     115  constant LMK03000_REGISTER_COUNT : integer := 15;  -- number of registers to be programmed in the LMK03000 including reset
     116  constant cc_R2_const              : std_logic_vector := X"00000102";  -- unused                                                                       
     117  constant cc_R3_const              : std_logic_vector := X"00000103";  -- channels
     118  constant cc_R4_const              : std_logic_vector := X"00000104";
     119  constant cc_R5_const              : std_logic_vector := X"00000105";
     120  constant cc_R6_const              : std_logic_vector := X"00000106";
     121  constant cc_R7_const              : std_logic_vector := X"00000107";
    116122 
    117123  -- network settings Dortmund
     
    249255
    250256
    251   -- Clock conditioner interface
    252   constant cc_R2_const              : std_logic_vector := X"00000102";
    253   constant cc_R3_const              : std_logic_vector := X"00000103";
    254   constant cc_R4_const              : std_logic_vector := X"00000104";
    255   constant cc_R5_const              : std_logic_vector := X"00000105";
    256   constant cc_R6_const              : std_logic_vector := X"00000106";
    257   constant cc_R7_const              : std_logic_vector := X"00000107";
    258  
    259 
    260257  -- arrays for default values
    261258  type sd_block_default_array_type is array (0 to (SD_BLOCK_SIZE_GENERAL - 1)) of std_logic_vector (15 downto 0);
     
    327324
    328325  -- Timing counter
    329   constant tc_width : integer := 48;    -- width (number of bits) of timing counter
    330   constant zero : unsigned (tc_width - 1 downto 0) := (others => '0'); 
     326--  constant tc_width : integer := 48;    -- width (number of bits) of timing counter
     327--  constant zero : unsigned (tc_width - 1 downto 0) := (others => '0'); 
    331328
    332329end ftm_constants;
Note: See TracChangeset for help on using the changeset viewer.