mirror of https://github.com/YosysHQ/yosys.git
manual: explain RTLIL::Wire::{upto,offset}.
This commit is contained in:
parent
2e8d6ec0b0
commit
161eba253f
|
@ -234,6 +234,8 @@ An RTLIL::Wire object has the following properties:
|
||||||
\item The wire name
|
\item The wire name
|
||||||
\item A list of attributes
|
\item A list of attributes
|
||||||
\item A width (buses are just wires with a width > 1)
|
\item A width (buses are just wires with a width > 1)
|
||||||
|
\item Bus direction (MSB to LSB or vice versa)
|
||||||
|
\item Lowest valid bit index (LSB or MSB depending on bus direction)
|
||||||
\item If the wire is a port: port number and direction (input/output/inout)
|
\item If the wire is a port: port number and direction (input/output/inout)
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
@ -246,6 +248,11 @@ This makes some aspects of RTLIL more complex but enables Yosys to be used for
|
||||||
coarse grain synthesis where the cells of the target architecture operate on
|
coarse grain synthesis where the cells of the target architecture operate on
|
||||||
entire signal vectors instead of single bit wires.
|
entire signal vectors instead of single bit wires.
|
||||||
|
|
||||||
|
In Verilog and VHDL, busses may have arbitrary bounds, and LSB can have either
|
||||||
|
the lowest or the highest bit index. In RTLIL, bit 0 always corresponds to LSB;
|
||||||
|
however, information from the HDL frontend is preserved so that the bus will be
|
||||||
|
correctly indexed in error messages, backend output, constraint files, etc.
|
||||||
|
|
||||||
An RTLIL::Cell object has the following properties:
|
An RTLIL::Cell object has the following properties:
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|
Loading…
Reference in New Issue