AND I wrote out the portmap for the mux4_bit wrong. May god have mercy on the soul of whoever has to understand this hacky code. Seriously, I'm a software guy for fuck's sake. There's GOT to be a better way to do some of this stuff that's more generalized.