Re: what is the exact difference between decoder and demulti
It will look very much like the decoder. I think only difference is:
In the Demux you select one of outputs and drive it by the input.
DEMUX(i, s[0:1], o[0:3]) -->
if (s=00) o[0] = i;
if (s=01) o[1] = i;
if (s=10) o[2] = i;
if (s=11) o[3] = i;
But in the decoder you activate one of outputs based on decoded inputs.
Decoder(s[0:1], o[0:3]) -->
if (s=00) o[0:3] = 1000;
if (s=01) o[0:3] = 0100;
if (s=10) o[0:3] = 0010;
if (s=11) o[0:3] = 0001;
RGDS
KH