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
0f281a6d
Commit
0f281a6d
authored
10 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
svn copied from tb_unb2_board_clk25_pll.vhd and modified
parent
93690833
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
boards/uniboard2/libraries/unb2_board/tb/vhdl/tb_unb2_board_clk125_pll.vhd
+71
-0
71 additions, 0 deletions
...libraries/unb2_board/tb/vhdl/tb_unb2_board_clk125_pll.vhd
with
71 additions
and
0 deletions
boards/uniboard2/libraries/unb2_board/tb/vhdl/tb_unb2_board_clk125_pll.vhd
0 → 100644
+
71
−
0
View file @
0f281a6d
-------------------------------------------------------------------------------
--
-- Copyright (C) 2014
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.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: Simulate phase behaviour of PLL in normal mode
-- Description:
-- Usage:
-- > as 3
-- > run -all
LIBRARY
IEEE
,
common_lib
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
USE
common_lib
.
common_pkg
.
ALL
;
ENTITY
tb_unb2_board_clk125_pll
IS
END
tb_unb2_board_clk125_pll
;
ARCHITECTURE
tb
OF
tb_unb2_board_clk125_pll
IS
CONSTANT
c_ext_clk_period
:
TIME
:
=
8
ns
;
-- 125 MHz
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
SIGNAL
ext_clk
:
STD_LOGIC
:
=
'0'
;
SIGNAL
ext_rst
:
STD_LOGIC
;
SIGNAL
c0_clk20
:
STD_LOGIC
;
SIGNAL
c1_clk50
:
STD_LOGIC
;
SIGNAL
c2_clk100
:
STD_LOGIC
;
SIGNAL
c3_clk125
:
STD_LOGIC
;
SIGNAL
pll_locked
:
STD_LOGIC
;
BEGIN
tb_end
<=
'0'
,
'1'
AFTER
c_ext_clk_period
*
5000
;
ext_clk
<=
NOT
ext_clk
OR
tb_end
AFTER
c_ext_clk_period
/
2
;
ext_rst
<=
'1'
,
'0'
AFTER
c_ext_clk_period
*
7
;
dut_0
:
ENTITY
work
.
unb2_board_clk125_pll
PORT
MAP
(
arst
=>
ext_rst
,
clk125
=>
ext_clk
,
c0_clk20
=>
c0_clk20
,
c1_clk50
=>
c1_clk50
,
c2_clk100
=>
c2_clk100
,
c3_clk125
=>
c3_clk125
,
pll_locked
=>
pll_locked
);
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