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
851ed596
Commit
851ed596
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Support g_use_complex.
parent
18b4ea1d
No related branches found
No related tags found
1 merge request
!311
Correct beamlet output indexing in tr_10GbE_src_out.data. Verify exact beamlet...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_reverse_n_data.vhd
+19
-5
19 additions, 5 deletions
libraries/base/dp/src/vhdl/dp_reverse_n_data.vhd
with
19 additions
and
5 deletions
libraries/base/dp/src/vhdl/dp_reverse_n_data.vhd
+
19
−
5
View file @
851ed596
...
...
@@ -51,7 +51,8 @@ ENTITY dp_reverse_n_data IS
g_pipeline_mux_in
:
NATURAL
:
=
0
;
-- parallel to serial section
g_pipeline_mux_out
:
NATURAL
:
=
1
;
g_reverse_len
:
NATURAL
:
=
2
;
g_data_w
:
NATURAL
:
=
16
;
g_data_w
:
NATURAL
:
=
16
;
-- should be 2 times the c_complex_w if g_use_complex = TRUE
g_use_complex
:
BOOLEAN
:
=
FALSE
;
g_signed
:
BOOLEAN
:
=
TRUE
);
PORT
(
...
...
@@ -69,6 +70,7 @@ ARCHITECTURE str OF dp_reverse_n_data IS
CONSTANT
c_pipeline_total
:
NATURAL
:
=
g_pipeline_demux_in
+
g_pipeline_demux_out
+
g_reverse_len
-1
+
g_pipeline_mux_in
+
g_pipeline_mux_out
;
CONSTANT
c_complex_w
:
NATURAL
:
=
g_data_w
/
2
;
SIGNAL
in_data
:
STD_LOGIC_VECTOR
(
g_data_w
-1
DOWNTO
0
);
...
...
@@ -79,7 +81,14 @@ ARCHITECTURE str OF dp_reverse_n_data IS
BEGIN
in_data
<=
snk_in
.
data
(
g_data_w
-1
DOWNTO
0
);
p_in_data
:
PROCESS
(
snk_in
)
BEGIN
IF
g_use_complex
=
FALSE
THEN
in_data
<=
snk_in
.
data
(
g_data_w
-1
DOWNTO
0
);
ELSE
in_data
<=
snk_in
.
im
(
c_complex_w
-1
DOWNTO
0
)
&
snk_in
.
re
(
c_complex_w
-1
DOWNTO
0
);
END
IF
;
END
PROCESS
;
u_common_reverse_n
:
ENTITY
common_lib
.
common_reverse_n_data
GENERIC
MAP
(
...
...
@@ -119,10 +128,15 @@ BEGIN
p_src_out
:
PROCESS
(
snk_in_delayed
,
reversed_data
)
BEGIN
src_out
<=
snk_in_delayed
;
IF
g_signed
=
TRUE
THEN
src_out
.
data
<=
RESIZE_DP_SDATA
(
reversed_data
);
IF
g_use_complex
=
FALSE
THEN
IF
g_signed
=
TRUE
THEN
src_out
.
data
<=
RESIZE_DP_SDATA
(
reversed_data
);
ELSE
src_out
.
data
<=
RESIZE_DP_DATA
(
reversed_data
);
END
IF
;
ELSE
src_out
.
data
<=
RESIZE_DP_DATA
(
reversed_data
);
src_out
.
im
<=
RESIZE_DP_DSP_DATA
(
reversed_data
(
g_data_w
-1
DOWNTO
c_complex_w
));
src_out
.
re
<=
RESIZE_DP_DSP_DATA
(
reversed_data
(
c_complex_w
-1
DOWNTO
0
));
END
IF
;
END
PROCESS
;
...
...
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