Compilation
CompiledPort(port, assignment)
Bases: Port
A port object together with the assignment it exposes.
Note
This class is not designed to be instantiated directly.
PARAMETER | DESCRIPTION |
---|---|
port
|
port to compile
TYPE:
|
assignment
|
assignment to assign to the port
TYPE:
|
Source code in psymple/build/compiled_ports.py
CompiledPortedObject(name, parsing_locals={}, **kwargs)
Bases: CompositePortedObject
A ported object with compiled ports store exposable assignments, together with internal assignments.
Note:
This class should not be instantiated on its own. It is formed from the compile
methods
of 1PortedObject1 subclasses.
PARAMETER | DESCRIPTION |
---|---|
name
|
a string which must be unique for each
TYPE:
|
parsing_locals
|
a dictionary mapping strings to
TYPE:
|
**kwargs
|
arguments passed to super().init(). No user arguments should be supplied.
DEFAULT:
|
Source code in psymple/build/ported_objects.py
get_assignments()
Returns all assignments of self.
- The first return value is all assignments at variable ports and all internal variable assignments,
- The second return value is all assignments at output ports and all internal parameter assignments.
Source code in psymple/build/ported_objects.py
get_required_inputs()
Returns the input parameters of self
which do not have a default value.