code: def walkSignalPorts(rootPort: LPort):
      
      if rootPort.children:
          for ch in rootPort.children:
              yield from walkSignalPorts(ch)
      else:
          yield rootPort
docs: recursively walk ports without any children