Skip to content

Commit 0fffc13

Browse files
committed
update manual
1 parent ac1b697 commit 0fffc13

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

doc/src/trm/lxp32-trm.tex

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,12 @@ \subsection{Control register}
246246
8 & Interrupt 0 wake-up flag \\
247247
& \ldots \\
248248
15 & Interrupt 7 wake-up flag \\
249-
31--16 & \emph{Reserved} \\
249+
16 & Interrupt 0 level-sensitive flag \\
250+
& \ldots \\
251+
23 & Interrupt 7 level-sensitive flag \\
252+
24 & Interrupt 0 invert flag \\
253+
& \ldots \\
254+
31 & Interrupt 7 invert flag \\
250255
\bottomrule
251256
\end{tabularx}
252257
\end{table}
@@ -255,6 +260,23 @@ \subsection{Control register}
255260

256261
Wake-up flag marks the interrupt as a \emph{wake-up interrupt} (see below).
257262

263+
Level-sensitive and invert flags control trigger conditions (Table \ref{tab:trigger}).
264+
265+
\begin{table}[htbp]
266+
\caption{Interrupt trigger conditions}
267+
\label{tab:trigger}
268+
\begin{tabularx}{\textwidth}{llL}
269+
\toprule
270+
Level-sensitive & Invert & Trigger condition \\
271+
\midrule
272+
0 & 0 & Rising edge \\
273+
0 & 1 & Falling edge \\
274+
1 & 0 & High level \\
275+
1 & 1 & Low level \\
276+
\bottomrule
277+
\end{tabularx}
278+
\end{table}
279+
258280
Like other registers, \code{cr} is zero-initialized during the CPU reset, meaning that no interrupts are initially enabled.
259281

260282
\subsection{Invoking interrupt handlers}
@@ -502,7 +524,7 @@ \section{WISHBONE data bus}
502524
\section{Interrupts}
503525
\label{sec:interrupts}
504526

505-
\lxp{} registers an interrupt condition when the corresponding request signal goes from \code{0} to \code{1}. Transitions from \code{1} to \code{0} are ignored. All interrupt request signals must be synchronous with the system clock (\signal{clk\_i}); if coming from an asynchronous source, they must be synchronized using a sequence of at least two flip-flops clocked by \signal{clk\_i}. These flip-flops are not included in the \lxp{} core in order not to increase interrupt processing delay for interrupt sources that are inherently synchronous. Failure to properly synchronize interrupt request signals will cause timing violations that will manifest itself as intermittent, hard to debug faults.
527+
All interrupt request signals must be synchronous with the system clock (\signal{clk\_i}); if coming from an asynchronous source, they must be synchronized using a sequence of at least two flip-flops clocked by \signal{clk\_i}. These flip-flops are not included in the \lxp{} core in order not to increase interrupt processing delay for interrupt sources that are inherently synchronous. Failure to properly synchronize interrupt request signals will cause timing violations that will manifest itself as intermittent, hard to debug faults.
506528

507529
\section{Synthesis and optimization}
508530
\label{sec:synthesis}

0 commit comments

Comments
 (0)