1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

proof read

This commit is contained in:
jand 2003-02-20 11:50:55 +00:00
parent aba6da6d40
commit 26834e334f
2 changed files with 7 additions and 5 deletions

View File

@ -2,12 +2,12 @@
\section{Prerequisites}
You need a basic understanding of Python to use \myhdl\.
You need a basic understanding of Python to use \myhdl{}.
If you don't know Python, you will take comfort in knowing
that it is probably one of the easiest programming languages to
learn \footnote{You must be bored by such claims, but in Python's
learn~\footnote{You must be bored by such claims, but in Python's
case it's true.}. Learning Python is also one of the better time
investments that engineering professionals can make \footnote{I am not
investments that engineering professionals can make~\footnote{I am not
biased.}.
For beginners, \url{http://www.python.org/doc/current/tut/tut.html} is

View File

@ -236,7 +236,7 @@ suggest an integer with bit vector flavour.
Class \class{intbv} works transparently as an integer and with other
integer-like types. Like class \class{int}, it provides access to the
underlying a two's complement representation for bitwise
underlying two's complement representation for bitwise
operations. In addition, it is a mutable type that provides indexing
and slicing operations, and some additional bit-oriented support such
as concatenation.
@ -335,6 +335,8 @@ COSET = 0x55
def calculateHec(header):
""" Return hec for an ATM header, represented as an intbv.
The hec polynomial is 1 + x + x**2 + x**8.
"""
hec = intbv(0)
for bit in header[32:]:
@ -363,6 +365,6 @@ to avoid one-off count issues in practice. For example, the slice
\code{hex[8:]} has exactly \code{8} bits. Likewise, the slice
\code{hex[7:2]} has \code{7-2=5} bits. You can think about it as
follows: for a slice \code{[i:j]}, only bits below index \code{i} are
included, and index \code{j} is the last bit included.
included, and the bit with index \code{j} is the last bit included.