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
ba149c06
Commit
ba149c06
authored
3 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
processed review comments
parent
9addf71c
No related branches found
No related tags found
1 merge request
!155
added ring_rx
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
+4
-0
4 additions, 0 deletions
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
libraries/base/ring/src/vhdl/ring_rx.vhd
+27
-24
27 additions, 24 deletions
libraries/base/ring/src/vhdl/ring_rx.vhd
with
31 additions
and
24 deletions
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
+
4
−
0
View file @
ba149c06
...
...
@@ -39,6 +39,10 @@
-- a gap between blocks the dp_fifo_fill_eop needs 1 cycle to process a block.
-- Streaming without gaps may cause the fifo to overflow. Bursts of blocks
-- can be handled by increasing g_fifo_size.
-- . g_max/min_block_size indicate the minimum / maximum length of incoming blocks.
-- The ratio of max / min is used to determine a fifo size for the outgoing
-- sosi.valid signals. To minimize logic the g_min_block_size can be set to
-- the expected minimum block size.
-------------------------------------------------------------------------------
-- REGMAP
-------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
libraries/base/ring/src/vhdl/ring_rx.vhd
+
27
−
24
View file @
ba149c06
...
...
@@ -152,39 +152,37 @@ BEGIN
hdr_fields_out_arr
(
0
)
=>
hdr_fields_out
);
p_set_meta
:
PROCESS
(
offload_rx_sosi
,
hdr_fields_out
)
BEGIN
decoded_sosi
<=
offload_rx_sosi
;
IF
c_use_dp_layer
THEN
-- Use dp layer
gen_dp_layer
:
IF
c_use_dp_layer
GENERATE
p_set_meta
:
PROCESS
(
offload_rx_sosi
,
hdr_fields_out
)
BEGIN
decoded_sosi
<=
offload_rx_sosi
;
decoded_sosi
.
sync
<=
hdr_fields_out
(
field_hi
(
c_hdr_field_arr
,
"dp_sync"
)
DOWNTO
field_lo
(
c_hdr_field_arr
,
"dp_sync"
))(
0
);
decoded_sosi
.
channel
<=
RESIZE_DP_CHANNEL
(
hdr_fields_out
(
field_hi
(
c_hdr_field_arr
,
"dp_channel"
)
DOWNTO
field_lo
(
c_hdr_field_arr
,
"dp_channel"
)));
decoded_sosi
.
bsn
<=
RESIZE_DP_BSN
(
hdr_fields_out
(
field_hi
(
c_hdr_field_arr
,
"dp_bsn"
)
DOWNTO
field_lo
(
c_hdr_field_arr
,
"dp_bsn"
)));
END
IF
;
END
PROCESS
;
-- Validate bsn at sync
u_dp_block_validate_bsn_at_sync
:
ENTITY
dp_lib
.
dp_block_validate_bsn_at_sync
GENERIC
MAP
(
g_check_channel
=>
g_check_channel
)
PORT
MAP
(
dp_rst
=>
dp_rst
,
dp_clk
=>
dp_clk
,
END
PROCESS
;
in_sosi
=>
decoded_sosi
,
bs_sosi
=>
bs_sosi
,
out_sosi
=>
from_lane_sosi
,
-- Validate bsn at sync
u_dp_block_validate_bsn_at_sync
:
ENTITY
dp_lib
.
dp_block_validate_bsn_at_sync
GENERIC
MAP
(
g_check_channel
=>
g_check_channel
)
PORT
MAP
(
dp_rst
=>
dp_rst
,
dp_clk
=>
dp_clk
,
mm_rst
=>
mm_rst
,
mm_clk
=>
mm_clk
,
in_sosi
=>
decoded_sosi
,
bs_sosi
=>
bs_sosi
,
out_sosi
=>
from_lane_sosi
,
reg_mosi
=>
reg_dp_block_validate_bsn_at_sync_copi
,
reg_miso
=>
reg_dp_block_validate_bsn_at_sync_cipo
);
mm_rst
=>
mm_rst
,
mm_clk
=>
mm_clk
,
reg_mosi
=>
reg_dp_block_validate_bsn_at_sync_copi
,
reg_miso
=>
reg_dp_block_validate_bsn_at_sync_cipo
);
-- BSN Monitors
gen_bsn_monitors
:
IF
c_use_dp_layer
GENERATE
-- Convert nof_hops to source RN
p_hop_to_src_rn
:
PROCESS
(
validated_sosi
,
this_rn
,
N_rn
)
BEGIN
...
...
@@ -222,4 +220,9 @@ BEGIN
END
GENERATE
;
-- Do not use dp layer
gen_no_dp_layer
:
IF
NOT
c_use_dp_layer
GENERATE
from_lane_sosi
<=
offload_rx_sosi
;
END
GENERATE
;
END
str
;
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