BCD4028, Taken from the data sheet. I was hoping making it would help me understand it, but too many interconnected logic parts that I just ended up copying and not fully understanding. Now that it exists, I hope it will help seeing the active/inactive lines.