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
c0e5e498
Commit
c0e5e498
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added tb_tb_resize.vhd.
parent
d81f9928
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!165
Resolve L2SDP-303
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/common/hdllib.cfg
+2
-1
2 additions, 1 deletion
libraries/base/common/hdllib.cfg
libraries/base/common/tb/vhdl/tb_tb_resize.vhd
+49
-0
49 additions, 0 deletions
libraries/base/common/tb/vhdl/tb_tb_resize.vhd
with
51 additions
and
1 deletion
libraries/base/common/hdllib.cfg
+
2
−
1
View file @
c0e5e498
...
...
@@ -196,6 +196,7 @@ test_bench_files =
tb/vhdl/tb_delta_cycle_demo.vhd
tb/vhdl/tb_mms_common_variable_delay.vhd
tb/vhdl/tb_tb_resize.vhd
tb/vhdl/tb_tb_common_add_sub.vhd
tb/vhdl/tb_tb_common_adder_tree.vhd
tb/vhdl/tb_tb_common_fanout_tree.vhd
...
...
@@ -218,7 +219,7 @@ regression_test_vhdl =
tb/vhdl/tb_common_shiftreg.vhd
tb/vhdl/tb_common_transpose_symbol.vhd
tb/vhdl/tb_common_variable_delay.vhd
tb/vhdl/tb_resize.vhd
tb/vhdl/tb_
tb_
resize.vhd
#tb/vhdl/tb_round.vhd -- has no self verification yet
tb/vhdl/tb_requantize.vhd
tb/vhdl/tb_common_to_sreal.vhd
...
...
This diff is collapsed.
Click to expand it.
libraries/base/common/tb/vhdl/tb_tb_resize.vhd
0 → 100644
+
49
−
0
View file @
c0e5e498
-- --------------------------------------------------------------------------
-- Copyright 2021
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- --------------------------------------------------------------------------
--
-- Author: E. Kooistra, 26 okt 2021
-- Purpose: Multi tb for common_resize.vhd and RESIZE_NUM() in common_pkg.vhd
LIBRARY
IEEE
;
USE
IEEE
.
std_logic_1164
.
ALL
;
ENTITY
tb_tb_resize
IS
END
tb_tb_resize
;
ARCHITECTURE
tb
OF
tb_tb_resize
IS
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
-- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
BEGIN
-- -- Supported for RESIZE_NUM() and common_resize.vhd
-- g_in_dat_w : NATURAL := 5;
-- g_out_dat_w : NATURAL := 3;
-- -- Only supported for common_resize.vhd
-- g_clip : BOOLEAN := TRUE;
-- g_clip_symmetric : BOOLEAN := TRUE;
u_wrap_extend_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
3
,
5
,
FALSE
,
FALSE
);
u_wrap_keep_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
5
,
FALSE
,
FALSE
);
u_wrap_reduce_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
3
,
FALSE
,
FALSE
);
u_clip_extend_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
3
,
5
,
TRUE
,
FALSE
);
u_clip_keep_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
5
,
TRUE
,
FALSE
);
u_clip_reduce_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
3
,
TRUE
,
FALSE
);
u_clip_sym_extend_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
3
,
5
,
TRUE
,
TRUE
);
u_clip_sym_keep_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
5
,
TRUE
,
TRUE
);
u_clip_sym_reduce_w
:
ENTITY
work
.
tb_resize
GENERIC
MAP
(
5
,
3
,
TRUE
,
TRUE
);
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