$treeview $search $mathjax $extrastylesheet
otsdaq_components
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_VIPICFirmwareDefinitions_h_ 00002 #define _ots_VIPICFirmwareDefinitions_h_ 00003 00004 #include <stdint.h> 00005 00006 namespace ots 00007 { 00008 const uint32_t ETHIO_DESTINATION_PORT = 0xc1000018; 00009 const uint32_t DATA_DESTINATION_IP = 0xc10000a4; 00010 const uint32_t DATA_SOURCE_DESTINATION_PORT = 0xc10000a8; 00011 00012 const double EXTERNAL_CLOCK_FREQUENCY = 54; // base freq: 54MHz 00013 const double INTERNAL_CLOCK_FREQUENCY = 66.667; // base freq: 66.667MHz 00014 00015 const uint8_t WRITE = 1; 00016 const uint8_t SET = 2; 00017 const uint8_t READ = 4; 00018 const uint8_t RESET = 5; 00019 const uint8_t CLEAR = 5; 00020 const uint8_t DEFAULT = 6; 00021 const uint8_t WAITCLR = 7; 00022 const uint8_t WAITSET = 8; 00023 00024 const int PIXELS_SIDE = 64; 00025 00026 const unsigned int VIPIC_CLOCK = 0xc9000004; // Still undefined 00027 const unsigned int VIPIC_CSR = 0xc9000000; // Command/status register 00028 const unsigned int VIPIC_LINK = 0xc9000010; // Serial link status 00029 const unsigned int VIPIC_TEST_INJECT = 0xc9000020; // Drives test data on connector J3 00030 const unsigned int VIPIC_SPY_FIFO_STATUS = 0xc9000024; // Spy FIFO status register 00031 const unsigned int VIPIC_SPY_FIFO_DATA = 0xc9000028; // Spy FIFO data register 00032 const unsigned int VIPIC_TS_COUNTER_LOW = 0xc9000040; // TS counter low 32 bits 00033 const unsigned int VIPIC_TS_COUNTER_HIGH = 0xc9000044; // TS counter high 16 bits 00034 const unsigned int VIPIC_DCM_DATA = 0xc9000048; // DCM configuration (old BCO data) 00035 const unsigned int VIPIC_STREAMER = 0xc900004c; // Data stream status register 00036 00037 const unsigned int VIPIC_SET_WRITE_BASE = 0xc9001000; // Set write buffer 00038 const unsigned int VIPIC_SET_WRITE_END = 0xc90011ff; // 00039 const unsigned int VIPIC_SET_READ_BASE = 0xc9001200; // Set readback buffer 00040 const unsigned int VIPIC_SET_READ_END = 0xc90013ff; // 00041 const unsigned int VIPIC_RESET_WRITE_BASE = 0xc9001400; // Reset write buffer 00042 const unsigned int VIPIC_RESET_WRITE_END = 0xc90015ff; // 00043 const unsigned int VIPIC_RESET_READ_BASE = 0xc9001600; // Reset readback buffer 00044 const unsigned int VIPIC_RESET_READ_END = 0xc90017ff; // 00045 const unsigned int VIPIC_DATA_WRITE_BASE = 0xc9002000; // Data write buffer 00046 const unsigned int VIPIC_DATA_WRITE_END = 0xc90037ff; // 00047 const unsigned int VIPIC_DATA_READ_BASE = 0xc9004000; // Data readback buffer 00048 const unsigned int VIPIC_DATA_READ_END = 0xc90057ff; // 00049 } 00050 00051 #endif