Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
f500d177
Commit
f500d177
authored
Feb 06, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrcore_v2: wr_pps_gen from wishbonized
parent
3fa2364a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
wr_pps_gen.vhd
modules/wr_pps_gen/wr_pps_gen.vhd
+9
-8
xwr_pps_gen.vhd
modules/wr_pps_gen/xwr_pps_gen.vhd
+7
-4
No files found.
modules/wr_pps_gen/wr_pps_gen.vhd
View file @
f500d177
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-09-02
-- Last update: 201
1-10-27
-- Last update: 201
2-01-20
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -32,17 +32,18 @@ use work.wishbone_pkg.all;
entity
wr_pps_gen
is
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
;
g_address_granularity
:
t_wishbone_address_granularity
:
=
WORD
);
g_address_granularity
:
t_wishbone_address_granularity
:
=
WORD
;
g_ref_clock_rate
:
integer
:
=
125000000
);
port
(
clk_ref_i
:
in
std_logic
;
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
wb_adr_i
:
in
std_logic_vector
(
4
downto
0
);
wb_dat_i
:
in
std_logic_vector
(
31
downto
0
);
wb_dat_o
:
out
std_logic_vector
(
31
downto
0
);
wb_adr_i
:
in
std_logic_vector
(
4
downto
0
);
wb_dat_i
:
in
std_logic_vector
(
31
downto
0
);
wb_dat_o
:
out
std_logic_vector
(
31
downto
0
);
wb_cyc_i
:
in
std_logic
;
wb_sel_i
:
in
std_logic_vector
(
3
downto
0
);
wb_stb_i
:
in
std_logic
;
...
...
@@ -64,7 +65,7 @@ end wr_pps_gen;
architecture
behavioral
of
wr_pps_gen
is
constant
c_PERIOD
:
integer
:
=
125000000
;
constant
c_PERIOD
:
integer
:
=
g_ref_clock_rate
;
component
pps_gen_wb
port
(
...
...
@@ -237,7 +238,7 @@ begin -- behavioral
adjust_in_progress_nsec
<=
'0'
;
adjust_done_nsec
<=
'0'
;
-- counter is enabled?
-- counter is enabled?
elsif
(
ppsg_cr_cnt_en
=
'1'
)
then
-- got ADJUST OFFSET command
...
...
modules/wr_pps_gen/xwr_pps_gen.vhd
View file @
f500d177
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-09-02
-- Last update: 201
1-10-27
-- Last update: 201
2-01-20
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -32,7 +32,8 @@ use work.wishbone_pkg.all;
entity
xwr_pps_gen
is
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
;
g_address_granularity
:
t_wishbone_address_granularity
:
=
WORD
g_address_granularity
:
t_wishbone_address_granularity
:
=
WORD
;
g_ref_clock_rate
:
integer
:
=
125000000
);
port
(
clk_ref_i
:
in
std_logic
;
...
...
@@ -61,7 +62,8 @@ architecture behavioral of xwr_pps_gen is
component
wr_pps_gen
is
generic
(
g_interface_mode
:
t_wishbone_interface_mode
;
g_address_granularity
:
t_wishbone_address_granularity
g_address_granularity
:
t_wishbone_address_granularity
;
g_ref_clock_rate
:
integer
);
port
(
clk_ref_i
:
in
std_logic
;
...
...
@@ -90,7 +92,8 @@ begin -- behavioral
WRAPPED_PPSGEN
:
wr_pps_gen
generic
map
(
g_interface_mode
=>
g_interface_mode
,
g_address_granularity
=>
g_address_granularity
g_address_granularity
=>
g_address_granularity
,
g_ref_clock_rate
=>
g_ref_clock_rate
)
port
map
(
clk_ref_i
=>
clk_ref_i
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment