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
7e1c6bd9
Commit
7e1c6bd9
authored
Jul 08, 2020
by
Steffen Vogel
🎅🏼
Browse files
emc: add stub IP
parent
db59fdb5
Pipeline
#305437
failed with stages
in 34 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/villas/fpga/ips/emc.hpp
0 → 100644
View file @
7e1c6bd9
/** AXI External Memory Controller (EMC)
*
* @file
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2017-2020, Steffen Vogel
* @license GNU General Public License (version 3)
*
* VILLASfpga
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
/** @addtogroup fpga VILLASfpga
* @{
*/
#pragma once
#include <villas/fpga/core.hpp>
namespace
villas
{
namespace
fpga
{
namespace
ip
{
class
EMC
:
public
Core
{
public:
bool
init
();
private:
static
constexpr
char
registerMemory
[]
=
"Reg"
;
std
::
list
<
MemoryBlockName
>
getMemoryBlocks
()
const
{
return
{
registerMemory
};
}
};
class
EMCFactory
:
public
CoreFactory
{
public:
static
constexpr
const
char
*
getCompatibleVlnvString
()
{
return
"xilinx.com:ip:axi_emc:"
;
}
Core
*
create
()
{
return
new
EMC
;
}
virtual
std
::
string
getName
()
const
{
return
"ExternalMemoryController"
;
}
virtual
std
::
string
getDescription
()
const
{
return
"Xilinx's AXI External Memory Controller (EMC) "
;
}
virtual
Vlnv
getCompatibleVlnv
()
const
{
return
Vlnv
(
getCompatibleVlnvString
());
}
};
}
/* namespace ip */
}
/* namespace fpga */
}
/* namespace villas */
/** @} */
include/villas/fpga/ips/gpio.hpp
View file @
7e1c6bd9
...
...
@@ -28,8 +28,6 @@
#pragma once
#include <xilinx/xintc.h>
#include <villas/fpga/core.hpp>
namespace
villas
{
...
...
include/villas/fpga/ips/hls.hpp
View file @
7e1c6bd9
...
...
@@ -132,6 +132,29 @@ protected:
bool
running
;
};
class
HlsFactory
:
public
CoreFactory
{
public:
static
constexpr
const
char
*
getCompatibleVlnvString
()
{
return
"acs.eonerc.rwth-aachen.de:hls:"
;
}
Core
*
create
()
{
return
new
Hls
;
}
virtual
std
::
string
getName
()
const
{
return
"HighLevelSynthesis"
;
}
virtual
std
::
string
getDescription
()
const
{
return
"Xilinx's HLS IP Cores"
;
}
virtual
Vlnv
getCompatibleVlnv
()
const
{
return
Vlnv
(
getCompatibleVlnvString
());
}
};
}
/* namespace ip */
}
/* namespace fpga */
}
/* namespace villas */
lib/CMakeLists.txt
View file @
7e1c6bd9
...
...
@@ -28,6 +28,7 @@ set(SOURCES
ips/timer.cpp
ips/switch.cpp
ips/emc.cpp
ips/fifo.cpp
ips/intc.cpp
ips/pcie.cpp
...
...
lib/ips/emc.cpp
0 → 100644
View file @
7e1c6bd9
/** AXI External Memory Controller (EMC)
*
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2017-2020, Steffen Vogel
* @license GNU General Public License (version 3)
*
* VILLASfpga
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <villas/plugin.hpp>
#include <villas/fpga/ips/emc.hpp>
using
namespace
villas
::
fpga
::
ip
;
// instantiate factory to make available to plugin infrastructure
static
EMCFactory
factory
;
bool
EMC
::
init
()
{
//const uintptr_t base = getBaseAddr(registerMemory);
return
true
;
}
lib/ips/gpio.cpp
View file @
7e1c6bd9
...
...
@@ -20,15 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <unistd.h>
#include <errno.h>
#include <villas/config.h>
#include <villas/plugin.hpp>
#include <villas/kernel/kernel.hpp>
#include <villas/fpga/card.hpp>
#include <villas/fpga/ips/gpio.hpp>
using
namespace
villas
::
fpga
::
ip
;
...
...
Steffen Vogel
🎅🏼
@stvogel
mentioned in issue
#32 (closed)
·
Jul 08, 2020
mentioned in issue
#32 (closed)
mentioned in issue #32
Toggle commit list
Write
Preview
Markdown
is supported
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