spydrnet.Definition.create_cable

Definition.create_cable(name=None, properties=None, is_downto=None, is_scalar=None, lower_index=None, wires=None)[source]

Create a cable, add it to the definition, and return the cable.

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.

  • wires - (int) Create number of wires in the newly created cable