Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
e3d177be
Commit
e3d177be
authored
7 years ago
by
Daniela Genius
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
parent
c11c26ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MPSoC/soclib/soclib/module/test_control_component/vci_mwmr_stats/caba/source/src/vci_mwmr_stats.cpp
+20
-6
20 additions, 6 deletions
...mponent/vci_mwmr_stats/caba/source/src/vci_mwmr_stats.cpp
MPSoC/src/asyncchannel.c
+3
-2
3 additions, 2 deletions
MPSoC/src/asyncchannel.c
with
23 additions
and
8 deletions
MPSoC/soclib/soclib/module/test_control_component/vci_mwmr_stats/caba/source/src/vci_mwmr_stats.cpp
+
20
−
6
View file @
e3d177be
...
...
@@ -67,11 +67,25 @@ tmpl()::VciMwmrStats(
for
(
typename
std
::
vector
<
std
::
string
>::
const_iterator
i
=
fifo_name
.
begin
();
i
!=
fifo_name
.
end
();
++
i
)
{
const
std
::
string
name
=
(
*
i
)
+
"_status"
;
const
soclib
::
common
::
BinaryFileSymbol
*
sym
=
loader
.
get_symbol_by_name
(
name
);
if
(
!
sym
||
sym
->
name
()
!=
name
)
{
std
::
cerr
<<
this
->
name
()
<<
" name not found: "
<<
name
<<
std
::
endl
;
continue
;
}
typename
vci_param
::
fast_addr_t
addr
=
sym
->
address
();
std
::
cout
<<
" mwmr fifo with status address "
<<
addr
<<
std
::
endl
;
m_mwmr_info
.
push_back
(
mwmr_info_t
(
addr
,
*
i
)
);
}
const
std
::
string
name2
=
(
*
i
);
loader
.
get_symbol_by_name
(
name2
);
const
soclib
::
common
::
BinaryFileSymbol
*
sym2
=
loader
.
get_symbol_by_name
(
name2
);
std
::
cout
<<
" mwmr fifo with address "
<<
sym2
->
address
()
<<
std
::
endl
;
/* for ( typename std::vector<std::string>::const_iterator i = fifo_name.begin();
i != fifo_name.end();
++i ) {
const std::string name2 = (*i);
loader.get_symbol_by_name(name2);
const soclib::common::BinaryFileSymbol *sym2 = loader.get_symbol_by_name(name2);
std::cout << " mwmr fifo with address " << sym2->address() << std::endl;
const std::string name = (*i)+"_status";
const soclib::common::BinaryFileSymbol *sym = loader.get_symbol_by_name(name);
...
...
@@ -82,7 +96,7 @@ std::cout << " mwmr fifo with address " << sym2->address() << std::endl;
typename vci_param::fast_addr_t addr = sym->address();
std::cout << " mwmr fifo with status address " << addr << std::endl;
m_mwmr_info.push_back( mwmr_info_t(addr, *i) );
}
}
*/
}
tmpl
()
::~
VciMwmrStats
()
...
...
@@ -145,7 +159,7 @@ tmpl(void)::handle_txn(const VciLoggerElem<vci_param> &elem, const mwmr_info_t &
//prefix(elem, mwmr) << "WDATA" << std::hex<< wdata<<std::endl;
//if ( wdata == 0x1) {
if
(
wdata
>=
1
)
{
if
(
wdata
>=
1
)
{
if
(
rdata
==
vci_param
::
STORE_COND_ATOMIC
){
prefix
(
elem
,
mwmr
)
<<
"lock_take"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
MPSoC/src/asyncchannel.c
+
3
−
2
View file @
e3d177be
...
...
@@ -96,7 +96,7 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
debugInt
(
"asyncchannel read: address
\n
"
,
channel
->
mwmr_fifo
);
debugInt
(
"asyncchannel fifo->depth
\n
"
,
channel
->
mwmr_fifo
->
depth
);
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel msg size
\n
"
,
sizeof
(
*
msg
)
);
debugInt
(
"asyncchannel msg size
\n
"
,
channel
->
mwmr_fifo
->
width
);
// async_read(channel->mwmr_fifo, &msg, 1);
async_read
(
channel
->
mwmr_fifo
,
&
msg
,
channel
->
mwmr_fifo
->
width
);
return
msg
;
...
...
@@ -111,7 +111,7 @@ void destroyAsyncchannel(asyncchannel *asyncch) {
channel
->
currentNbOfMessages
=
channel
->
currentNbOfMessages
-
1
;
previous
->
next
=
NULL
;
debugInt
(
"before async read 1
\n
"
);
debugInt
(
"asyncchannel address
\n
"
,
channel
->
mwmr_fifo
);
debugInt
(
"asyncchannel fifo->depth
\n
"
,
channel
->
mwmr_fifo
->
depth
);
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
...
...
@@ -136,6 +136,7 @@ void addMessageToAsyncChannel(asyncchannel *channel, message *msg) {
debugInt
(
"asyncchannel->fifo rptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
rptr
);
debugInt
(
"asyncchannel->fifo wptr
\n
"
,
channel
->
mwmr_fifo
->
status
->
wptr
);
//async_write(channel->mwmr_fifo, &msg, 1 );
debugInt
(
"asyncchannel fifo->width
\n
"
,
channel
->
mwmr_fifo
->
width
);
debugInt
(
"asyncchannel msg size
\n
"
,
channel
->
mwmr_fifo
->
width
);
async_write
(
channel
->
mwmr_fifo
,
&
msg
,
channel
->
mwmr_fifo
->
width
);
//DG 13.6. *msg au lieu de msg//DG 18.07. fifo width
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment