Look up the port names in the session when generating an architecture.