chipflow_lib.platforms.silicon#

Classes#

SiliconPlatformPort

Represents an abstract library I/O port that can be passed to a buffer.

SiliconPlatform

Module Contents#

class chipflow_lib.platforms.silicon.SiliconPlatformPort(component, name, port, *, invert=False)#

Bases: amaranth.lib.io.PortLike

Represents an abstract library I/O port that can be passed to a buffer.

The port types supported by most platforms are SingleEndedPort and DifferentialPort. Platforms may define additional port types where appropriate.

Note

amaranth.hdl.IOPort is not an instance of amaranth.lib.io.PortLike.

Parameters:
  • component (str)

  • name (str)

  • port (chipflow_lib.platforms.utils.Port)

  • invert (bool)

wire(m, interface)#
Parameters:
property i#
property o#
property oe#
property direction#

Direction of the port.

Return type:

Direction

property pins#
property invert#
class chipflow_lib.platforms.silicon.SiliconPlatform(config)#
property ports#
instantiate_ports(m)#
Parameters:

m (amaranth.Module)

request(name=None, **kwargs)#
get_io_buffer(buffer)#
add_file(filename, content)#
build(elaboratable, name='top')#
default_clock(platform, clock, reset)#