Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
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 core collection
Commits
9cbaa71d
Commit
9cbaa71d
authored
Jun 10, 2016
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wr rx streamer] added lost_block counter to the statistics module
parent
43fa24ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
streamers_pkg.vhd
modules/wr_streamers/streamers_pkg.vhd
+2
-0
xrtx_streamers_stats.vhd
modules/wr_streamers/xrtx_streamers_stats.vhd
+11
-1
xrx_streamer.vhd
modules/wr_streamers/xrx_streamer.vhd
+1
-0
No files found.
modules/wr_streamers/streamers_pkg.vhd
View file @
9cbaa71d
...
...
@@ -76,6 +76,7 @@ package streamers_pkg is
rst_n_i
:
in
std_logic
;
sent_frame_i
:
in
std_logic
;
rcvd_frame_i
:
in
std_logic
;
lost_block_i
:
in
std_logic
;
lost_frame_i
:
in
std_logic
;
lost_frames_cnt_i
:
in
std_logic_vector
(
14
downto
0
);
rcvd_latency_i
:
in
std_logic_vector
(
27
downto
0
);
...
...
@@ -89,6 +90,7 @@ package streamers_pkg is
sent_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
rcvd_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
lost_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
lost_block_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
latency_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
latency_acc_overflow_o
:
out
std_logic
;
latency_acc_o
:
out
std_logic_vector
(
g_acc_width
-1
downto
0
);
...
...
modules/wr_streamers/xrtx_streamers_stats.vhd
View file @
9cbaa71d
...
...
@@ -61,6 +61,7 @@ entity xrtx_streamers_stats is
-- input signals from streamers
sent_frame_i
:
in
std_logic
;
rcvd_frame_i
:
in
std_logic
;
lost_block_i
:
in
std_logic
;
lost_frame_i
:
in
std_logic
;
lost_frames_cnt_i
:
in
std_logic_vector
(
14
downto
0
);
rcvd_latency_i
:
in
std_logic_vector
(
27
downto
0
);
...
...
@@ -79,6 +80,7 @@ entity xrtx_streamers_stats is
sent_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
rcvd_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
lost_frame_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
lost_block_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
-- output statistics: latency
latency_cnt_o
:
out
std_logic_vector
(
g_cnt_width
-1
downto
0
);
latency_acc_overflow_o
:
out
std_logic
;
...
...
@@ -93,8 +95,9 @@ architecture rtl of xrtx_streamers_stats is
signal
sent_frame_cnt
:
unsigned
(
g_cnt_width
-1
downto
0
);
signal
rcvd_frame_cnt
:
unsigned
(
g_cnt_width
-1
downto
0
);
signal
lost_frame_cnt
:
unsigned
(
g_cnt_width
-1
downto
0
);
signal
lost_block_cnt
:
unsigned
(
g_cnt_width
-1
downto
0
);
signal
latency_cnt
:
unsigned
(
g_cnt_width
-1
downto
0
);
signal
latency_max
:
std_logic_vector
(
27
downto
0
);
signal
latency_min
:
std_logic_vector
(
27
downto
0
);
signal
latency_acc
:
unsigned
(
g_acc_width
-1
+
1
downto
0
);
...
...
@@ -124,6 +127,7 @@ begin
sent_frame_cnt
<=
(
others
=>
'0'
);
rcvd_frame_cnt
<=
(
others
=>
'0'
);
lost_frame_cnt
<=
(
others
=>
'0'
);
lost_block_cnt
<=
(
others
=>
'0'
);
else
-- count sent frames
if
(
sent_frame_i
=
'1'
)
then
...
...
@@ -137,12 +141,18 @@ begin
if
(
lost_frame_i
=
'1'
)
then
lost_frame_cnt
<=
lost_frame_cnt
+
resize
(
unsigned
(
lost_frames_cnt_i
),
lost_frame_cnt
'length
);
end
if
;
-- count lost blocks
if
(
lost_block_i
=
'1'
)
then
lost_block_cnt
<=
lost_block_cnt
+
1
;
end
if
;
end
if
;
end
if
;
end
process
;
sent_frame_cnt_o
<=
std_logic_vector
(
sent_frame_cnt
);
rcvd_frame_cnt_o
<=
std_logic_vector
(
rcvd_frame_cnt
);
lost_frame_cnt_o
<=
std_logic_vector
(
lost_frame_cnt
);
lost_block_cnt_o
<=
std_logic_vector
(
lost_block_cnt
);
p_latency_stats
:
process
(
clk_i
)
begin
...
...
modules/wr_streamers/xrx_streamer.vhd
View file @
9cbaa71d
...
...
@@ -383,6 +383,7 @@ begin -- rtl
rx_frame_o
<=
'0'
;
rx_lost_frames_cnt_o
<=
(
others
=>
'0'
);
frames_lost
<=
'0'
;
blocks_lost
<=
'0'
;
if
(
fsm_in
.
sof
=
'1'
)
then
state
<=
HEADER
;
...
...
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