stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
Public Member Functions | List of all members
IP_Driver Class Reference

Generic IP Driver Class Class, that allows access to a AXI Lite IP core over the Zynq Memory Mapped Interface. More...

#include <IP_Driver.h>

Public Member Functions

 IP_Driver (int base_address, int size_in_k)
 class constructor More...
 
void write (int address, int data)
 writes data to an ip core More...
 
int read (int address)
 reads data from an ip core More...
 

Detailed Description

Generic IP Driver Class Class, that allows access to a AXI Lite IP core over the Zynq Memory Mapped Interface.

Constructor & Destructor Documentation

IP_Driver::IP_Driver ( int  base_address,
int  size_in_k 
)

class constructor

Parameters
base_adressaddress of the ip core (from Vivado), e.g. 0x44C0000
size_in_ksize of the required adress space in k (from Vivado)

Member Function Documentation

int IP_Driver::read ( int  address)

reads data from an ip core

Parameters
adressoffset adress of the read register inside the adress space of the ip core, e.g. 0,4,8,C etc.
Returns
int returns a 32 bit read value
void IP_Driver::write ( int  address,
int  data 
)

writes data to an ip core

Parameters
adressoffset adress of the write register inside the adress space of the ip core, e.g. 0,4,8,C etc.
data32 bit data to be transferred

The documentation for this class was generated from the following files: