1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ips: fix declarations of virtual member functions

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2022-11-11 07:18:16 -05:00 committed by Niklas Eiling
parent c2437b51cf
commit 4fb804ac44
14 changed files with 66 additions and 37 deletions

View file

@ -34,7 +34,8 @@ public:
static constexpr const char* masterPort = "m_axis";
static constexpr const char* slavePort = "s_axis";
void dump();
virtual
void dump() override;
std::list<std::string> getMemoryBlocks() const
{

View file

@ -33,16 +33,18 @@ class Bram : public Core {
friend class BramFactory;
public:
bool init();
virtual
bool init() override;
LinearAllocator&
getAllocator()
LinearAllocator& getAllocator()
{
return *allocator;
}
private:
static constexpr const char* memoryBlock = "Mem0";
static constexpr
const char* memoryBlock = "Mem0";
std::list<MemoryBlockName> getMemoryBlocks() const
{
return {

View file

@ -40,8 +40,11 @@ public:
friend class DmaFactory;
~Dma();
bool init();
bool reset();
virtual
bool init() override;
virtual
bool reset() override;
// Memory-mapped to stream (MM2S)
bool write(const MemoryBlock &mem, size_t len);
@ -101,7 +104,8 @@ public:
bool isMemoryBlockAccesible(const MemoryBlock &mem, const std::string &interface);
virtual void dump();
virtual
void dump() override;
private:
static constexpr char registerMemory[] = "Reg";

View file

@ -34,7 +34,8 @@ namespace ip {
class EMC : public Core {
public:
bool init();
virtual
bool init() override;
bool flash(uint32_t offset, const std::string &filename);
bool flash(uint32_t offset, uint32_t length, uint8_t *data);

View file

@ -38,8 +38,11 @@ class Fifo : public Node {
public:
friend class FifoFactory;
bool init();
bool stop();
virtual
bool init() override;
virtual
bool stop() override;
size_t write(const void* buf, size_t len);
size_t read(void* buf, size_t len);

View file

@ -33,7 +33,8 @@ namespace ip {
class GeneralPurposeIO : public Core {
public:
bool init();
virtual
bool init() override;
private:

View file

@ -16,7 +16,8 @@ class Gpu2Rtds : public Node, public Hls
public:
friend class Gpu2RtdsFactory;
bool init();
virtual
bool init() override;
void dump(spdlog::level::level_enum logLevel = spdlog::level::info);
bool startOnce(size_t frameSize);

View file

@ -10,7 +10,8 @@ namespace ip {
class Hls : public virtual Core
{
public:
virtual bool init()
virtual
bool init() override
{
auto &registers = addressTranslations.at(registerMemory);

View file

@ -37,9 +37,11 @@ public:
using IrqMaskType = uint32_t;
static constexpr int maxIrqs = 32;
virtual
~InterruptController();
bool init();
virtual
bool init() override;
bool enableInterrupt(IrqMaskType mask, bool polling);
bool enableInterrupt(IrqPort irq, bool polling)

View file

@ -38,7 +38,8 @@ class AxiPciExpressBridge : public Core {
public:
friend class AxiPciExpressBridgeFactory;
bool init();
virtual
bool init() override;
private:
static constexpr char axiInterface[] = "M_AXI";

View file

@ -34,7 +34,9 @@ public:
static constexpr const char* masterPort = "m_axis";
static constexpr const char* slavePort = "s_axis";
void dump();
virtual
void dump() override;
double getDt();
std::list<std::string> getMemoryBlocks() const

View file

@ -29,10 +29,17 @@ class Rtds2Gpu : public Node, public Hls
public:
friend class Rtds2GpuFactory;
bool init();
virtual
bool init() override;
void dump(spdlog::level::level_enum logLevel = spdlog::level::info);
virtual
void dump() override
{
dump(spdlog::level::info);
}
bool startOnce(const MemoryBlock &mem, size_t frameSize, size_t dataOffset, size_t doorbellOffset);
size_t getMaxFrameSize();

View file

@ -40,7 +40,8 @@ class AxiStreamSwitch : public Node {
public:
friend class AxiStreamSwitchFactory;
bool init();
virtual
bool init() override;
bool connectInternal(const std::string &slavePort,
const std::string &masterPort);
@ -49,8 +50,11 @@ private:
int portNameToNum(const std::string &portName);
private:
static constexpr const char* PORT_DISABLED = "DISABLED";
static constexpr char registerMemory[] = "Reg";
static constexpr
const char* PORT_DISABLED = "DISABLED";
static constexpr
char registerMemory[] = "Reg";
std::list<MemoryBlockName> getMemoryBlocks() const
{
@ -59,11 +63,6 @@ private:
};
}
struct Path {
Core* masterOut;
Core* slaveIn;
};
XAxis_Switch xSwitch;
XAxis_Switch_Config xConfig;

View file

@ -38,24 +38,28 @@ namespace ip {
class Timer : public Core {
friend class TimerFactory;
public:
bool init();
virtual
bool init() override;
bool start(uint32_t ticks);
bool wait();
uint32_t remaining();
inline bool isRunning()
inline
bool isRunning()
{
return remaining() != 0;
}
inline bool isFinished()
inline
bool isFinished()
{
return remaining() == 0;
}
static constexpr uint32_t
getFrequency()
static constexpr
uint32_t getFrequency()
{
return FPGA_AXI_HZ;
}
@ -83,20 +87,20 @@ public:
return new Timer;
}
virtual std::string
getName() const
virtual
std::string getName() const
{
return "Timer";
}
virtual std::string
getDescription() const
virtual
std::string getDescription() const
{
return "Xilinx's programmable timer / counter";
}
virtual Vlnv
getCompatibleVlnv() const
virtual
Vlnv getCompatibleVlnv() const
{
return Vlnv("xilinx.com:ip:axi_timer:");
}