Go to the documentation of this file.00001 #define BS 16
00002
00003 #define FLASHBASE 0x00c00000
00004 #define FPGABASE 0x00000000
00005 #define RANGE_REG 0x00800000
00006 #define FPGA_DIRECT 0x00800004
00007
00008 #define RANGELIMIT 0x100000
00009
00010 #define CSRREG 0x00000000
00011 #define DISPRAM 0x00010000
00012 #define DISPREG 0x00020000
00013 #define SRAM 0x00100000
00014
00015 #define PERIODREG 0x0
00016 #define WIDTHREG 0x040
00017 #define NPREG 0x080
00018 #define ENABLEREG 0x0c0
00019 #define SCALERREG 0x100
00020
00021
00022 #define CSR_DONE 0x20
00023 #define CSR_INIT 0x40
00024
00025
00026 #define TBOX_ENA 0x0
00027 #define TBOX_SCALL 0x4
00028 #define TBOX_SCALH 0x8
00029 #define TBOX_LATCH 0xc
00030 #define TBOX_SCALER1 0x40
00031 #define TBOX_SCALER2 0x80
00032 #define TBOX_SCALER3 0xc0
00033
00034 #define TBOX_SCAL_ENA 0x8
00035 #define TBOX_SCAL_WIDTH 0x0
00036
00037 #define SCAL_SCAL1 0x40
00038 #define SCAL_SCAL2 0xc0
00039
00040 #define GATE_DELAY 0x80
00041 #define GATE_WIDTH 0xc0
00042
00043
00044 #define N_SCALER 32
00045
00046
00047
00048 #define MAXBLOCK 63