Changeset 10157
- Timestamp:
- 02/17/11 13:54:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FTM/ftm_definitions.vhd
r10151 r10157 33 33 type FTU_rate_array_type is array (0 to 4) of std_logic_vector(31 downto 0); 34 34 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; 35 36 36 37 end ftm_array_types; … … 49 50 constant NO_OF_FTU_ENABLE_REG : integer := 4; 50 51 constant NO_OF_FTU_DAC_REG : integer := 5; 52 constant NO_OF_FTU_LIST_REG : integer := 6; 51 53 52 54 --internal FPGA clock frequencies … … 60 62 --communication with FTUs 61 63 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 64 67 constant FTU_RS485_START_DELIM : std_logic_vector(7 downto 0) := "01000000"; -- start delimiter "@" 65 68 … … 75 78 constant STATIC_RAM_CFG_FTU_OFFSET : integer := 16#020#; 76 79 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; 77 82 78 83 end ftm_constants;
Note:
See TracChangeset
for help on using the changeset viewer.