Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Trigger Distribution
Commits
87e16c93
Commit
87e16c93
authored
Jul 27, 2018
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: reverse sender/receiver cpus in rmq_udp test used in wrtd-system testbench
parent
ff70a363
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
run_ci.do
hdl/testbench/wrtd-system/run_ci.do
+1
-1
.gitignore
tests/firmware/.gitignore
+7
-0
rmq-udp.c
tests/firmware/rmq-udp/rmq-udp.c
+10
-5
No files found.
hdl/testbench/wrtd-system/run_ci.do
View file @
87e16c93
...
@@ -5,7 +5,7 @@ vsim -quiet -L unisim work.main -suppress 8683,8684,8822
...
@@ -5,7 +5,7 @@ vsim -quiet -L unisim work.main -suppress 8683,8684,8822
set StdArithNoWarnings 1
set StdArithNoWarnings 1
set NumericStdNoWarnings 1
set NumericStdNoWarnings 1
run
5
00us
run
8
00us
exit
exit
tests/firmware/.gitignore
0 → 100644
View file @
87e16c93
*.elf
*.bin
*.o
*.d
build/
.config
.config.old
tests/firmware/rmq-udp/rmq-udp.c
View file @
87e16c93
...
@@ -41,7 +41,7 @@ int main(void)
...
@@ -41,7 +41,7 @@ int main(void)
struct
trtl_ep_address
bind_addr
;
struct
trtl_ep_address
bind_addr
;
pp_printf
(
"TEST for: RMQ UDP %s
\n
"
,
cpu
==
0
?
"recv"
:
"send"
);
pp_printf
(
"TEST for: RMQ UDP %s
\n
"
,
cpu
==
1
?
"recv"
:
"send"
);
while
((
lr_readl
(
MT_CPU_LR_REG_WR_STAT
)
&
MT_WR_LINK_READY
)
!=
MT_WR_LINK_READY
)
while
((
lr_readl
(
MT_CPU_LR_REG_WR_STAT
)
&
MT_WR_LINK_READY
)
!=
MT_WR_LINK_READY
)
;
;
...
@@ -73,7 +73,9 @@ int main(void)
...
@@ -73,7 +73,9 @@ int main(void)
// RX filter: we want only UDP packets with matching desination port & IP address.
// RX filter: we want only UDP packets with matching desination port & IP address.
bind_addr
.
filter
=
TRTL_EP_FILTER_UDP
|
TRTL_EP_FILTER_DST_PORT
|
TRTL_EP_FILTER_DST_IP
;
bind_addr
.
filter
=
TRTL_EP_FILTER_UDP
|
TRTL_EP_FILTER_DST_PORT
|
TRTL_EP_FILTER_DST_IP
;
if
(
cpu
==
0
)
bind_addr
.
filter
|=
TRTL_EP_FILTER_ENABLE
;
if
(
cpu
==
1
)
{
{
// configure incoming channel
// configure incoming channel
mq_bind
(
TRTL_RMQ
,
rmq
,
0
,
&
bind_addr
);
mq_bind
(
TRTL_RMQ
,
rmq
,
0
,
&
bind_addr
);
...
@@ -84,10 +86,13 @@ int main(void)
...
@@ -84,10 +86,13 @@ int main(void)
mq_bind
(
TRTL_RMQ
,
rmq
,
1
,
&
bind_addr
);
mq_bind
(
TRTL_RMQ
,
rmq
,
1
,
&
bind_addr
);
}
}
if
(
cpu
==
0
)
if
(
cpu
==
1
)
{
handle_rx
(
rmq
);
while
(
1
)
else
handle_rx
(
rmq
);
}
else
{
send_pkt
(
rmq
);
send_pkt
(
rmq
);
}
while
(
1
)
while
(
1
)
;
;
...
...
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