Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
RTSD
HDL
Commits
9820b94f
Commit
9820b94f
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Improved p_rd_rx_hdr_words.
parent
f17dbbb3
No related branches found
No related tags found
1 merge request
!190
Resolve L2SDP-210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/tb/vhdl/tb_dp_offload_tx_v3.vhd
+6
-4
6 additions, 4 deletions
libraries/base/dp/tb/vhdl/tb_dp_offload_tx_v3.vhd
with
6 additions
and
4 deletions
libraries/base/dp/tb/vhdl/tb_dp_offload_tx_v3.vhd
+
6
−
4
View file @
9820b94f
...
...
@@ -56,7 +56,6 @@ ENTITY tb_dp_offload_tx_v3 IS
g_flow_control_verify
:
t_dp_flow_control_enum
:
=
e_active
;
-- always e_active, e_random or e_pulse flow control
-- specific
g_data_w
:
NATURAL
:
=
64
;
g_nof_repeat
:
NATURAL
:
=
100
;
g_pkt_len
:
NATURAL
:
=
240
;
g_pkt_gap
:
NATURAL
:
=
16
);
...
...
@@ -87,9 +86,11 @@ ARCHITECTURE tb OF tb_dp_offload_tx_v3 IS
CONSTANT
c_sync_period
:
NATURAL
:
=
5
;
CONSTANT
c_sync_offset
:
NATURAL
:
=
2
;
CONSTANT
c_bsn_init
:
STD_LOGIC_VECTOR
(
c_dp_stream_bsn_w
-1
DOWNTO
0
)
:
=
TO_DP_BSN
(
0
);
CONSTANT
c_nof_sync
:
NATURAL
:
=
5
;
CONSTANT
c_nof_packets
:
NATURAL
:
=
c_sync_period
*
c_nof_sync
;
CONSTANT
c_hdr_len
:
NATURAL
:
=
7
;
CONSTANT
c_wait_last_evt
:
NATURAL
:
=
100
+
g
_nof_
repeat
*
c_hdr_len
;
CONSTANT
c_wait_last_evt
:
NATURAL
:
=
100
+
c
_nof_
packets
*
c_hdr_len
;
-----------------------------------------------------------------------------
-- Tx offload
...
...
@@ -279,7 +280,7 @@ BEGIN
g_bsn_init
=>
c_bsn_init
,
-- specific
g_in_dat_w
=>
g_data_w
,
g_nof_repeat
=>
g
_nof_
repeat
,
g_nof_repeat
=>
c
_nof_
packets
,
g_pkt_len
=>
g_pkt_len
,
g_pkt_gap
=>
g_pkt_gap
,
g_wait_last_evt
=>
c_wait_last_evt
...
...
@@ -437,7 +438,6 @@ BEGIN
p_rd_tx_hdr_words
:
PROCESS
VARIABLE
v_word
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
BEGIN
proc_common_wait_until_hi_lo
(
dp_clk
,
tx_offload_sosi_arr
(
0
)
.
sync
);
proc_common_wait_until_hi_lo
(
dp_clk
,
tx_offload_sosi_arr
(
0
)
.
sync
);
print_str
(
""
);
FOR
I
IN
0
TO
c_udp_offload_nof_hdr_words
-1
LOOP
...
...
@@ -522,6 +522,8 @@ BEGIN
proc_common_wait_until_hi_lo
(
dp_clk
,
verify_snk_in
.
sync
);
proc_common_wait_until_hi_lo
(
dp_clk
,
verify_snk_in
.
sync
);
proc_common_wait_until_hi_lo
(
dp_clk
,
verify_snk_in
.
sync
);
-- wait some latency until header fields of this sync packet are available via MM
proc_common_wait_some_cycles
(
dp_clk
,
10
);
print_str
(
""
);
FOR
I
IN
0
TO
c_udp_offload_nof_hdr_words
-1
LOOP
proc_mem_mm_bus_rd
(
I
,
mm_clk
,
reg_dp_offload_rx_hdr_dat_mosi
);
...
...
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