Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
VILLASfpga
Commits
5ef4c593
Commit
5ef4c593
authored
Jun 04, 2018
by
Daniel Krebs
Browse files
lib/ips: add data fifo IP needed for stream routing
parent
6f20555b
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/villas/fpga/ips/fifo.hpp
View file @
5ef4c593
...
...
@@ -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
...
...
lib/ips/fifo.cpp
View file @
5ef4c593
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment