DPU Host API  2025.1.0
dpu_context_t Struct Reference

Debugging information. More...

#include <dpu_types.h>

Data Fields

struct {
   uint32_t   nr_threads
 
   uint32_t   nr_registers
 
   uint32_t   nr_atomic_bits
 
   iram_size_t   iram_size
 
   mram_size_t   mram_size
 
   wram_size_t   wram_size
 
info
 
dpuinstruction_tiram
 
uint8_t * mram
 
dpuword_twram
 
uint32_t * registers
 
iram_addr_tpcs
 
bool * atomic_register
 
bool * zero_flags
 
bool * carry_flags
 
uint8_t nr_of_running_threads
 
uint8_t * scheduling
 
bool bkp_fault
 
bool dma_fault
 
bool mem_fault
 
dpu_thread_t bkp_fault_thread_index
 
dpu_thread_t dma_fault_thread_index
 
dpu_thread_t mem_fault_thread_index
 
uint32_t bkp_fault_id
 

Detailed Description

Debugging information.

Field Documentation

◆ atomic_register

bool* atomic_register

Storage for the atomic register value.

◆ bkp_fault

bool bkp_fault

Whether a BKP fault was triggered.

◆ bkp_fault_id

uint32_t bkp_fault_id

The BKP fault ID associated to the current BKP fault (if any).

◆ bkp_fault_thread_index

dpu_thread_t bkp_fault_thread_index

The DPU thread index that triggered the BKP fault (if any).

◆ carry_flags

bool* carry_flags

Storage for the carry flag value of each DPU thread.

◆ dma_fault

bool dma_fault

Whether a DMA fault was triggered.

◆ dma_fault_thread_index

dpu_thread_t dma_fault_thread_index

The DPU thread index that triggered the DMA fault (if any).

◆ info

struct { ... } info

Hardware characteristics of the DPU.

◆ iram

Instruction RAM snapshot.

◆ iram_size

iram_size_t iram_size

Instruction RAM size in instructions.

◆ mem_fault

bool mem_fault

Whether a MEM fault was triggered.

◆ mem_fault_thread_index

dpu_thread_t mem_fault_thread_index

The DPU thread index that triggered the MEM fault (if any).

◆ mram

uint8_t* mram

Main RAM snapshot.

◆ mram_size

mram_size_t mram_size

Main RAM size in bytes.

◆ nr_atomic_bits

uint32_t nr_atomic_bits

Number of atomic bits per DPU.

◆ nr_of_running_threads

uint8_t nr_of_running_threads

Number of running threads in the current debugging session.

◆ nr_registers

uint32_t nr_registers

Number of work registers per DPU thread.

◆ nr_threads

uint32_t nr_threads

Number of threads per DPU.

◆ pcs

Storage for the PC value of each DPU thread.

◆ registers

uint32_t* registers

Storage for the working register values of each DPU thread.

◆ scheduling

uint8_t* scheduling

Scheduling of the DPU threads in the current debugging session.

◆ wram

dpuword_t* wram

Work RAM snapshot.

◆ wram_size

wram_size_t wram_size

Work RANK size in 32-bit words.

◆ zero_flags

bool* zero_flags

Storage for the zero flag value of each DPU thread.


The documentation for this struct was generated from the following file: