@@ -173,7 +173,7 @@ Regular signals
173173
174174
175175 .. attribute :: driven
176-
176+
177177 Writable attribute that can be used to indicate that the signal is supposed to
178178 be driven from the MyHDL code, and possibly how it should be declared in Verilog after
179179 conversion. The allowed values are ``'reg' ``, ``'wire' ``, ``True `` and ``False ``.
@@ -182,9 +182,9 @@ Regular signals
182182 whether and how a signal is driven. This occurs when the signal is driven from
183183 user-defined code. ``'reg' `` and ``'wire' `` are "true" values that
184184 permit finer control for the Verilog case.
185-
185+
186186 .. attribute :: read
187-
187+
188188 Writable boolean attribute that can be used to indicate that the signal is read.
189189
190190 This attribute is useful when the converter cannot infer automatically
@@ -195,7 +195,7 @@ Regular signals
195195
196196 .. method :: Signal.__call__(left[, right=None])
197197
198- This method returns a :class: `_SliceSignal ` shadow signal.
198+ This method returns a :class: `_SliceSignal ` shadow signal.
199199
200200
201201.. class :: ResetSignal(val, active, async)
@@ -210,7 +210,7 @@ Regular signals
210210 This class should be used in conjunction with the :func: `always_seq `
211211 decorator.
212212
213-
213+
214214Shadow signals
215215^^^^^^^^^^^^^^
216216
@@ -234,21 +234,21 @@ Shadow signals
234234
235235.. class :: ConcatSignal(*args)
236236
237- This class creates a new shadow signal of the concatenation of its arguments.
237+ This class creates a new shadow signal of the concatenation of its arguments.
238238
239239 You can pass an arbitrary number of arguments to the constructor. The
240240 arguments should be bit-oriented with a defined number of bits. The following
241241 argument types are supported: :class: `intbv ` objects with a defined bit width,
242- :class: `bool ` objects, signals of the previous objects, and bit strings.
242+ :class: `bool ` objects, signals of the previous objects, and bit strings.
243243
244244 The new signal follows the value changes of the signal arguments. The non-signal
245- arguments are used to define constant values in the concatenation.
245+ arguments are used to define constant values in the concatenation.
246246
247247.. class :: TristateSignal(val)
248248
249249 This class is used to construct a new tristate signal. The
250250 underlying type is specified by the *val *
251- parameter.
251+ parameter.
252252 It is a Signal subclass and has the usual attributes, with
253253 one exception: it doesn't support the ``next ``
254254 attribute. Consequently, direct signal assignment to a tristate
@@ -389,7 +389,7 @@ generators from local generator functions.
389389
390390 def _gen_func()
391391 while True:
392- yield event1, event2, ...
392+ yield event1, event2, ...
393393 _func()
394394 ...
395395 inst = _gen_func()
@@ -439,10 +439,10 @@ The :class:`intbv` class
439439
440440 This class represents :class: `int `\ -like objects with some
441441 additional features that make it suitable for hardware
442- design.
442+ design.
443443
444- The *val * argument can be an :class: `int `, a
445- :class: ` long `, an :class: ` intbv ` or a bit string (a string with
444+ The *val * argument can be an :class: `int `, an :class: ` intbv `
445+ or a bit string (a string with
446446 only '0's or '1's). For a bit string argument, the value is
447447 calculated as in ``int(bitstring, 2) ``. The optional *min * and
448448 *max * arguments can be used to specify the minimum and maximum
@@ -484,10 +484,10 @@ logical, and conversion operations as :class:`int` objects. See
484484http://www.python.org/doc/current/lib/typesnumeric.html for more information on
485485such operations. In all binary operations, :class: `intbv ` objects can work
486486together with :class: `int ` objects. For mixed-type numeric operations, the
487- result type is an :class: `int ` or a :class: ` long ` . For mixed-type bitwise
487+ result type is an :class: `int `. For mixed-type bitwise
488488operations, the result type is an :class: `intbv `.
489489
490- In addition, :class: `intbv ` supports a number of sequence operators.
490+ In addition, :class: `intbv ` supports a number of sequence operators.
491491In particular, the :func: `len ` function returns the object's bit width. Furthermore,
492492:class: `intbv ` objects support indexing and slicing operations:
493493
@@ -552,11 +552,11 @@ The :class:`modbv` class
552552 Instead of throwing an exception when those constraints are exceeded,
553553 the value of :class: `modbv ` objects wraps around according to the
554554 following formula::
555-
555+
556556 val = (val - min) % (max - min) + min
557-
557+
558558 This formula is a generalization of modulo wrap-around behavior that
559- is often useful when describing hardware system behavior.
559+ is often useful when describing hardware system behavior.
560560
561561The :func: `enum ` factory function
562562^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -610,12 +610,12 @@ useful for hardware description.
610610
611611 The following argument types are supported: :class: `intbv ` objects with a
612612 defined bit width, :class: `bool ` objects, signals of the previous objects, and
613- bit strings. All these objects have a defined bit width.
613+ bit strings. All these objects have a defined bit width.
614614
615- The first argument *base * is special as it does not need to have a
615+ The first argument *base * is special as it does not need to have a
616616 defined bit width. In addition to
617- the previously mentioned objects, unsized :class: `intbv `, :class: `int ` and
618- :class: ` long ` objects are supported, as well as signals of such objects.
617+ the previously mentioned objects, unsized :class: `intbv ` and :class: `int `
618+ objects are supported, as well as signals of such objects.
619619
620620 :rtype: :class: `intbv `
621621
@@ -748,7 +748,7 @@ Conversion
748748 ``func(*args, **kwargs) ``. It can be assigned to an instance name.
749749 The top-level instance name and the basename of the Verilog
750750 output filename is ``func.func_name `` by default.
751-
751+
752752 :func: `toVHDL ` has the following attributes:
753753
754754 .. attribute :: name
@@ -767,17 +767,17 @@ Conversion
767767 VHDL output. When a string is assigned to it, it will be copied
768768 to the appropriate place in the output file.
769769
770- .. attribute :: library
770+ .. attribute :: library
771771
772772 This attribute can be used to set the library in the VHDL output
773- file. The assigned value should be a string. The default
773+ file. The assigned value should be a string. The default
774774 library is ``work ``.
775775
776776 .. attribute :: std_logic_ports
777777
778778 This boolean attribute can be used to have only ``std_logic `` type
779779 ports on the top-level interface (when ``True ``) instead of the
780- default ``signed/unsigned `` types (when ``False ``, the default).
780+ default ``signed/unsigned `` types (when ``False ``, the default).
781781
782782
783783
@@ -819,7 +819,7 @@ Conversion output verification
819819
820820.. module :: myhdl.conversion
821821
822- MyHDL provides an interface to verify converted designs.
822+ MyHDL provides an interface to verify converted designs.
823823This is used extensively in the package itself to verify the conversion
824824functionality. This capability is exported by the package so that users
825825can use it also.
@@ -846,7 +846,7 @@ the :mod:`myhdl.conversion` package.
846846.. function :: analyze(func[, *args][, **kwargs])
847847
848848 Used like :func: `toVHDL() ` and :func: `toVerilog() `. It converts MyHDL code, and analyzes the
849- resulting HDL.
849+ resulting HDL.
850850 Used to verify whether the HDL output is syntactically correct.
851851
852852 This function has the following attribute:
0 commit comments