// Customer ID=7729; Build=0x71521; Copyright (c) 2014-2017 Cadence Design Systems, Inc.  ALL RIGHTS RESERVED.
// 
// These coded instructions, statements, and computer programs are the
// copyrighted works and confidential proprietary information of
// Cadence Design Systems, Inc.  They may be adapted and modified by bona fide
// purchasers for internal use, but neither the original nor any adapted
// or modified version may be disclosed or distributed to third parties
// in any manner, medium, or form, in whole or in part, without the prior
// written consent of Cadence Design Systems, Inc.

#include "$(XTSC_SCRIPT_FILE_PATH)/common.h"

#ifndef WORDS
#define WORDS 16
#endif

#lua_beg
  NumCores = tonumber(xtsc.cmd("xtsc xtsc_user_state_get NumCores"))
  work_size = $(WORDS) * 4
  error_size = NumCores * 4
#lua_end

xtsc shmem_get                             rhoward.shmem_lock $(SHMEM_LOCK_BASE) $(SHMEM_LOCK_SIZE)
xtsc shmem_get                             rhoward.shmem_work $(SHMEM_WORK_BASE) $(SHMEM_WORK_SIZE)
xtsc xtsc_host_mutex_open                  rhoward.shmem_lock 

alias       dw=xtsc shmem_dump             rhoward.shmem_work $(SHMEM_WORK_BASE) `work_size`
alias       dl=xtsc shmem_dump             rhoward.shmem_lock $(SHMEM_LOCK_BASE) 4
alias       de=xtsc shmem_dump             rhoward.shmem_work $(SHMEM_WORK_ERRORS) `error_size`
alias trespass=xtsc shmem_poke             rhoward.shmem_work $(SHMEM_WORK_BASE) 4 0xee 0xee 0xee 0xee
alias     lock=xtsc xtsc_host_mutex_lock   rhoward.shmem_lock 
alias   unlock=xtsc xtsc_host_mutex_unlock rhoward.shmem_lock 
alias        l=lock
alias        u=unlock

aliases

