pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
|
Abstract interface for wishbone transactions, used by ~all classes in pflib. More...
#include <WishboneInterface.h>
Public Member Functions | |
virtual void | wb_write (int target, uint32_t addr, uint32_t data)=0 |
write a 32-bit word to the given target and address More... | |
virtual uint32_t | wb_read (int target, uint32_t addr)=0 |
read a 32-bit word from the given target and address More... | |
virtual void | wb_reset ()=0 |
reset the wishbone bus (on/off cycle) More... | |
virtual void | wb_errors (uint32_t &crcup_errors, uint32_t &crcdn_errors, uint32_t &wb_errors)=0 |
Read the monitoring counters crcup_errors – CRC errors observed on the uplink (wraps) crcdn_errors – CRC errors from the downlink reported on the uplink (wraps) wb_errors – Wishbone errors indicated by the Polarfire. More... | |
virtual void | wb_clear_counters ()=0 |
Clear the monitoring counters. More... | |
Abstract interface for wishbone transactions, used by ~all classes in pflib.
This defines the necessary functions that communications methods need to implement.
|
pure virtual |
Clear the monitoring counters.
Implemented in pflib::rogue::RogueWishboneInterface, and pflib::uhal::uhalWishboneInterface.
|
pure virtual |
Read the monitoring counters crcup_errors – CRC errors observed on the uplink (wraps) crcdn_errors – CRC errors from the downlink reported on the uplink (wraps) wb_errors – Wishbone errors indicated by the Polarfire.
Implemented in pflib::rogue::RogueWishboneInterface, and pflib::uhal::uhalWishboneInterface.
|
pure virtual |
read a 32-bit word from the given target and address
pflib::Exception | in the case of a timeout or wishbone error |
Implemented in pflib::rogue::RogueWishboneInterface, and pflib::uhal::uhalWishboneInterface.
|
pure virtual |
reset the wishbone bus (on/off cycle)
Implemented in pflib::rogue::RogueWishboneInterface, and pflib::uhal::uhalWishboneInterface.
|
pure virtual |
write a 32-bit word to the given target and address
pflib::Exception | in the case of a timeout or wishbone error |
Implemented in pflib::rogue::RogueWishboneInterface, and pflib::uhal::uhalWishboneInterface.