Hardware block to determine if a number is a multiple of 8
If you have that number in binary (say, on a parallel bus), it's really easy: A binary number is divisible by 8 if the three least significant bits are 0. So you could simply do 
NOT((bit0 OR bit 1) OR bit2).