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
0
Merge Requests
0
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
d0f0258d
Commit
d0f0258d
authored
Oct 19, 2018
by
Tomasz Wlostowski
Committed by
Maciej Lipinski
May 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_streamers: latch tx_flush_p1_i at any time
parent
12fecf86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
xtx_streamer.vhd
modules/wr_streamers/xtx_streamer.vhd
+7
-5
No files found.
modules/wr_streamers/xtx_streamer.vhd
View file @
d0f0258d
...
...
@@ -194,7 +194,7 @@ architecture rtl of xtx_streamer is
signal
buf_frame_count_inc_ref
:
std_logic
;
signal
buf_frame_count_dec_sys
:
std_logic
;
signal
buf_frame_count
:
unsigned
(
5
downto
0
)
:
=
(
others
=>
'0'
);
signal
buf_frame_count
:
std_logic_vector
(
5
downto
0
);
signal
tag_cycles
:
std_logic_vector
(
27
downto
0
);
...
...
@@ -488,19 +488,19 @@ begin -- rtl
if
(
tx_reset_seq_i
=
'1'
)
then
seq_no
<=
(
others
=>
'0'
);
end
if
;
if
(
tag_valid
=
'1'
)
then
if
tx_flush_p1_i
=
'1'
or
tx_timeout_hit
=
'1'
then
tx_flush_latched
<=
'1'
;
end
if
;
tx_flush_latched
<=
'0'
;
-- overriden in IDLE
case
state
is
when
IDLE
=>
tx_flush_latched
<=
(
tx_flush_p1_i
or
tx_timeout_hit
)
and
not
tx_fifo_empty
;
crc_en
<=
'0'
;
crc_reset
<=
'0'
;
fsm_out
.
eof
<=
'0'
;
tx_frame_p1_o
<=
'0'
;
if
(
fsm_out
.
dreq
=
'1'
and
(
tx_flush_latched
=
'1'
or
tx_flush_p1_i
=
'1'
or
tx_threshold_hit
=
'1'
))
then
if
(
fsm_out
.
dreq
=
'1'
and
tx_fifo_empty
=
'0'
and
(
tx_flush_latched
=
'1'
or
tx_threshold_hit
=
'1'
))
then
state
<=
SOF
;
fsm_out
.
sof
<=
'1'
;
end
if
;
...
...
@@ -509,6 +509,8 @@ begin -- rtl
fsm_escape
<=
'0'
;
when
SOF
=>
tx_flush_latched
<=
'0'
;
fsm_out
.
sof
<=
'0'
;
ser_count
<=
(
others
=>
'0'
);
state
<=
ETH_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