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
fc69ae78
Commit
fc69ae78
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Support reorder identity control.
parent
214a7bd1
No related branches found
No related tags found
1 merge request
!348
Use use_bdo_transpose = true in c_bf revision. Test use_bdo_transpose = false...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/reorder/src/vhdl/reorder_pkg.vhd
+40
-0
40 additions, 0 deletions
libraries/base/reorder/src/vhdl/reorder_pkg.vhd
with
40 additions
and
0 deletions
libraries/base/reorder/src/vhdl/reorder_pkg.vhd
+
40
−
0
View file @
fc69ae78
...
...
@@ -77,6 +77,10 @@ package reorder_pkg is
(
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
)
);
-----------------------------------------------------------------------------
-- Reorder transpose
-----------------------------------------------------------------------------
-- Block and data counters to derive select_copi.address for transpose
-- reording between nof_blocks_per_packet and nof_data_per_block.
type
t_reorder_transpose
is
record
...
...
@@ -96,6 +100,24 @@ package reorder_pkg is
transpose
:
t_reorder_transpose
)
return
t_reorder_transpose
;
-----------------------------------------------------------------------------
-- Reorder identity
-- . so no reordering, same out as in, but delayed due to dual page
-- buffering of reorder
-----------------------------------------------------------------------------
-- Pass on input to output in same order.
type
t_reorder_identity
is
record
select_copi
:
t_mem_copi
;
addr
:
natural
;
end
record
;
constant
c_reorder_identity_rst
:
t_reorder_identity
:
=
(
c_mem_copi_rst
,
0
);
function
func_reorder_identity
(
nof_ch_per_packet
:
natural
;
identity
:
t_reorder_identity
)
return
t_reorder_identity
;
end
reorder_pkg
;
package
body
reorder_pkg
is
...
...
@@ -167,4 +189,22 @@ package body reorder_pkg is
return
v
;
end
;
function
func_reorder_identity
(
nof_ch_per_packet
:
natural
;
identity
:
t_reorder_identity
)
return
t_reorder_identity
is
variable
v
:
t_reorder_identity
;
begin
v
:
=
identity
;
-- read at current address
v
.
select_copi
.
address
:
=
TO_MEM_ADDRESS
(
v
.
addr
);
v
.
select_copi
.
rd
:
=
'1'
;
-- prepare next read address
if
v
.
addr
<
nof_ch_per_packet
-
1
then
v
.
addr
:
=
v
.
addr
+
1
;
else
v
.
addr
:
=
0
;
end
if
;
return
v
;
end
;
end
reorder_pkg
;
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