00001 //File: RodDspAddresses.h 00002 00003 #ifndef SCTPIXELROD_RODDSPADDRESSES_H 00004 #define SCTPIXELROD_RODDSPADDRESSES_H 00005 00006 /*! 00007 * RodDspAddresses.h is a wrapper around the testBench C code header file 00008 * memoryPartitions.h. This wrapper adapts things to appear more like C++ and to 00009 * declare things const so the compiler can catch attempts to change them in the 00010 * code. 00011 * 00012 * It also has hard-coded slave addresses which are needed by initSlaveDsp(). 00013 * 00014 * Use only the names declared in this file when writing C++ code. 00015 * 00016 * @author T. Meyer (meyer@iastate.edu) 00017 */ 00018 00019 namespace SctPixelRod { 00020 00021 #include "../CommonWithDsp/processor.h" 00022 #include "../CommonWithDsp/memoryPartitions.h" 00023 // Use only the names in this file in C++ code. 00024 00025 // Give some shorter aliases to the primitive list and reply list buffers 00026 const unsigned long PRIM_BUFF_BASE = HOST_PRM_BFR_BASE; 00027 const unsigned long PRIM_BUFF_SIZE = HOST_PRM_BFR_SZ; 00028 const unsigned long REPLY_BUFF_BASE = HOST_REP_BFR_BASE; 00029 const unsigned long REPLY_BUFF_SIZE = HOST_REP_BFR_SZ; 00030 00031 // Give aliases to text buffers 00032 const unsigned long TEXT_BUFF_SIZE = TXT_BFR_SZ; 00033 const unsigned long ERR_BUFF_BASE = ERR_BFR_BASE; 00034 const unsigned long INFO_BUFF_BASE = INFO_BFR_BASE; 00035 const unsigned long DIAG_BUFF_BASE = DIAG_BFR_BASE; 00036 const unsigned long XFER_BUFF_BASE = XFER_BFR_BASE; 00037 00038 // Give aliases to VmeCommand and RodStatus registers 00039 const unsigned long STATUS_REG[3] = {STATUS_REG_0, STATUS_REG_1, STATUS_REG_2}; 00040 const unsigned long COMMAND_REG[2] = {COMMAND_REG_0, COMMAND_REG_1}; 00041 00042 // Define slave DSP addresses for initializing and direct HPI communication 00043 // with slave 00044 const unsigned long SLAVE_HPIC_BASE = 0x00780000; 00045 const unsigned long SLAVE_HPIA_BASE = SLAVE_HPIC_BASE+0x4; 00046 const unsigned long SLAVE_HPID_AUTO_BASE = SLAVE_HPIC_BASE+0x8; 00047 const unsigned long SLAVE_HPID_NOAUTO_BASE = SLAVE_HPIC_BASE+0xC; 00048 const unsigned long SLAVE_HPI_OFFSET = 0x20000; 00049 00050 const unsigned long SLAVE_EMIF_ADDR =0x01800010; 00051 const unsigned long SLAVE_IPRAM_ADDR = 0x00000000; 00052 const unsigned long SLAVE_IDRAM_ADDR = 0x80000000; 00053 const unsigned long SLAVE_CE2_ADDR = 0x02000000; 00054 00055 } // End namespace SctPixelRod 00056 00057 #endif // SCTPIXELROD_RODDSPADDRESSES_H