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
bbae0376
Commit
bbae0376
authored
Jan 19, 2018
by
Jens Korinth
Browse files
Implement reading of status core regs for memories
parent
052a692a
Pipeline
#146
passed with stage
in 3 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arch/common/include/tapasco_status.h
View file @
bbae0376
...
...
@@ -30,6 +30,7 @@
typedef
struct
tapasco_status
tapasco_status_t
;
struct
tapasco_status
{
tapasco_func_id_t
id
[
TAPASCO_MAX_INSTANCES
];
size_t
mem
[
TAPASCO_MAX_INSTANCES
];
uint32_t
gen_ts
;
uint32_t
vivado_version
;
uint32_t
tapasco_version
;
...
...
arch/common/src/tapasco_status.c
View file @
bbae0376
...
...
@@ -94,6 +94,15 @@ static tapasco_res_t read_tapasco_status(tapasco_status_t **status)
platform_read_ctl
(
h
,
sizeof
(
d
),
&
d
,
PLATFORM_CTL_FLAGS_NONE
);
LOG
(
LALL_STATUS
,
"slot %u has kernel with id %u"
,
i
,
d
);
(
*
status
)
->
id
[
i
]
=
d
;
if
((
*
status
)
->
cap0_flags
&
TAPASCO_CAP0_PE_LOCAL_MEM
)
{
platform_read_ctl
(
h
+
4
,
sizeof
((
*
status
)
->
mem
[
i
]),
&
(
*
status
)
->
mem
[
i
],
PLATFORM_CTL_FLAGS_NONE
);
if
((
*
status
)
->
mem
[
i
]
>
0
)
{
LOG
(
LALL_STATUS
,
"slot %u has %u bytes of memory"
,
i
,
d
);
}
}
}
return
TAPASCO_SUCCESS
;
}
...
...
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