1#ifndef PFLIB_WISHBONETARGET_H_
2#define PFLIB_WISHBONETARGET_H_
4#include "pflib/WishboneInterface.h"
81 void wb_rmw(uint32_t addr, uint32_t data, uint32_t mask);
Abstract interface for wishbone transactions, used by ~all classes in pflib.
Definition: WishboneInterface.h:15
virtual void wb_write(int target, uint32_t addr, uint32_t data)=0
write a 32-bit word to the given target and address
virtual uint32_t wb_read(int target, uint32_t addr)=0
read a 32-bit word from the given target and address
Parent class for standard wishbone targets providing some utilities.
Definition: WishboneTarget.h:29
void wb_write(uint32_t addr, uint32_t data)
Write data to an address on the target stored within us.
Definition: WishboneTarget.h:61
std::string target_type_str()
Get the Wishbone target type/flavor by name if known.
WishboneTarget(WishboneInterface *wb, int target)
simply store pointer to interface and target we will interact with
Definition: WishboneTarget.h:34
uint32_t wb_read(uint32_t addr)
Read data from address on the target stored within us.
Definition: WishboneTarget.h:71
int target_
Target id.
Definition: WishboneTarget.h:91
int firmware_version()
Get the subblock firmware version.
Definition: WishboneTarget.cxx:12
int target_type()
Get the Wishbone target type/flavor by number.
void wb_rmw(uint32_t addr, uint32_t data, uint32_t mask)
Read the word at the address and then put our data bits into that address using the provided mask.
Definition: WishboneTarget.cxx:5
WishboneInterface * wb_
Handle to the interface.
Definition: WishboneTarget.h:86
Polarfire Interaction Library.
Definition: Backend.h:8
StandardWishboneTargets
common targets for the wishbone connection
Definition: WishboneTarget.h:11