Connecting a signal to a pin in Quartus
The pin planner has a list of all ports defined in the toplevel design element, taken from compilation output. You compile once, get a somewhat random assignment of pins, then modify that in the pin planner.