chipflow_lib.platforms.utils#

Attributes#

Classes#

PinSignature

Amaranth Signtaure used to decorate wires that would

Functions#

OutputPinSignature(width, **kwargs)

InputPinSignature(width, **kwargs)

BidirPinSignature(width, **kwargs)

load_pinlock()

top_interfaces(config)

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:
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)#