Skip to content
GitLab
Explore
Sign in
Register
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
6cd8bf4e
Commit
6cd8bf4e
authored
Sep 9, 2021
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added MM to DP component, to verify via out_sosi_arr.
parent
aa3edba8
Branches
Branches containing commit
No related tags found
2 merge requests
!148
L2SDP-495
,
!146
Prepared dp_bsn_align_v2.vhd (still empty) and mmp_, tb_ and tb_mmp_ files,...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/tb/vhdl/tb_dp_bsn_align_v2.vhd
+34
-1
34 additions, 1 deletion
libraries/base/dp/tb/vhdl/tb_dp_bsn_align_v2.vhd
with
34 additions
and
1 deletion
libraries/base/dp/tb/vhdl/tb_dp_bsn_align_v2.vhd
+
34
−
1
View file @
6cd8bf4e
...
@@ -42,7 +42,7 @@ ENTITY tb_dp_bsn_align_v2 IS
...
@@ -42,7 +42,7 @@ ENTITY tb_dp_bsn_align_v2 IS
g_bsn_latency_use_node_index
:
BOOLEAN
:
=
FALSE
;
-- FALSE for align at end node, TRUE for align at every intermediate node
g_bsn_latency_use_node_index
:
BOOLEAN
:
=
FALSE
;
-- FALSE for align at end node, TRUE for align at every intermediate node
g_block_size
:
NATURAL
:
=
17
;
-- > 1, g_block_size=1 is not supported
g_block_size
:
NATURAL
:
=
17
;
-- > 1, g_block_size=1 is not supported
g_bsn_w
:
NATURAL
:
=
c_dp_stream_bsn_w
;
-- number of bits in sosi BSN
g_bsn_w
:
NATURAL
:
=
c_dp_stream_bsn_w
;
-- number of bits in sosi BSN
g_data_w
:
NATURAL
;
-- number of bits in sosi data
g_data_w
:
NATURAL
:
=
16
;
-- number of bits in sosi data
g_filler_value
:
INTEGER
:
=
0
;
-- output sosi data value for missing input blocks
g_filler_value
:
INTEGER
:
=
0
;
-- output sosi data value for missing input blocks
-- TB
-- TB
...
@@ -107,9 +107,12 @@ ARCHITECTURE tb OF tb_dp_bsn_align_v2 IS
...
@@ -107,9 +107,12 @@ ARCHITECTURE tb OF tb_dp_bsn_align_v2 IS
SIGNAL
in_err
:
t_err_arr
;
SIGNAL
in_err
:
t_err_arr
;
SIGNAL
in_channel
:
t_channel_arr
;
SIGNAL
in_channel
:
t_channel_arr
;
SIGNAL
mm_copi_arr
:
t_mem_copi_arr
(
g_nof_streams
-1
DOWNTO
0
);
SIGNAL
mm_copi
:
t_mem_copi
;
-- read access to output block, all output streams share same mm_copi
SIGNAL
mm_copi
:
t_mem_copi
;
-- read access to output block, all output streams share same mm_copi
SIGNAL
mm_cipo_arr
:
t_mem_cipo_arr
(
g_nof_streams
-1
DOWNTO
0
);
SIGNAL
mm_cipo_arr
:
t_mem_cipo_arr
(
g_nof_streams
-1
DOWNTO
0
);
SIGNAL
mm_sosi
:
t_dp_sosi
;
-- streaming information that signals that an output block can be read
SIGNAL
mm_sosi
:
t_dp_sosi
;
-- streaming information that signals that an output block can be read
SIGNAL
mm_done_arr
:
STD_LOGIC_VECTOR
(
g_nof_streams
-1
DOWNTO
0
);
SIGNAL
mm_done
:
STD_LOGIC
;
SIGNAL
out_siso_arr
:
t_dp_siso_arr
(
g_nof_streams
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
c_dp_siso_rdy
);
SIGNAL
out_siso_arr
:
t_dp_siso_arr
(
g_nof_streams
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
c_dp_siso_rdy
);
SIGNAL
out_sosi_arr
:
t_dp_sosi_arr
(
g_nof_streams
-1
DOWNTO
0
);
SIGNAL
out_sosi_arr
:
t_dp_sosi_arr
(
g_nof_streams
-1
DOWNTO
0
);
...
@@ -422,4 +425,34 @@ BEGIN
...
@@ -422,4 +425,34 @@ BEGIN
mm_sosi
=>
mm_sosi
mm_sosi
=>
mm_sosi
);
);
------------------------------------------------------------------------------
-- MM to streaming DP
------------------------------------------------------------------------------
gen_mm_to_dp
:
FOR
I
IN
0
TO
g_nof_streams
-1
GENERATE
u_mm_to_dp
:
ENTITY
work
.
dp_block_from_mm
GENERIC
MAP
(
g_data_size
=>
1
,
g_step_size
=>
1
,
g_nof_data
=>
g_block_size
,
g_data_w
=>
g_data_w
,
g_reverse_word_order
=>
FALSE
)
PORT
MAP
(
rst
=>
rst
,
clk
=>
clk
,
start_pulse
=>
mm_sosi
.
sop
,
start_address
=>
0
,
mm_done
=>
mm_done_arr
(
I
),
mm_mosi
=>
mm_copi_arr
(
I
),
mm_miso
=>
mm_cipo_arr
(
I
),
out_sosi
=>
out_sosi_arr
(
I
),
out_siso
=>
c_dp_siso_rdy
);
END
GENERATE
;
mm_copi
<=
mm_copi_arr
(
0
);
mm_done
<=
mm_done_arr
(
0
);
END
tb
;
END
tb
;
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