Mapping Cores on Network-on-Chip