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
84cd83be
Commit
84cd83be
authored
8 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Initial commti
parent
ce1cd80a
Branches
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/dsp/fringe_stop/tb/vhdl/tb_tb_fringe_stop_unit.vhd
+76
-0
76 additions, 0 deletions
libraries/dsp/fringe_stop/tb/vhdl/tb_tb_fringe_stop_unit.vhd
with
76 additions
and
0 deletions
libraries/dsp/fringe_stop/tb/vhdl/tb_tb_fringe_stop_unit.vhd
0 → 100644
+
76
−
0
View file @
84cd83be
-------------------------------------------------------------------------------
--
-- 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: Testbench for the fringe_stop_unit.
--
--
-- Usage
-- > as 8
-- > run -all
-- > Testbench is self-checking
-- > Evalute the WAVE window.
LIBRARY
IEEE
,
common_lib
,
technology_lib
,
mm_lib
,
diag_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
common_lib
.
common_str_pkg
.
ALL
;
USE
common_lib
.
tb_common_pkg
.
ALL
;
USE
common_lib
.
tb_common_mem_pkg
.
ALL
;
USE
technology_lib
.
technology_select_pkg
.
ALL
;
USE
mm_lib
.
mm_file_unb_pkg
.
ALL
;
USE
mm_lib
.
mm_file_pkg
.
ALL
;
USE
dp_lib
.
dp_stream_pkg
.
ALL
;
USE
diag_lib
.
diag_pkg
.
ALL
;
USE
work
.
fringe_stop_pkg
.
ALL
;
ENTITY
tb_tb_fringe_stop_unit
IS
END
tb_tb_fringe_stop_unit
;
ARCHITECTURE
tb
OF
tb_tb_fringe_stop_unit
IS
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
-- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
BEGIN
-- Usage
-- > as 8
-- > run -all
-- > Testbenches are self-checking
-- g_sim_type : NATURAL := 0; -- 0 = Increment, 1 = Increment over the maximum, 2 = Decrease, 3 = Decrease over the minimum
-- g_in_dat_w : POSITIVE := 8; -- Width of the incoming data.
-- g_fs_offset_w : POSITIVE := 10; -- Width of the offset of the linear coefficient
-- g_accu_w : POSITIVE := 31; -- Width of the accumulation register
-- g_fs_step_w : POSITIVE := 17; -- Width of the step of the linear coefficient
-- g_nof_channels : POSITIVE := 4; -- Number of serial channels for which the fringe stopping must be applied uniquely
-- g_phasor_w : POSITIVE := 9 -- Width of the phasor values in the lookup table
--
gen_sim_types
:
FOR
I
IN
0
TO
3
GENERATE
sim
:
ENTITY
work
.
tb_fringe_stop_unit
GENERIC
MAP
(
I
,
8
,
10
,
31
,
17
,
4
,
9
);
END
GENERATE
;
END
tb
;
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