spydrnet.Definition.create_port

Definition.create_port(name=None, properties=None, is_downto=None, is_scalar=None, lower_index=None, direction=None, pins=None)[source]

Create a port, add it to the definition, and return that port.

Parameters:
  • name - (str) the name of this instance

  • properties - (dict) the dictionary which holds the properties

  • id_downto - (bool) set the downto status. Downto is False if the right index is higher than – the left one, True otherwise

  • is_scalar - (bool) set the scalar status. Return True if the item is a scalar False – otherwise.

  • lower_index - (int) get the value of the lower index of the array.

  • direction - (Enum) Define the possible directions for a given port. (UNDEFINED, INOUT, IN, – OUT)

  • pins - (int) Create number of pins in the newly created port