Ece 424 - Introduction To Vlsi Design + Lab Laboratory Work 6
Ece 424 - Introduction To Vlsi Design + Lab Laboratory Work 6
LABORATORY WORK 6
In this laboratory work, we will try to understand multiplexers, decoders and encoders by
writing their vhdl codes.
Figure 1
1) Figure 1 is explaining the working principle of a 2x1 multiplexer. The digital logic
formula is also given in figure. We will write behavioral vhdl codes of this multiplexer
together;
Figure 2
2) If you want to use the programs that you had written before in a new project, you can
do it by adding a component to your project. You wrote a 4x1 mux during first part,
but you can also write this program by using 2x1 mux.
Figure 3 is explaining this condition. If you use three 2x1 mux, you
can create a 4x1 mux. To do this work by using 2x1 mux, write the
codes below in Figure 4 by opening a new project.
Figure 3
Figure 4
3) A 2 to 4 decoder generates an output signal on its output pins that is dependent on the
binary code applied to its inputs. Only one of the output pins is high at any time. For
'n' inputs there will be 2n outputs. E.g. 2 to 4, 3 to 8, 4 to 16 etc.
2
Figure 5
Figure 6
Homework 1: Write 16x1 multiplexer by using 4x1 mux as a component. After writing the
codes simulate it and verify the truth table of 16x1 mux.
Homework 2: Make a Google search about writing for - loop in vhdl. Then write 3x8 decoder
by using for loop. After writing the codes, simulate it.
Send me whole project folders. (Not screenshots or just codes)
Deadline: 17.12.2013 Tuesday, 21:00.
No late submission is going to be accepted!