Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
dcda2256
Commit
dcda2256
authored
Dec 29, 2017
by
Jens Korinth
Browse files
Implement basic flags and errors for PE-local memories
parent
9c3c788f
Changes
4
Hide whitespace changes
Inline
Side-by-side
arch/common/include/tapasco.h
View file @
dcda2256
...
...
@@ -42,6 +42,8 @@
//! License along with Tapasco. If not, see
//! <http://www.gnu.org/licenses/>.
//! @details ### Change Log ###
//! - Version 1.4 (jk)
//! + added support for pe-local memories
//! - Version 1.3 (jk)
//! + added device capabilities
//! - Version 1.2.1 (jk)
...
...
@@ -115,7 +117,9 @@ typedef enum {
/** Flags for memory allocation (implementation defined). **/
typedef
enum
{
/** no flags **/
TAPASCO_DEVICE_ALLOC_FLAGS_NONE
=
0
TAPASCO_DEVICE_ALLOC_FLAGS_NONE
=
0
,
/** PE-local, i.e., only accessible from scheduled PE **/
TAPASCO_DEVICE_ALLOC_FLAGS_PE_LOCAL
=
1
,
}
tapasco_device_alloc_flag_t
;
/** Flags for bitstream loading (implementation defined). **/
...
...
@@ -170,7 +174,7 @@ typedef enum {
* @{
**/
#define TAPASCO_API_VERSION "1.
3
"
#define TAPASCO_API_VERSION "1.
4
"
/**
* Returns the version string of the library.
...
...
arch/common/include/tapasco_errors.h
View file @
dcda2256
...
...
@@ -44,7 +44,8 @@ namespace rpr { namespace tapasco { extern "C" {
_X(TAPASCO_ERR_PLATFORM_FAILURE , -12 , "platform failure, check log") \
_X(TAPASCO_ERR_STATUS_CORE_NOT_FOUND , -13 , "TPC status core not found in bitstream") \
_X(TAPASCO_ERR_VERSION_MISMATCH , -14 , "TPC API library version mismatch") \
_X(TAPASCO_ERR_SENTINEL , -15 , "--- no error just end of list ---")
_X(TAPASCO_ERR_NO_PE_LOCAL_MEMORY_AVAILABLE , -15 , "PE-local memory was selected, but none available") \
_X(TAPASCO_ERR_SENTINEL , -16 , "--- no error just end of list ---")
#ifdef _X
#undef _X
...
...
platform/common/include/platform.h
View file @
dcda2256
...
...
@@ -45,6 +45,8 @@
* License along with Tapasco. If not, see
* <http://www.gnu.org/licenses/>.
* @details ### Change Log ###
* - **12/2017: Version 1.4 (jk)**
* + added support for PE-local memories
* - **06/2016: Version 1.3 (jk)**
* + added 'raw' mode for read/write to bypass address filters
* + added special address for the ATS/PRI checker
...
...
@@ -125,7 +127,9 @@ typedef enum {
typedef
enum
{
/** no flags **/
PLATFORM_ALLOC_FLAGS_NONE
=
0
PLATFORM_ALLOC_FLAGS_NONE
=
0
,
/** PE-local memory **/
PLATFORM_ALLOC_FLAGS_PE_LOCAL
=
1
,
}
platform_alloc_flags_t
;
typedef
enum
{
...
...
@@ -146,7 +150,7 @@ typedef enum {
* @{
**/
#define PLATFORM_API_VERSION "1.
3
"
#define PLATFORM_API_VERSION "1.
4
"
/**
* Returns the version string of the library.
...
...
platform/common/include/platform_errors.h
View file @
dcda2256
...
...
@@ -48,7 +48,8 @@ namespace tapasco { namespace platform { extern "C" {
_X(PERR_DMA_INVALID_SIZE , -18 , "invalid read/write dma size") \
_X(PERR_VERSION_MISMATCH , -19 , "Platform API version mismatch") \
_X(PERR_NOT_IMPLEMENTED , -20 , "not implemented") \
_X(PERR_SENTINEL , -21 , "--- no error, just end of list ---")
_X(PERR_NO_PE_LOCAL_MEMORY , -21 , "PE-local memory not available") \
_X(PERR_SENTINEL , -22 , "--- no error, just end of list ---")
#ifdef _X
#undef _X
...
...
Jens Korinth
@jk
mentioned in commit
17f0d672
·
Mar 05, 2018
mentioned in commit
17f0d672
mentioned in commit 17f0d67240ebf5d7e1d0be9162d272b04256c47d
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