Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
Gennum GN4124 core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Gennum GN4124 core
Commits
44501c64
Commit
44501c64
authored
Aug 03, 2011
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a status port on top entity of the core.
parent
f5a7bea2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
42 deletions
+17
-42
gn4124_core.vhd
hdl/gn4124core/rtl/spartan6/gn4124_core.vhd
+11
-22
spec_gn4124_test.vhd
hdl/spec/rtl/spec_gn4124_test.vhd
+6
-20
spec_gn4124_test.bin
hdl/spec/syn/spec_gn4124_test.bin
+0
-0
No files found.
hdl/gn4124core/rtl/spartan6/gn4124_core.vhd
View file @
44501c64
...
...
@@ -39,20 +39,12 @@ use UNISIM.vcomponents.all;
-- Entity declaration for GN4124 core (gn4124_core)
--==============================================================================
entity
gn4124_core
is
generic
(
g_IS_SPARTAN6
:
boolean
:
=
true
-- This generic is used to instanciate spartan6 specific primitives
);
port
(
---------------------------------------------------------
-- Control and status
--
-- Asynchronous reset from GN4124
rst_n_a_i
:
in
std_logic
;
-- P2L clock PLL locked
p2l_pll_locked
:
out
std_logic
;
-- Debug ouputs
debug_o
:
out
std_logic_vector
(
7
downto
0
);
rst_n_a_i
:
in
std_logic
;
-- Asynchronous reset from GN4124
status_o
:
out
std_logic_vector
(
31
downto
0
);
-- Core status output
---------------------------------------------------------
-- P2L Direction
...
...
@@ -172,10 +164,10 @@ architecture rtl of gn4124_core is
------------------------------------------------------------------------------
-- Clock
signal
sys_clk
:
std_logic
;
signal
io_clk
:
std_logic
;
signal
serdes_strobe
:
std_logic
;
signal
p
ll_locked
:
std_logic
;
signal
sys_clk
:
std_logic
;
signal
io_clk
:
std_logic
;
signal
serdes_strobe
:
std_logic
;
signal
p
2l_pll_locked
:
std_logic
;
-- Reset for all clk_p logic
signal
rst_reg
:
std_logic
;
...
...
@@ -326,11 +318,10 @@ begin
------------------------------------------------------------------------------
--
Debug outputs
assignment
--
Status output
assignment
------------------------------------------------------------------------------
--debug_o(0) <= io_clk;
--debug_o(1) <= serdes_strobe;
debug_o
(
7
downto
0
)
<=
(
others
=>
'0'
);
status_o
(
0
)
<=
p2l_pll_locked
;
status_o
(
31
downto
1
)
<=
(
others
=>
'0'
);
------------------------------------------------------------------------------
-- Clock Input. Generate ioclocks and system clock via BUFPLL
...
...
@@ -353,9 +344,7 @@ begin
bitslip
=>
open
,
reset
=>
rst
,
datain
=>
open
,
rx_bufpll_lckd
=>
pll_locked
)
;
p2l_pll_locked
<=
pll_locked
;
rx_bufpll_lckd
=>
p2l_pll_locked
)
;
------------------------------------------------------------------------------
-- Reset aligned to core clock
...
...
@@ -365,7 +354,7 @@ begin
if
rst_n_a_i
=
c_RST_ACTIVE
then
rst_reg
<=
c_RST_ACTIVE
;
elsif
rising_edge
(
sys_clk
)
then
if
pll_locked
=
'1'
then
if
p
2l_p
ll_locked
=
'1'
then
rst_reg
<=
not
(
c_RST_ACTIVE
);
end
if
;
end
if
;
...
...
hdl/spec/rtl/spec_gn4124_test.vhd
View file @
44501c64
...
...
@@ -99,20 +99,12 @@ architecture rtl of spec_gn4124_test is
------------------------------------------------------------------------------
component
gn4124_core
generic
(
g_IS_SPARTAN6
:
boolean
:
=
false
-- This generic is used to instanciate spartan6 specific primitives
);
port
(
---------------------------------------------------------
-- Control and status
--
-- Asynchronous reset from GN4124
rst_n_a_i
:
in
std_logic
;
-- P2L clock PLL locked
p2l_pll_locked
:
out
std_logic
;
-- Debug ouputs
debug_o
:
out
std_logic_vector
(
7
downto
0
);
rst_n_a_i
:
in
std_logic
;
-- Asynchronous reset from GN4124
status_o
:
out
std_logic_vector
(
31
downto
0
);
-- Core status output
---------------------------------------------------------
-- P2L Direction
...
...
@@ -373,20 +365,14 @@ begin
-- GN4124 interface
------------------------------------------------------------------------------
cmp_gn4124_core
:
gn4124_core
generic
map
(
g_IS_SPARTAN6
=>
true
)
port
map
(
---------------------------------------------------------
-- Control and status
--
-- Asynchronous reset from GN4124
rst_n_a_i
=>
L_RST_N
,
-- P2L clock PLL locked
p2l_pll_locked
=>
p2l_pll_locked
,
-- Debug outputs
debug_o
=>
debug
,
rst_n_a_i
=>
L_RST_N
,
status_o
(
0
)
=>
p2l_pll_locked
,
status_o
(
31
downto
1
)
=>
open
,
---------------------------------------------------------
-- P2L Direction
...
...
hdl/spec/syn/spec_gn4124_test.bin
View file @
44501c64
No preview for this file type
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