Don't cares compare

In reply to moshiko:

You want to use casez statement instead of a plain case statement. “casez” uses a convention that a bit that is “z” is a don’t-care (the ? character in a numeric literal is the same as a z).