To write a VHDL code for 1 to 8 demux using signal assignment statement we need the logic diagram and the truth table of 1 to 8 demux. After simulation using Xilinx software the output of the test bench waveform is shown below. Logic Diagram Truth Table VHDL Code Test bench Waveform (Output)