Some embodiments provide a method of routing nets in a region of an integrated-circuit
layout. This method initially identifies a characteristic of the region, and then
selects a wiring model from a set of wiring models, based on the identified characteristic.
Each wiring models specifies a set of routing directions. The method then routes
the nets based on the selected wiring model.