Home › Practice › RTL Design › A mail sorter
A mail sorter
EasyRTLcombinational
One letter arrives, and the address on it says which of four boxes it goes into. The other three boxes stay empty.
Concept first. A demultiplexer (demux) is a mux run backwards: one data input and several outputs. The select lines say which output receives the input, and all the other outputs show 0. With 2 select bits there are 4 outputs. Picture four lamps in a row: only the lamp whose number is on the select lines can light, and it lights only if the data input is 1.
What to build.
demux4(din, sel):dinis one bit,selis 2 bits.- Output
y[3:0]: bit numberselequalsdin, and every other bit is 0. - No clock.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.