lse;
        }
#ifdef DEBUGMSG
        std::cout << __FUNCTION__ << " Mismatch in end index:: " << endIndex << std::endl;
#endif
      }

    } else {
      if ((uint64_t)(-1LL << endLoc)  != (uint64_t)((*strb)[endIndex] & (-1LL << endLoc))) {
        //NOTES::Checking if the whole 64B of data is un-initialized in case
        //of 64B alligned transaction by Interconnect to DDR.
        if((uint64_t)((*strb)[endIndex]) == 0) {
          mem_matched = false;
        }
      }
    }
  }

  if(mem_matched == false) {
#ifdef DEBUGMSG
    if(strb) {
      for (int i = startIndex; i<= endIndex; i++) {
        std::cout << "Index:: " << i << " Data:: " << (*strb)[i] << std::endl;
      }
    }
#endif
    std::stringstream errMsg ;
    uint64_t start_addr;
    char* var = get_variable_name(addr,start_addr);
    if(!var) {
      errMsg << "Kernel attempting to read an un-initialized memory location:: " << std::hex << "0x" << addr << std::dec;
    } else {
      int arg_offset = addr - start_addr;
      errMsg<< "Argument \"" << var <<"\" is trying to access un-initialized memory";
      errMsg << " while reading at offset " << std::hex << "0x" << arg_offset << "." <<
        std::dec;
      free(var);
    }
    emulation::msg_handler::report("10", errMsg.str().c_str(),emulation::CRITICAL_WARNING,emulation::MEDIUM);
  }
}

void ddr3_fmodel_base::init_fmodel()
{

}

void ddr3_fmodel_base::init_env()
{
  if(env_read)
    return;
  //By Default -- Enable
  enable_serialization = true;
  std::string enable_pr = get_env_config("enable_pr");
  if(!enable_pr.empty() && (strcmp(enable_pr.c_str(),"false") == 0)) {
    enable_serialization = false;
  }
  //By Default -- Enable
  enable_umr = true;
  std::string umr_env = get_env_config("enable_umr");
  if(!umr_env.empty() && (strcmp(umr_env.c_str(),"false")==0)) {
    enable_umr = false;
  }

  //By Default -- Enable
  enable_oob = false;
  std::string oob_env = get_env_config("enable_oob");
  if(!oob_env.empty() && (strcmp(oob_env.c_str(),"true") == 0)) {
    enable_oob = true;
  }
  env_read = true;
}


