Both are conducted jointly i.e. at the same time. Depending upon your rank in JEE (M) and (A), u can either select an NIT or IIT depending upon the available choices in locations as well as branches.
Thus u may get Chemical branch in a IIT and/or Mech. in a NIT at the same time, and will have to make a choice depending upon your preferences.