I would like to build a circuit that follows the attached Logic.png; however, I am not sure how to do it.

So what we have are 3 control signals that route my digital input to ONE OR MANY digital outputs.

I have considered using a Demux but from what I understand, it can only send the input to one output? It can't ever send to more than one output at a time?

I believe one can do it using simple discrete logic (AND, OR, etc), but would like some help building the logic as I am new to this.

I'd like to stick to discrete/specialized logic aka no mcu. It'd be great if someone can help me out.