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
d68bda8b
Commit
d68bda8b
authored
May 02, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_core/wr_core: fixed DAC address conflict when using aux clocks
parent
0aae97ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
wr_core.vhd
modules/wrc_core/wr_core.vhd
+14
-13
wrcore_pkg.vhd
modules/wrc_core/wrcore_pkg.vhd
+1
-0
No files found.
modules/wrc_core/wr_core.vhd
View file @
d68bda8b
...
...
@@ -5,7 +5,7 @@
-- Author : Grzegorz Daniluk
-- Company : Elproma
-- Created : 2011-02-02
-- Last update: 2012-0
4-26
-- Last update: 2012-0
5-02
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -365,8 +365,8 @@ architecture struct of wr_core is
signal
ext_snk_in
:
t_wrf_sink_in
;
signal
dummy
:
std_logic_vector
(
31
downto
0
);
signal
spll_out_locked
:
std_logic_vector
(
g_aux_clks
downto
0
);
signal
spll_out_locked
:
std_logic_vector
(
g_aux_clks
downto
0
);
component
xwbp_mux
port
(
clk_sys_i
:
in
std_logic
;
...
...
@@ -386,10 +386,10 @@ signal spll_out_locked : std_logic_vector(g_aux_clks downto 0);
class_core_i
:
in
std_logic_vector
(
7
downto
0
));
end
component
;
signal
dac_dpll_data
:
std_logic_vector
(
15
downto
0
);
signal
dac_dpll_sel
:
std_logic_vector
(
3
downto
0
);
signal
dac_dpll_data
:
std_logic_vector
(
15
downto
0
);
signal
dac_dpll_sel
:
std_logic_vector
(
3
downto
0
);
signal
dac_dpll_load_p1
:
std_logic
;
--component chipscope_ila
-- port (
...
...
@@ -455,6 +455,7 @@ begin
generic
map
(
g_with_ext_clock_input
=>
g_with_external_clock_input
,
g_reverse_dmtds
=>
false
,
g_divide_input_by_2
=>
true
,
g_with_undersampling
=>
false
,
g_with_period_detector
=>
false
,
g_with_debug_fifo
=>
true
,
...
...
@@ -490,12 +491,12 @@ begin
-- Output channel DAC value
dac_out_data_o
=>
dac_dpll_data
,
--: out std_logic_vector(15 downto 0);
-- Output channel select (0 = channel 0, etc. )
dac_out_sel_o
=>
dac_dpll_sel
,
--for now use only one output
dac_out_sel_o
=>
dac_dpll_sel
,
--for now use only one output
dac_out_load_o
=>
dac_dpll_load_p1
,
out_enable_i
(
0
)
=>
'1'
,
out_enable_i
(
1
)
=>
tm_clk_aux_lock_en_i
,
out_locked_o
=>
spll_out_locked
,
slave_i
=>
spll_wb_in
,
...
...
@@ -504,12 +505,12 @@ begin
debug_o
=>
dio_o
);
dac_dpll_data_o
<=
dac_dpll_data
;
dac_dpll_load_p1_o
<=
dac_dpll_load_p1
;
dac_dpll_data_o
<=
dac_dpll_data
;
dac_dpll_load_p1_o
<=
'1'
when
(
dac_dpll_load_p1
=
'1'
and
dac_dpll_sel
=
x"0"
)
else
'0'
;
tm_dac_value_o
<=
x"00"
&
dac_dpll_data
;
tm_dac_wr_o
<=
'1'
when
(
dac_dpll_load_p1
=
'1'
and
dac_dpll_sel
=
x"1"
)
else
'0'
;
tm_dac_wr_o
<=
'1'
when
(
dac_dpll_load_p1
=
'1'
and
dac_dpll_sel
=
x"1"
)
else
'0'
;
tm_clk_aux_locked_o
<=
spll_out_locked
(
1
);
softpll_irq
<=
spll_wb_out
.
int
;
...
...
modules/wrc_core/wrcore_pkg.vhd
View file @
d68bda8b
...
...
@@ -231,6 +231,7 @@ package wrcore_pkg is
g_bb_ref_divider
:
integer
:
=
1
;
g_bb_feedback_divider
:
integer
:
=
1
;
g_bb_log2_gating
:
integer
:
=
1
;
g_divide_input_by_2
:
boolean
:
=
false
;
g_interface_mode
:
t_wishbone_interface_mode
;
g_address_granularity
:
t_wishbone_address_granularity
);
port
(
...
...
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