aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-02-09 14:54:07 +0000
committerwhitequark <whitequark@whitequark.org>2020-02-09 14:54:07 +0000
commit161eba253fdcbd01b608207f4d1643b74f383e5d (patch)
treebcb3277510d44e0675d8612006acfeacb9863479
parent2e8d6ec0b06b4e51e222c15c8049130bc264ae57 (diff)
downloadyosys-161eba253fdcbd01b608207f4d1643b74f383e5d.tar.gz
yosys-161eba253fdcbd01b608207f4d1643b74f383e5d.tar.bz2
yosys-161eba253fdcbd01b608207f4d1643b74f383e5d.zip
manual: explain RTLIL::Wire::{upto,offset}.
-rw-r--r--manual/CHAPTER_Overview.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/manual/CHAPTER_Overview.tex b/manual/CHAPTER_Overview.tex
index 3009bf2c0..be37d8d39 100644
--- a/manual/CHAPTER_Overview.tex
+++ b/manual/CHAPTER_Overview.tex
@@ -234,6 +234,8 @@ An RTLIL::Wire object has the following properties:
\item The wire name
\item A list of attributes
\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)
\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
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:
\begin{itemize}