doc: arithmetic and logic actors

This commit is contained in:
Sebastien Bourdeauducq 2012-06-24 19:56:31 +02:00
parent fd233d5b3c
commit bbfa120e2f
2 changed files with 8 additions and 0 deletions

View File

@ -184,6 +184,12 @@ The ``Token`` class contains the following items:
Arithmetic and logic actors Arithmetic and logic actors
=========================== ===========================
The ``migen.actorlib.ala`` module provides arithmetic and logic actors for the usual integer operations.
If complex operation combinations are needed, the ``ComposableSource`` class can be used. It overloads Python operators to make them instantiate the arithmetic and logic actors and connect them into an existing network. This creates a small internal domain-specific language (DSL).
The ``ComposableSource`` class is a derivative of the ``ActorNode`` class (see :ref:`actornetworks`) and should be used in the place of the latter when the DSL feature is desired.
.. _busactors: .. _busactors:
Bus actors Bus actors

View File

@ -1,3 +1,5 @@
# TODO: merge this into ala + derive ComposableSource from ActorNode
from migen.flow.actor import * from migen.flow.actor import *
from migen.flow.plumbing import * from migen.flow.plumbing import *
from migen.flow.network import * from migen.flow.network import *