74147: 10-Line to 4-Line Priority Encoder 74148: 8-Line to 3-Line Priority Encoder
Two of my favorite TTL chips.