HiRA: A Methodology for Deadlock Free Routing in Hierarchical Networks on Chip