1 #ifndef _ots_VIPICFirmwareDefinitions_h_
2 #define _ots_VIPICFirmwareDefinitions_h_
8 const uint32_t ETHIO_DESTINATION_PORT = 0xc1000018;
9 const uint32_t DATA_DESTINATION_IP = 0xc10000a4;
10 const uint32_t DATA_SOURCE_DESTINATION_PORT = 0xc10000a8;
12 const double EXTERNAL_CLOCK_FREQUENCY = 54;
13 const double INTERNAL_CLOCK_FREQUENCY = 66.667;
15 const uint8_t WRITE = 1;
16 const uint8_t SET = 2;
17 const uint8_t READ = 4;
18 const uint8_t RESET = 5;
19 const uint8_t CLEAR = 5;
20 const uint8_t DEFAULT = 6;
21 const uint8_t WAITCLR = 7;
22 const uint8_t WAITSET = 8;
24 const int PIXELS_SIDE = 64;
26 const unsigned int VIPIC_CLOCK = 0xc9000004;
27 const unsigned int VIPIC_CSR = 0xc9000000;
28 const unsigned int VIPIC_LINK = 0xc9000010;
29 const unsigned int VIPIC_TEST_INJECT = 0xc9000020;
30 const unsigned int VIPIC_SPY_FIFO_STATUS = 0xc9000024;
31 const unsigned int VIPIC_SPY_FIFO_DATA = 0xc9000028;
32 const unsigned int VIPIC_TS_COUNTER_LOW = 0xc9000040;
33 const unsigned int VIPIC_TS_COUNTER_HIGH = 0xc9000044;
34 const unsigned int VIPIC_DCM_DATA = 0xc9000048;
35 const unsigned int VIPIC_STREAMER = 0xc900004c;
37 const unsigned int VIPIC_SET_WRITE_BASE = 0xc9001000;
38 const unsigned int VIPIC_SET_WRITE_END = 0xc90011ff;
39 const unsigned int VIPIC_SET_READ_BASE = 0xc9001200;
40 const unsigned int VIPIC_SET_READ_END = 0xc90013ff;
41 const unsigned int VIPIC_RESET_WRITE_BASE = 0xc9001400;
42 const unsigned int VIPIC_RESET_WRITE_END = 0xc90015ff;
43 const unsigned int VIPIC_RESET_READ_BASE = 0xc9001600;
44 const unsigned int VIPIC_RESET_READ_END = 0xc90017ff;
45 const unsigned int VIPIC_DATA_WRITE_BASE = 0xc9002000;
46 const unsigned int VIPIC_DATA_WRITE_END = 0xc90037ff;
47 const unsigned int VIPIC_DATA_READ_BASE = 0xc9004000;
48 const unsigned int VIPIC_DATA_READ_END = 0xc90057ff;