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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
aabc9a55
Commit
aabc9a55
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Pipeline all snk_in sosi fields for output, instead of only the valid.
parent
634a0dae
No related branches found
No related tags found
1 merge request
!309
Resolve L2SDP-903
Pipeline
#44349
passed
2 years ago
Stage: simulation
Stage: synthesis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_complex_add.vhd
+28
-15
28 additions, 15 deletions
libraries/base/dp/src/vhdl/dp_complex_add.vhd
with
28 additions
and
15 deletions
libraries/base/dp/src/vhdl/dp_complex_add.vhd
+
28
−
15
View file @
aabc9a55
...
@@ -52,8 +52,13 @@ END dp_complex_add;
...
@@ -52,8 +52,13 @@ END dp_complex_add;
ARCHITECTURE
str
OF
dp_complex_add
IS
ARCHITECTURE
str
OF
dp_complex_add
IS
CONSTANT
c_pipeline
:
NATURAL
:
=
1
;
CONSTANT
c_pipeline
:
NATURAL
:
=
1
;
CONSTANT
c_pipeline_adder_tree
:
NATURAL
:
=
c_pipeline
*
ceil_log2
(
g_nof_inputs
);
CONSTANT
c_common_adder_tree_sum_w
:
NATURAL
:
=
g_data_w
+
ceil_log2
(
g_nof_inputs
);
CONSTANT
c_common_adder_tree_sum_w
:
NATURAL
:
=
g_data_w
+
ceil_log2
(
g_nof_inputs
);
SIGNAL
snk_in
:
t_dp_sosi
;
SIGNAL
snk_in_pipe
:
t_dp_sosi
;
SIGNAL
common_adder_tree_re_in_dat
:
STD_LOGIC_VECTOR
(
g_nof_inputs
*
g_data_w
-1
DOWNTO
0
);
SIGNAL
common_adder_tree_re_in_dat
:
STD_LOGIC_VECTOR
(
g_nof_inputs
*
g_data_w
-1
DOWNTO
0
);
SIGNAL
common_adder_tree_im_in_dat
:
STD_LOGIC_VECTOR
(
g_nof_inputs
*
g_data_w
-1
DOWNTO
0
);
SIGNAL
common_adder_tree_im_in_dat
:
STD_LOGIC_VECTOR
(
g_nof_inputs
*
g_data_w
-1
DOWNTO
0
);
...
@@ -101,22 +106,30 @@ BEGIN
...
@@ -101,22 +106,30 @@ BEGIN
sum
=>
common_adder_tree_im_sum
sum
=>
common_adder_tree_im_sum
);
);
src_out
.
re
<=
RESIZE_DP_DSP_DATA
(
common_adder_tree_re_sum
(
c_common_adder_tree_sum_w
-1
DOWNTO
0
));
p_src_out
:
PROCESS
(
snk_in_pipe
,
common_adder_tree_re_sum
)
src_out
.
im
<=
RESIZE_DP_DSP_DATA
(
common_adder_tree_im_sum
(
c_common_adder_tree_sum_w
-1
DOWNTO
0
));
BEGIN
src_out
<=
snk_in_pipe
;
src_out
.
re
<=
RESIZE_DP_DSP_DATA
(
common_adder_tree_re_sum
(
c_common_adder_tree_sum_w
-1
DOWNTO
0
));
src_out
.
im
<=
RESIZE_DP_DSP_DATA
(
common_adder_tree_im_sum
(
c_common_adder_tree_sum_w
-1
DOWNTO
0
));
END
PROCESS
;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Forward the
input valid
with the correct latency
-- Forward the
other snk_in fields
with the correct latency
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
u_common_pipeline_sl
:
ENTITY
common_lib
.
common_pipeline_sl
GENERIC
MAP
(
snk_in
<=
snk_in_arr
(
0
);
g_pipeline
=>
c_pipeline
*
ceil_log2
(
g_nof_inputs
)
)
u_dp_pipeline
:
ENTITY
work
.
dp_pipeline
PORT
MAP
(
GENERIC
MAP
(
rst
=>
rst
,
g_pipeline
=>
c_pipeline_adder_tree
clk
=>
clk
,
)
PORT
MAP
(
in_dat
=>
snk_in_arr
(
0
)
.
valid
,
rst
=>
rst
,
out_dat
=>
src_out
.
valid
clk
=>
clk
,
);
-- ST sink
snk_in
=>
snk_in
,
-- ST source
src_out
=>
snk_in_pipe
);
END
str
;
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