Skip to content
GitLab
Explore
Sign in
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
9e7a56de
Commit
9e7a56de
authored
9 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Initila commit
parent
69b88c88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/reorder/src/vhdl/reorder_rewire.vhd
+78
-0
78 additions, 0 deletions
libraries/base/reorder/src/vhdl/reorder_rewire.vhd
with
78 additions
and
0 deletions
libraries/base/reorder/src/vhdl/reorder_rewire.vhd
0 → 100644
+
78
−
0
View file @
9e7a56de
-------------------------------------------------------------------------------
--
-- Copyright (C) 2012
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
-- Purpose:
--
-- Description:
--
-- Remarks:
--
--
-- Some more remarks:
LIBRARY
IEEE
,
common_lib
,
dp_lib
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
USE
IEEE
.
NUMERIC_STD
.
ALL
;
USE
common_lib
.
common_pkg
.
ALL
;
USE
common_lib
.
common_mem_pkg
.
ALL
;
USE
dp_lib
.
dp_stream_pkg
.
ALL
;
USE
work
.
reorder_pkg
.
ALL
;
ENTITY
reorder_rewire
IS
GENERIC
(
g_select_table
:
t_sel_table
:
=
c_sel_table
;
g_nof_configs
:
NATURAL
:
=
8
;
g_nof_input_streams
:
NATURAL
:
=
8
;
g_nof_output_streams
:
NATURAL
:
=
8
;
g_sel_in_w
:
NATURAL
:
=
3
);
PORT
(
-- System
sel_in
:
IN
STD_LOGIC_VECTOR
(
g_sel_in_w
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'0'
);
-- [2:0]
-- Inputs from transceiver
input_sosi_arr
:
IN
t_dp_sosi_arr
(
g_nof_input_streams
-1
DOWNTO
0
);
input_siso_arr
:
OUT
t_dp_siso_arr
(
g_nof_input_streams
-1
DOWNTO
0
);
-- Outputs to processing
output_sosi_arr
:
OUT
t_dp_sosi_arr
(
g_nof_output_streams
-1
DOWNTO
0
);
output_siso_arr
:
IN
t_dp_siso_arr
(
g_nof_output_streams
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
c_dp_siso_rdy
)
);
END
reorder_rewire
;
ARCHITECTURE
str
OF
reorder_rewire
IS
BEGIN
---------------------------------------------------------------------------------------
-- Connect outputs in process
---------------------------------------------------------------------------------------
PROCESS
(
sel_in
,
input_sosi_arr
,
output_siso_arr
)
BEGIN
FOR
I
IN
0
TO
g_nof_output_streams
-1
LOOP
output_sosi_arr
(
I
)
<=
input_sosi_arr
(
g_select_table
(
I
,
TO_UINT
(
sel_in
)));
input_siso_arr
(
g_select_table
(
I
,
TO_UINT
(
sel_in
)))
<=
output_siso_arr
(
I
);
END
LOOP
;
END
PROCESS
;
-- input_siso_arr(g_nof_output_streams-1 DOWNTO 0) <= output_siso_arr;
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