arch_xt_misc.cpp File Reference

yasimavr: arch_xt_misc.cpp File Reference
yasimavr
Loading...
Searching...
No Matches
arch_xt_misc.cpp File Reference
#include "arch_xt_misc.h"
#include "arch_xt_device.h"
#include "arch_xt_io.h"
#include "arch_xt_io_utils.h"
#include "core/sim_device.h"
#include <cstring>

Macros

#define VREF_REG_ADDR(reg)    (m_config.reg_base + offsetof(VREF_t, reg))
 
#define INT_REG_ADDR(reg)    (m_config.reg_base + offsetof(CPUINT_t, reg))
 
#define RST_REG_ADDR(reg)    reg_addr_t(m_base_reg + offsetof(RSTCTRL_t, reg))
 
#define SIGROW_REG_ADDR(reg)    (m_config.reg_base_sigrow + offsetof(SIGROW_t, reg))
 
#define SIGROW_MEM_OFS   3
 
#define SIGROW_MEM_SIZE   (sizeof(SIGROW_t) - SIGROW_MEM_OFS)
 

Enumerations

enum  InterruptPriority { IntrPriorityLevel0 = CPUINT_LVL0EX_bp , IntrPriorityLevel1 = CPUINT_LVL1EX_bp , IntrPriorityNMI = CPUINT_NMIEX_bp }
 

Macro Definition Documentation

◆ INT_REG_ADDR

#define INT_REG_ADDR (   reg)     (m_config.reg_base + offsetof(CPUINT_t, reg))

◆ RST_REG_ADDR

#define RST_REG_ADDR (   reg)     reg_addr_t(m_base_reg + offsetof(RSTCTRL_t, reg))

◆ SIGROW_MEM_OFS

#define SIGROW_MEM_OFS   3

◆ SIGROW_MEM_SIZE

#define SIGROW_MEM_SIZE   (sizeof(SIGROW_t) - SIGROW_MEM_OFS)

◆ SIGROW_REG_ADDR

#define SIGROW_REG_ADDR (   reg)     (m_config.reg_base_sigrow + offsetof(SIGROW_t, reg))

◆ VREF_REG_ADDR

#define VREF_REG_ADDR (   reg)     (m_config.reg_base + offsetof(VREF_t, reg))

Enumeration Type Documentation

◆ InterruptPriority

Enumerator
IntrPriorityLevel0 
IntrPriorityLevel1 
IntrPriorityNMI