chipflow_lib.platforms.utils#
Attributes#
Classes#
Amaranth Signtaure used to decorate wires that would |
Functions#
|
|
|
|
|
|
|
Module Contents#
- chipflow_lib.platforms.utils.PIN_ANNOTATION_SCHEMA = ''#
- class chipflow_lib.platforms.utils.PinSignature(direction, width=1, all_have_oe=False, init=None)#
Bases:
amaranth.lib.wiring.Signature
Amaranth Signtaure used to decorate wires that would usually be brought out onto a port on the package.
direction: Input, Output or Bidir width: width of port all_have_oe: For Bidir ports, should Output Enable be per wire or for the whole port init: a const-castable object for the initial values of the port
- Parameters:
direction (amaranth.lib.io.Direction)
width (int)
all_have_oe (bool)
- property direction#
- width()#
- options()#
- annotations(*args)#
Annotate an interface object.
Subclasses of
Signature
may override this method to provide annotations for a corresponding interface object. The default implementation provides none.See
amaranth.lib.meta
for details.- Returns:
tuple()
- Return type:
iterable of
Annotation
- chipflow_lib.platforms.utils.OutputPinSignature(width, **kwargs)#
- chipflow_lib.platforms.utils.InputPinSignature(width, **kwargs)#
- chipflow_lib.platforms.utils.BidirPinSignature(width, **kwargs)#
- chipflow_lib.platforms.utils.PACKAGE_DEFINITIONS#
- chipflow_lib.platforms.utils.load_pinlock()#
- chipflow_lib.platforms.utils.top_interfaces(config)#