/*++ | |
Copyright (c) 2013 Intel Corporation. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions | |
are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in | |
the documentation and/or other materials provided with the | |
distribution. | |
* Neither the name of Intel Corporation nor the names of its | |
contributors may be used to endorse or promote products derived | |
from this software without specific prior written permission. | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
Module Name: | |
Memory_options.h | |
Abstract: | |
Common definitions and compilation switches for MRC | |
--*/ | |
#ifndef __MEMORY_OPTIONS_H | |
#define __MEMORY_OPTIONS_H | |
#include "core_types.h" | |
// MRC COMPILE TIME SWITCHES: | |
// ========================== | |
//#define MRC_SV // enable some validation opitons | |
#if defined (SIM) || defined(EMU) | |
#define QUICKSIM // reduce execution time using shorter rd/wr sequences | |
#endif | |
#define CLT // required for Quark project | |
//#define BACKUP_RCVN // enable STATIC timing settings for RCVN (BACKUP_MODE) | |
//#define BACKUP_WDQS // enable STATIC timing settings for WDQS (BACKUP_MODE) | |
//#define BACKUP_RDQS // enable STATIC timing settings for RDQS (BACKUP_MODE) | |
//#define BACKUP_WDQ // enable STATIC timing settings for WDQ (BACKUP_MODE) | |
//#define BACKUP_COMPS // enable *COMP overrides (BACKUP_MODE) | |
//#define RX_EYE_CHECK // enable the RD_TRAIN eye check | |
#define HMC_TEST // enable Host to Memory Clock Alignment | |
#define R2R_SHARING // enable multi-rank support via rank2rank sharing | |
#define FORCE_16BIT_DDRIO // disable signals not used in 16bit mode of DDRIO | |
// | |
// Debug support | |
// | |
#ifdef NDEBUG | |
#define DPF if(0) dpf | |
#else | |
#define DPF dpf | |
#endif | |
void dpf( uint32_t mask, char_t *bla, ...); | |
uint8_t mgetc(void); | |
uint8_t mgetch(void); | |
// Debug print type | |
#define D_ERROR 0x0001 | |
#define D_INFO 0x0002 | |
#define D_REGRD 0x0004 | |
#define D_REGWR 0x0008 | |
#define D_FCALL 0x0010 | |
#define D_TRN 0x0020 | |
#define D_TIME 0x0040 | |
#define ENTERFN() DPF(D_FCALL, "<%s>\n", __FUNCTION__) | |
#define LEAVEFN() DPF(D_FCALL, "</%s>\n", __FUNCTION__) | |
#define REPORTFN() DPF(D_FCALL, "<%s/>\n", __FUNCTION__) | |
extern uint32_t DpfPrintMask; | |
#endif |