Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
Software for White Rabbit PTP Core
Commits
5cf05621
Commit
5cf05621
authored
Mar 13, 2017
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: merge 2 documents
parent
646eb7e8
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
124 additions
and
49 deletions
+124
-49
aux_clocks.tex
doc/HDLdoc/aux_clocks.tex
+1
-1
aux_diag.tex
doc/HDLdoc/aux_diag.tex
+1
-1
fabric.tex
doc/HDLdoc/fabric.tex
+3
-3
intro.tex
doc/HDLdoc/intro.tex
+3
-3
periph.tex
doc/HDLdoc/periph.tex
+1
-1
phyif.tex
doc/HDLdoc/phyif.tex
+1
-1
timecode.tex
doc/HDLdoc/timecode.tex
+1
-1
txts.tex
doc/HDLdoc/txts.tex
+1
-1
wb.tex
doc/HDLdoc/wb.tex
+1
-1
wrc_board.tex
doc/HDLdoc/wrc_board.tex
+13
-13
wrc_core.tex
doc/HDLdoc/wrc_core.tex
+11
-11
wrc_generics.tex
doc/HDLdoc/wrc_generics.tex
+1
-1
wrc_platform.tex
doc/HDLdoc/wrc_platform.tex
+10
-10
wrc_ports.tex
doc/HDLdoc/wrc_ports.tex
+1
-1
basic_top.pdf
doc/fig/basic_top.pdf
+0
-0
basic_wrf_cycle.pdf
doc/fig/basic_wrf_cycle.pdf
+0
-0
basic_wrf_cycle_err.pdf
doc/fig/basic_wrf_cycle_err.pdf
+0
-0
basic_wrf_cycle_sel.pdf
doc/fig/basic_wrf_cycle_sel.pdf
+0
-0
basic_wrf_cycle_simple.pdf
doc/fig/basic_wrf_cycle_simple.pdf
+0
-0
basic_wrf_data.pdf
doc/fig/basic_wrf_data.pdf
+0
-0
oob_rx.pdf
doc/fig/oob_rx.pdf
+0
-0
oob_tx.pdf
doc/fig/oob_tx.pdf
+0
-0
status.pdf
doc/fig/status.pdf
+0
-0
wrpc_board.pdf
doc/fig/wrpc_board.pdf
+0
-0
wrpc_board.svg
doc/fig/wrpc_board.svg
+0
-0
wrpc.tex
doc/wrpc.tex
+75
-0
No files found.
doc/HDLdoc/aux_clocks.tex
View file @
5cf05621
\subsection
{
Aux clocks
}
\subs
ubs
ection
{
Aux clocks
}
\begin{figure}
[ht]
\begin{center}
...
...
doc/HDLdoc/aux_diag.tex
View file @
5cf05621
\subsection
{
Auxiliary diagnostics interface
}
\subs
ubs
ection
{
Auxiliary diagnostics interface
}
\label
{
sec:aux
_
diag
}
Auxiliary diagnostics interface can be used if a user would like to benefit from
...
...
doc/HDLdoc/fabric.tex
View file @
5cf05621
\subsection
{
Fabric interface
}
\subs
ubs
ection
{
Fabric interface
}
\label
{
sec:wrpc
_
fabric
}
%\begin{figure}[ht]
...
...
@@ -117,7 +117,7 @@ WRPC and user-defined module doesn't care about it. The Ethernet frame received
from the WR Fabric interface may contain additional OOB data suffixed. It has to
be received (acknowledged) by the user-defined module, but can be simply discarded.
\
subsubsection
{
Examples
}
\
newparagraph
{
Examples
}
Figure
\ref
{
fig:fabric:simple
_
tx
}
shows a very simple WR Fabric cycle. The WRF
Source of user-defined module sends there an Ethernet frame containing even
number of bytes.
...
...
@@ -207,7 +207,7 @@ immediately break the cycle. This situation is presented in figure
from the WRF Sink.
\end{enumerate}
\
subsubsection
{
SystemVerilog model
}
\
newparagraph
{
SystemVerilog model
}
The SystemVerilog simulation model of the WR Fabric interface (both WRF Source and
WRF Sink) can be found in the
\emph
{
wr-cores
}
git repository
(git://ohwr.org/hdl-core-lib/wr-cores.git) and consists of the files:
...
...
doc/HDLdoc/intro.tex
View file @
5cf05621
\section
{
In
troductio
n
}
\section
{
In
stantiating WRPC in your own HDL desig
n
}
This section describes the various options available to the users for instantiating and
parametrising the WRPC in their designs.
\begin{figure}
\begin{figure}
[ht]
\begin{center}
\includegraphics
[width=.6\textwidth]
{
fig/wrpc
_
board.pdf
}
\label
{
fig:wrpc
_
board
}
\caption
{
WRPC HDL abstraction hierarchy
}
\label
{
fig:wrpc
_
board
}
\end{center}
\end{figure}
...
...
doc/HDLdoc/periph.tex
View file @
5cf05621
\subsection
{
GPIO/UART/I2C/1-Wire/SPI interfaces
}
\subs
ubs
ection
{
GPIO/UART/I2C/1-Wire/SPI interfaces
}
\label
{
sec:wrpc
_
periph
}
%\begin{figure}[ht]
...
...
doc/HDLdoc/phyif.tex
View file @
5cf05621
\subsection
{
PHY interface
}
\subs
ubs
ection
{
PHY interface
}
%\begin{figure}[ht]
% \begin{center}
...
...
doc/HDLdoc/timecode.tex
View file @
5cf05621
\subsection
{
Timecode interface
}
\subs
ubs
ection
{
Timecode interface
}
\label
{
sec:wrpc
_
timecode
}
%\begin{figure}[ht]
...
...
doc/HDLdoc/txts.tex
View file @
5cf05621
\subsection
{
Tx Timestamping interface
}
\subs
ubs
ection
{
Tx Timestamping interface
}
\label
{
sec:txts
}
%\begin{figure}[ht]
...
...
doc/HDLdoc/wb.tex
View file @
5cf05621
\subsection
{
External Wishbone Slave/Master interface
}
\subs
ubs
ection
{
External Wishbone Slave/Master interface
}
\label
{
sec:wrpc
_
wb
}
%\begin{figure}[ht]
...
...
doc/HDLdoc/wrc_board.tex
View file @
5cf05621
\section
{
Board Support Packages
}
\s
ubs
ection
{
Board Support Packages
}
\label
{
sec:hdl
_
board
}
The White Rabbit (WR) PTP core project provides board support packages (BSPs) for the following
...
...
@@ -28,7 +28,7 @@ Section~\ref{sec:hdl_platform}). For users who need more control and flexibility
it is suggested to use the BSP as a reference, and to consider instantiating directly the respective
PSP for their FPGA family.
\subsection
{
Common
}
\subs
ubs
ection
{
Common
}
\label
{
sec:hdl
_
board
_
common
}
Most of the generic parameters and ports of the board-common module map directly to those of the
...
...
@@ -56,7 +56,7 @@ tables short and to the point. Users interested in studying the board-common mod
their own BSP, can find the board-common module under:
\\\hrefwrpc
{
board/common/xwrc
\_
board
\_
common.vhd
}
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
\label
{
sec:hdl
_
board
_
common
_
param
}
\begin{hdlparamtable}
...
...
@@ -86,7 +86,7 @@ their own BSP, can find the board-common module under:
fabric interface of WRPC
\tts
{
[PLAIN/STREAMERS/ETHERBONE]
}
\\
\end{hdlparamtable}
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\label
{
sec:hdl
_
board
_
common
_
ports
}
\begin{hdlporttable}
...
...
@@ -260,7 +260,7 @@ their own BSP, can find the board-common module under:
link
\_
ok
\_
o
&
out
&
1
&
Link status indicator
\\
\end{hdlporttable}
\subsection
{
SPEC
}
\subs
ubs
ection
{
SPEC
}
\label
{
sec:hdl
_
board
_
spec
}
The SPEC BSP provides a ready-to-use WRPC wrapper for the
...
...
@@ -281,13 +281,13 @@ An example (VHDL) instantiation of this module can be found in the SPEC WRPC ref
This section describes the generic parameters and ports which are specific to the SPEC BSP.
Parameters and ports common to all BSPs are described in Section~
\ref
{
sec:hdl
_
board
_
common
}
.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
No additional generic parameters are declared in the SPEC BSP. See
Section~
\ref
{
sec:hdl
_
board
_
common
_
param
}
for a the list of common BSP parameters.
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
\hdltablesection
{
Clocks and resets
}
\\
...
...
@@ -355,7 +355,7 @@ Section~\ref{sec:hdl_board_common_param} for a the list of common BSP parameters
flash
\_
miso
\_
i
&
in
&
1
&
Flash SPI MISO
\\
\end{hdlporttable}
\subsection
{
SVEC
}
\subs
ubs
ection
{
SVEC
}
\label
{
sec:hdl
_
board
_
svec
}
The SVEC BSP provides a ready-to-use WRPC wrapper for the
...
...
@@ -376,12 +376,12 @@ An example (VHDL) instantiation of this module can be found in the SVEC WRPC ref
This section describes the generic parameters and ports which are specific to the SVEC BSP.
Parameters and ports common to all BSPs are described in Section~
\ref
{
sec:hdl
_
board
_
common
}
.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
No additional generic parameters are declared in the SVEC BSP. See
Section~
\ref
{
sec:hdl
_
board
_
common
_
param
}
for a the list of common BSP parameters.
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
\hdltablesection
{
Clocks and resets
}
\\
...
...
@@ -453,7 +453,7 @@ Section~\ref{sec:hdl_board_common_param} for a the list of common BSP parameters
spi
\_
miso
\_
i
&
in
&
1
&
Flash SPI MISO
\\
\end{hdlporttable}
\subsection
{
VFC-HD
}
\subs
ubs
ection
{
VFC-HD
}
\label
{
sec:hdl
_
board
_
vfchd
}
The VFC-HD BSP provides a ready-to-use WRPC wrapper for the
...
...
@@ -474,7 +474,7 @@ An example (VHDL) instantiation of this module can be found in the VFC-HD WRPC r
This section describes the generic parameters and ports which are specific to the VFC-HD BSP.
Parameters and ports common to all BSPs are described in Section~
\ref
{
sec:hdl
_
board
_
common
}
.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
\begin{hdlparamtable}
g
\_
pcs16
\_
bit
&
boolean
&
false
&
Altera Arria V FPGAs provide the possibility
...
...
@@ -482,7 +482,7 @@ Parameters and ports common to all BSPs are described in Section~\ref{sec:hdl_bo
the 8bit PCS. Currently, 16bit PCS is not supported for Arria V.
\\
\end{hdlparamtable}
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
\hdltablesection
{
Clocks and resets
}
\\
...
...
doc/HDLdoc/wrc_core.tex
View file @
5cf05621
\s
ection
{
WR Core
}
\s
ubsection
{
WR PTP Core component
}
\label
{
sec:hdl
_
wrpc
}
This section describes the input and output ports of the WRPC IP-core and VHDL generic parameters
that can be used to personalize the core.
...
...
@@ -11,8 +11,8 @@ ports can be found under:\\\hrefwrpc{modules/wrc\_core/xwr\_core.vhd}
\begin{figure}
\begin{center}
\includegraphics
[width=.9\textheight, angle=270]
{
fig/basic
_
top.pdf
}
\label
{
intro:fig:wrpc
_
top
}
\caption
{
Simple top design with WRPC
}
\label
{
intro:fig:wrpc
_
top
}
\end{center}
\end{figure}
...
...
@@ -31,12 +31,12 @@ A very similar example can be found in the WRPC reference design for PCI-Express
Section~
\ref
{
sec:hdl
_
board
_
spec
}
).
\input
{
wrc
_
generics.tex
}
\input
{
wrc
_
ports.tex
}
\input
{
phyif.tex
}
\input
{
periph.tex
}
\input
{
wb.tex
}
\input
{
fabric.tex
}
\input
{
txts.tex
}
\input
{
timecode.tex
}
\input
{
aux
_
diag.tex
}
\input
{
HDLdoc/
wrc
_
generics.tex
}
\input
{
HDLdoc/
wrc
_
ports.tex
}
\input
{
HDLdoc/
phyif.tex
}
\input
{
HDLdoc/
periph.tex
}
\input
{
HDLdoc/
wb.tex
}
\input
{
HDLdoc/
fabric.tex
}
\input
{
HDLdoc/
txts.tex
}
\input
{
HDLdoc/
timecode.tex
}
\input
{
HDLdoc/
aux
_
diag.tex
}
doc/HDLdoc/wrc_generics.tex
View file @
5cf05621
\subsection
{
Generic parameters
}
\subs
ubs
ection
{
Generic parameters
}
\label
{
sec:wrc
_
generics
}
\begin{hdlparamtable}
...
...
doc/HDLdoc/wrc_platform.tex
View file @
5cf05621
\section
{
Platform Support Packages
}
\s
ubs
ection
{
Platform Support Packages
}
\label
{
sec:hdl
_
platform
}
The White Rabbit (WR) PTP core project provides platform support packages (PSPs) for Altera and
...
...
@@ -9,12 +9,12 @@ components for the WR PTP core (PHY, PLLs, etc.) in one go, without having to de
implementation details, using a setup that has been tested and is known to work well on the
supported FPGAs.
\subsection
{
Common
}
\subs
ubs
ection
{
Common
}
\label
{
sec:hdl
_
platform
_
common
}
This section describes the generic parameters and ports which are common to all provided PSPs.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
\begin{hdlparamtable}
g
\_
with
\_
external
\_
clock
\_
input
&
boolean
&
false
&
Select whether to
...
...
@@ -43,7 +43,7 @@ these parameters.
and also multiplied to 125MHz.
\end{description}
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
areset
\_
n
\_
i
&
in
&
1
&
asynchronous reset (active low)
\\
...
...
@@ -123,7 +123,7 @@ these parameters.
ext
\_
ref
\_
rst
\_
i
&
in
&
1
&
\\
\end{hdlporttable}
\subsection
{
Altera
}
\subs
ubs
ection
{
Altera
}
\label
{
sec:hdl
_
platform
_
altera
}
The Altera PSP currently supports the Arria V family of FPGAs.
...
...
@@ -139,7 +139,7 @@ also Section~\ref{sec:hdl_board_vfchd}):\\\hrefwrpc{board/vfchd/xwrc\_board\_vfc
This section describes the generic parameters and ports which are specific to the Altera
PSP. Parameters and ports common to all PSPs are described in Section~
\ref
{
sec:hdl
_
platform
_
common
}
.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
\begin{hdlparamtable}
g
\_
fpga
\_
family
&
string
&
arria5
&
Defines the family/model of Altera
...
...
@@ -150,7 +150,7 @@ PSP. Parameters and ports common to all PSPs are described in Section~\ref{sec:h
but this generic can be used to override it
\\
\end{hdlparamtable}
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
\hdltablesection
{
Interface with SFP
}
\\
...
...
@@ -162,7 +162,7 @@ PSP. Parameters and ports common to all PSPs are described in Section~\ref{sec:h
\linebreak
sfp
\_
rx
\_
i
\linebreak
&
in
&
1
&
\\
\end{hdlporttable}
\subsection
{
Xilinx
}
\subs
ubs
ection
{
Xilinx
}
\label
{
sec:hdl
_
platform
_
xilinx
}
The Xilinx PSP currently supports the Spartan 6 family of FPGAs.
...
...
@@ -182,7 +182,7 @@ This section describes the generic parameters and ports which are
specific to the Xilinx PSP. Parameters and ports common to all PSPs
are described in Section~
\ref
{
sec:hdl
_
platform
_
common
}
.
\
subsubsection
{
Generic parameters
}
\
newparagraph
{
Generic parameters
}
\begin{hdlparamtable}
g
\_
fpga
\_
family
&
string
&
spartan6
&
Defines the family/model of Xilinx
...
...
@@ -192,7 +192,7 @@ are described in Section~\ref{sec:hdl_platform_common}.
be set to '0' for synthesis
\\
\end{hdlparamtable}
\
subsubsection
{
Ports
}
\
newparagraph
{
Ports
}
\begin{hdlporttable}
clk
\_
125m
\_
gtp
\_
p
\_
i
&
in
&
1
&
\multirowpar
{
2
}{
125MHz GTP
...
...
doc/HDLdoc/wrc_ports.tex
View file @
5cf05621
\subsection
{
Ports
}
\subs
ubs
ection
{
Ports
}
\label
{
sec:wrc
_
ports
}
%\begin{figure}[ht]
...
...
doc/
HDLdoc/
fig/basic_top.pdf
→
doc/fig/basic_top.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/basic_wrf_cycle.pdf
→
doc/fig/basic_wrf_cycle.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/basic_wrf_cycle_err.pdf
→
doc/fig/basic_wrf_cycle_err.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/basic_wrf_cycle_sel.pdf
→
doc/fig/basic_wrf_cycle_sel.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/basic_wrf_cycle_simple.pdf
→
doc/fig/basic_wrf_cycle_simple.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/basic_wrf_data.pdf
→
doc/fig/basic_wrf_data.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/oob_rx.pdf
→
doc/fig/oob_rx.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/oob_tx.pdf
→
doc/fig/oob_tx.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/status.pdf
→
doc/fig/status.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/wrpc_board.pdf
→
doc/fig/wrpc_board.pdf
View file @
5cf05621
File moved
doc/
HDLdoc/
fig/wrpc_board.svg
→
doc/fig/wrpc_board.svg
View file @
5cf05621
File moved
doc/wrpc.tex
View file @
5cf05621
...
...
@@ -19,6 +19,73 @@ basicstyle=\footnotesize\ttfamily, backgroundcolor=\color{light-gray}, label=lst
\usepackage
[T1]
{
fontenc
}
\usepackage
{
lmodern
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage
{
graphicx
}
\usepackage
{
colortbl
}
\usepackage
{
array
}
\usepackage
{
multirow
}
\newcommand
{
\newparagraph
}
[1]
{
\paragraph
{
#1
}
\mbox
{}
\\
}
\definecolor
{
wrlblue
}{
RGB
}{
165,195,210
}
\definecolor
{
wrlgray
}{
RGB
}{
209,211,212
}
\newcommand
{
\multirowpar
}
[2]
{
\multirow
{
#1
}{
\hsize
}{
\parbox
{
\hsize
}{
\strut\raggedright
#2
\strut
}}
}
\newcommand
{
\hdltablesection
}
[1]
{
\multicolumn
{
4
}{
|c|
}{
\bf\small
#1
}
}
\newcolumntype
{
L
}
[1]
{
>
{
\raggedright\let\newline\\\arraybackslash\hspace
{
0pt
}}
m
{
#1
}}
\newcolumntype
{
M
}
[1]
{
>
{
\raggedright\let\newline\\\arraybackslash\hspace
{
0pt
}
\ttsmall
}
m
{
#1
}}
\newcolumntype
{
C
}
[1]
{
>
{
\centering\let\newline\\\arraybackslash\hspace
{
0pt
}}
m
{
#1
}}
\newcolumntype
{
D
}
[1]
{
>
{
\centering\let\newline\\\arraybackslash\hspace
{
0pt
}
\ttsmall
}
m
{
#1
}}
\newenvironment
{
hdlparamtable
}{
\let\underscore\_
\renewcommand
{
\_
}{
\underscore\allowbreak
}
\setlength
{
\extrarowheight
}{
1pt
}
\begin{center}
\begin{longtable}
{
|M
{
.2
\textwidth
}
|C
{
.09
\textwidth
}
|D
{
.11
\textwidth
}
|L
{
.5
\textwidth
}
|
}
\firsthline
\rowcolor
{
wrlblue
}
\bf
{
name
}
&
\bf
{
type
}
&
\bf
{
default
}
&
\bf
{
description
}
\\
\hline
\endhead
}{
\lasthline
\end{longtable}
\end{center}
}
\newenvironment
{
hdlporttable
}{
\let\underscore\_
\renewcommand
{
\_
}{
\underscore\allowbreak
}
\setlength
{
\extrarowheight
}{
1pt
}
\begin{center}
\begin{longtable}
{
|M
{
.25
\textwidth
}
|C
{
.05
\textwidth
}
|D
{
.05
\textwidth
}
|L
{
.55
\textwidth
}
|
}
\firsthline
\rowcolor
{
wrlblue
}
\bf
{
name
}
&
\bf
{
dir
}
&
\bf
{
size
}
&
\bf
{
description
}
\\
\hline
\endhead
}{
\lasthline
\end{longtable}
\end{center}
}
\def
\wrpcrelease
{
for-tests
}
%\def \wrpcrelease {wrpc-v4.0}
\newcommand
{
\tts
}
[1]
{
\texttt
{
\small
{
#1
}}}
% same as \tts{}, without argument
\newcommand
{
\ttsmall
}{
\ttfamily\small
}
\newcommand
{
\hrefwrpc
}
[1]
{
\tts
{
\href
{
http://www.ohwr.org/projects/wr-cores/repository/entry/#1?rev=
\wrpcrelease
}{
#1
}}}
\begin{document}
\input
{
version.tex
}
...
...
@@ -1286,6 +1353,14 @@ processed by the WRPC, class 6 is used for Streamers traffic, class 7 is used
for Etherbone traffic (see HDL documentation for boards HDL modules and
selection between Streamers, Etherbone and Plain modes).
% ##########################################################################
\newpage
\input
{
HDLdoc/intro
}
\input
{
HDLdoc/wrc
_
core
}
\input
{
HDLdoc/wrc
_
platform
}
\input
{
HDLdoc/wrc
_
board
}
% ##########################################################################
\newpage
\section
{
Troubleshooting
}
...
...
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