prga.passes.translation module¶
-
class
prga.passes.translation.SwitchDelegate(context)¶ Bases:
prga.util.ObjectSwitch delegate choosing design-view switch modules for instantiation.
Parameters: context ( Context) –-
context¶
-
-
class
prga.passes.translation.Translation(top=None, *, create_blackbox_for_undefined_primitives=False)¶ Bases:
prga.passes.base.AbstractPassTranslate modules in abstract view to design view.
Parameters: top ( Module) – Top-level array in abstract view. The top array from the context is selected by defaultKeyword Arguments: create_blackbox_for_undefined_primitives ( bool) –Translationdoes not know how to translate primitives. By default, if the design view is not defined for a primitive, an error is raised. Ifcreate_blackbox_for_undefined_primitivesis set toTrue, an empty design view is created in this case.-
classmethod
_get_or_create_io(module, iotype, position=Position(0, 0), subtile=0)¶
-
_process_module(module, context, *, is_top=False)¶
-
create_blackbox_for_undefined_primitives¶
-
dependences¶ Passes that this pass depend on.
-
key¶ Key of this pass.
-
run(context)¶ Run the pass.
Parameters: context ( Context) – The context which manages all architecture data
-
top¶
-
classmethod