Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
conv-common-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
level-conversion
conv-common-gw
Commits
dc4bfb25
Commit
dc4bfb25
authored
Sep 26, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Add info about fail-safe lines in LSR
parent
052a9c2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
9 deletions
+41
-9
conv-common-gw.tex
doc/conv-common-gw.tex
+23
-4
conv-regs.tex
doc/conv-regs.tex
+18
-5
No files found.
doc/conv-common-gw.tex
View file @
dc4bfb25
...
@@ -593,8 +593,8 @@ as part of \textit{conv\_regs} are intended to be active-high logic, so adaptati
...
@@ -593,8 +593,8 @@ as part of \textit{conv\_regs} are intended to be active-high logic, so adaptati
in logic external to the
\textit
{
conv
\_
common
\_
gw
}
when an external connection is needed.
in logic external to the
\textit
{
conv
\_
common
\_
gw
}
when an external connection is needed.
The inputs that connect to bits in the status register are shown in Table~
\ref
{
tbl:conv-regs-ext-inputs
}
.
The inputs that connect to bits in the status register are shown in Table~
\ref
{
tbl:conv-regs-ext-inputs
}
.
Should some of these inputs not be used, such as for example the
failsafe lines in the case of CONV-TTL-BLO~
\cite
{
conv-ttl-blo-ohwr
}
,
Should some of these inputs not be used, such as for example the
rear-panel failsafe lines in the case of
the corresponding lines should be connected to all-zeroes.
CONV-TTL-BLO~
\cite
{
conv-ttl-blo-ohwr
}
,
the corresponding lines should be connected to all-zeroes.
The
\textit
{
g
\_
board
\_
id
}
and
\textit
{
g
\_
gwvers
}
generics connect to registers in
The
\textit
{
g
\_
board
\_
id
}
and
\textit
{
g
\_
gwvers
}
generics connect to registers in
\textit
{
conv
\_
regs
}
as shown in Figure~
\ref
{
fig:bidr-gwvers
}
.
\textit
{
conv
\_
regs
}
as shown in Figure~
\ref
{
fig:bidr-gwvers
}
.
...
@@ -613,7 +613,9 @@ The \textit{g\_board\_id} and \textit{g\_gwvers} generics connect to registers i
...
@@ -613,7 +613,9 @@ The \textit{g\_board\_id} and \textit{g\_gwvers} generics connect to registers i
line
\_
front
\_
i
&
LSR.FRONT
&
State of front-panel channel lines at FPGA input
\\
line
\_
front
\_
i
&
LSR.FRONT
&
State of front-panel channel lines at FPGA input
\\
line
\_
inv
\_
i
&
LSR.FRONTINV
&
State of front-panel general-purpose inverter channels at FPGA input
\\
line
\_
inv
\_
i
&
LSR.FRONTINV
&
State of front-panel general-purpose inverter channels at FPGA input
\\
line
\_
rear
\_
i
&
LSR.REAR
&
State of rear-panel channel lines at FPGA input
\\
line
\_
rear
\_
i
&
LSR.REAR
&
State of rear-panel channel lines at FPGA input
\\
line
\_
rear
\_
fs
\_
i
&
LSR.REARFS
&
State of fail-safe rear-panel inputs (whether a cable is plugged in or not)
\\
line
\_
front
\_
fs
\_
i
&
LSR.FRONTFS
&
State of front-panel channel failsafe lines at FPGA input
\\
line
\_
inv
\_
fs
\_
i
&
LSR.FRONTINVFS
&
State of front-panel general-purpose inverter failsafe lines at FPGA input
\\
line
\_
rear
\_
fs
\_
i
&
LSR.REARFS
&
State of rear-panel input failsafe lines (whether a cable is plugged in or not)
\\
sw
\_
other
\_
i
&
OSWR
&
State of other on-board switches
\\
sw
\_
other
\_
i
&
OSWR
&
State of other on-board switches
\\
\hline
\hline
\end{tabular}
\end{tabular}
...
@@ -631,10 +633,27 @@ bits or fields in \textit{conv\_regs} are set to a 'safe' value of '0'. Consult
...
@@ -631,10 +633,27 @@ bits or fields in \textit{conv\_regs} are set to a 'safe' value of '0'. Consult
for details on how this is done and which are the fields concerned.
for details on how this is done and which are the fields concerned.
Note that the logic allows less than 6 pulse repetition channels, but not more.
Note that the logic allows less than 6 pulse repetition channels, but not more.
If
\textit
{
g
\_
nr
\_
chans
<
6
}
, then the rest of the bits are automatically set to '0',
If
\textit
{
g
\_
nr
\_
chans
$
<
$
6
}
, then the rest of the bits are automatically set to '0',
as in the case a
\textit
{
g
\_
with
\_*
}
generic is
\textit
{
false
}
. If
\textit
{
g
\_
nr
\_
chans
$
>
$
6
}
as in the case a
\textit
{
g
\_
with
\_*
}
generic is
\textit
{
false
}
. If
\textit
{
g
\_
nr
\_
chans
$
>
$
6
}
a synthesis error will be thrown.
a synthesis error will be thrown.
\subsubsection
{
Fail-safe lines in the line status register
}
The CONV-TTL-RS485~
\cite
{
conv-ttl-rs485-ohwr
}
board has a an extra RS-485 transceiver per each
channel input and output line, dedicated to detecting whether a line is in a fault state, or whether
a cable is not plugged in.
This in RS-485 parlance is called the fail-safe state and half the bits in the
line status register (LSR -- see Appendix~
\ref
{
app:conv-regs-lsr
}
) take their name after it. Designers of
future converter boards would implement similar features for all the inputs might want to implement a
similar feature on future converter boards. For this, bits are provided in the LSR as shown in Table~
\ref
{
tbl:conv-regs-ext-inputs
}
.
If no such feature exists, or if the feature is only implemented for one of the two panels (front or rear),
the non-used lines in Table~
\ref
{
tbl:conv-regs-ext-inputs
}
can simply be connected to all-zeroes.
Note that the register limits the user to six pulse repetition channels and four general-purpose inverter
channels. Should more be needed, another
\textit
{
conv
\_
common
\_
gw
}
module should be used, as shown in
Appendix~
\ref
{
app:more-than-six-chans
}
.
%==============================================================================
%==============================================================================
\subsection
{
MultiBoot
}
\subsection
{
MultiBoot
}
\label
{
subsec:multiboot
}
\label
{
subsec:multiboot
}
...
...
doc/conv-regs.tex
View file @
dc4bfb25
...
@@ -1522,11 +1522,11 @@ WRTAG
...
@@ -1522,11 +1522,11 @@ WRTAG
\begin{tabular}
{
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
}
\begin{tabular}
{
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
>
{
\centering\arraybackslash
}
p
{
1.5cm
}
}
31
&
30
&
29
&
28
&
27
&
26
&
25
&
24
\\
31
&
30
&
29
&
28
&
27
&
26
&
25
&
24
\\
\hline
\hline
\multicolumn
{
1
}{
|c
}{
-
}
&
-
&
-
&
-
&
-
&
-
&
-
&
\multicolumn
{
1
}{
c|
}{
-
}
\\
\multicolumn
{
6
}{
|c|
}{
\cellcolor
{
gray!25
}
REARFS[5:0]
}
&
\multicolumn
{
2
}{
|c|
}{
\cellcolor
{
gray!25
}
FRONTINVFS[3:2]
}
\\
\hline
\hline
23
&
22
&
21
&
20
&
19
&
18
&
17
&
16
\\
23
&
22
&
21
&
20
&
19
&
18
&
17
&
16
\\
\hline
\hline
\multicolumn
{
1
}{
|c
}{
-
}
&
-
&
\multicolumn
{
6
}{
|c|
}{
\cellcolor
{
gray!25
}
REAR
FS[5:0]
}
\\
\multicolumn
{
2
}{
|c|
}{
\cellcolor
{
gray!25
}
FRONTINVFS[1:0]
}
&
\multicolumn
{
6
}{
|c|
}{
\cellcolor
{
gray!25
}
FRONT
FS[5:0]
}
\\
\hline
\hline
15
&
14
&
13
&
12
&
11
&
10
&
9
&
8
\\
15
&
14
&
13
&
12
&
11
&
10
&
9
&
8
\\
\hline
\hline
...
@@ -1563,10 +1563,24 @@ Line state at board input\\ Bit 0 -- channel 1\\ Bit 1 -- channel 2\\
...
@@ -1563,10 +1563,24 @@ Line state at board input\\ Bit 0 -- channel 1\\ Bit 1 -- channel 2\\
\end{small}
\end{small}
\item
\begin{small}
\item
\begin{small}
{
\bf
{
\bf
FRONTFS
}
[
\emph
{
read-only
}
]: Front panel input failsafe state
\\
High if line is in failsafe mode (e.g., no cable plugged in)
\\
Bit 0 -- channel 1
\\
Bit 1 -- channel 2
\\
etc.
\end{small}
\item
\begin{small}
{
\bf
FRONTINVFS
}
[
\emph
{
read-only
}
]: Front panel inverter input failsafe state
\\
High if line is in failsafe mode (e.g., no cable plugged in)
\\
Bit 0 -- channel 1
\\
Bit 1 -- channel 2
\\
etc.
\end{small}
\item
\begin{small}
{
\bf
REARFS
REARFS
}
[
\emph
{
read-only
}
]:
I
nput failsafe state
}
[
\emph
{
read-only
}
]:
Rear panel i
nput failsafe state
\\
\\
High if line is in failsafe mode (no cable plugged in)
\\
Bit 0 -- channel 1
\\
Bit 1 -- channel 2
\\
etc.
High if line is in failsafe mode (
e.g.,
no cable plugged in)
\\
Bit 0 -- channel 1
\\
Bit 1 -- channel 2
\\
etc.
\end{small}
\end{small}
\item
\begin{small}
\item
\begin{small}
\textbf
{
Unimplemented bits
}
: write as '0', read undefined
\textbf
{
Unimplemented bits
}
: write as '0', read undefined
...
@@ -1574,7 +1588,6 @@ High if line is in failsafe mode (no cable plugged in)\\ Bit 0 -- channel 1
...
@@ -1574,7 +1588,6 @@ High if line is in failsafe mode (no cable plugged in)\\ Bit 0 -- channel 1
\end{itemize}
\end{itemize}
\vspace
{
11pt
}
\vspace
{
11pt
}
\pagebreak
\subsubsection
{
OSWR -- Other Switches Register
}
\subsubsection
{
OSWR -- Other Switches Register
}
\label
{
app:conv-regs-oswr
}
\label
{
app:conv-regs-oswr
}
...
...
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