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
efbab59b
Commit
efbab59b
authored
Jun 25, 2015
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Made exception for frame_size = 1
parent
3f46972c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/reorder/src/vhdl/reorder_row.vhd
+22
-16
22 additions, 16 deletions
libraries/base/reorder/src/vhdl/reorder_row.vhd
with
22 additions
and
16 deletions
libraries/base/reorder/src/vhdl/reorder_row.vhd
+
22
−
16
View file @
efbab59b
...
@@ -74,7 +74,7 @@ ARCHITECTURE str OF reorder_row IS
...
@@ -74,7 +74,7 @@ ARCHITECTURE str OF reorder_row IS
CONSTANT
c_select_w
:
NATURAL
:
=
ceil_log2
(
g_nof_inputs
);
CONSTANT
c_select_w
:
NATURAL
:
=
ceil_log2
(
g_nof_inputs
);
CONSTANT
c_select_word_w
:
NATURAL
:
=
c_select_w
*
g_nof_outputs
;
CONSTANT
c_select_word_w
:
NATURAL
:
=
c_select_w
*
g_nof_outputs
;
CONSTANT
c_nof_mm_regs_per_sel
:
NATURAL
:
=
ceil_div
(
c_select_word_w
,
c_word_w
);
CONSTANT
c_nof_mm_regs_per_sel
:
NATURAL
:
=
ceil_div
(
c_select_word_w
,
c_word_w
);
CONSTANT
c_mem_dat_w_mm
:
NATURAL
:
=
sel_a_b
(
c_select_word_w
<=
c_word_w
,
c_select_word_w
,
c_word_w
);
CONSTANT
c_mem_dat_w_mm
:
NATURAL
:
=
c_word_w
;
--
sel_a_b(c_select_word_w <= c_word_w, c_select_word_w, c_word_w);
CONSTANT
c_mem_nof_dat_mm
:
NATURAL
:
=
2
**
(
true_log2
(
c_nof_mm_regs_per_sel
))
*
g_frame_size
;
CONSTANT
c_mem_nof_dat_mm
:
NATURAL
:
=
2
**
(
true_log2
(
c_nof_mm_regs_per_sel
))
*
g_frame_size
;
CONSTANT
c_mem_dat_w_dp
:
NATURAL
:
=
2
**
(
ceil_log2
(
c_select_word_w
));
CONSTANT
c_mem_dat_w_dp
:
NATURAL
:
=
2
**
(
ceil_log2
(
c_select_word_w
));
...
@@ -180,6 +180,7 @@ BEGIN
...
@@ -180,6 +180,7 @@ BEGIN
--
--
-- Counter that addresses the selection buffer
-- Counter that addresses the selection buffer
---------------------------------------------------------------
---------------------------------------------------------------
gen_cnt
:
IF
g_frame_size
>
1
GENERATE
u_adr_chn_cnt
:
ENTITY
common_lib
.
common_counter
u_adr_chn_cnt
:
ENTITY
common_lib
.
common_counter
GENERIC
MAP
(
GENERIC
MAP
(
g_latency
=>
1
,
g_latency
=>
1
,
...
@@ -194,6 +195,11 @@ BEGIN
...
@@ -194,6 +195,11 @@ BEGIN
cnt_clr
=>
input_sosi_arr
(
0
)
.
eop
,
cnt_clr
=>
input_sosi_arr
(
0
)
.
eop
,
count
=>
reorder_chan_cnt
count
=>
reorder_chan_cnt
);
);
END
GENERATE
;
gen_no_cnt
:
IF
g_frame_size
=
1
GENERATE
reorder_chan_cnt
<=
(
OTHERS
=>
'0'
);
END
GENERATE
;
---------------------------------------------------------------
---------------------------------------------------------------
-- REGISTERING AND PIPELINING
-- REGISTERING AND PIPELINING
...
...
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