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

lib/ips: add data fifo IP needed for stream routing

This commit is contained in:
Daniel Krebs 2018-06-04 14:01:14 +02:00
parent a0c5acce4c
commit 2e339b406d
2 changed files with 32 additions and 0 deletions

View file

@ -82,6 +82,31 @@ public:
{ return {"xilinx.com:ip:axi_fifo_mm_s:"}; }
};
class FifoData : public IpNode {
friend class FifoDataFactory;
};
class FifoDataFactory : public IpNodeFactory {
public:
FifoDataFactory();
IpCore* create()
{ return new FifoData; }
std::string
getName() const
{ return "FifoData"; }
std::string
getDescription() const
{ return "Xilinx's AXI4 data stream FIFO"; }
Vlnv getCompatibleVlnv() const
{ return {"xilinx.com:ip:axis_data_fifo:"}; }
};
} // namespace ip
} // namespace fpga
} // namespace villas

View file

@ -38,6 +38,7 @@ namespace ip {
// instantiate factory to make available to plugin infrastructure
static FifoFactory factory;
static FifoDataFactory factoryData;
FifoFactory::FifoFactory() :
@ -46,6 +47,12 @@ FifoFactory::FifoFactory() :
// nothing to do
}
FifoDataFactory::FifoDataFactory() :
IpNodeFactory(getName())
{
// nothing to do
}
bool Fifo::init()
{