0% found this document useful (0 votes)
46 views3 pages

Ece 424 - Introduction To Vlsi Design + Lab Laboratory Work 6

This document provides instructions for Laboratory Work 6 on understanding multiplexers, decoders, and encoders through VHDL code. Students will write behavioral VHDL codes for a 2x1 multiplexer and simulate the results. They will then write a 4x1 multiplexer in a new project. Using components, students can write a 4x1 multiplexer using three 2x1 multiplexers. The document also covers writing VHDL codes for a 2x4 decoder and simulating the results. Students are assigned homework to write a 16x1 multiplexer using 4x1 multiplexers as components and to write a 3x8 decoder using a for loop.

Uploaded by

Dhiresh Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views3 pages

Ece 424 - Introduction To Vlsi Design + Lab Laboratory Work 6

This document provides instructions for Laboratory Work 6 on understanding multiplexers, decoders, and encoders through VHDL code. Students will write behavioral VHDL codes for a 2x1 multiplexer and simulate the results. They will then write a 4x1 multiplexer in a new project. Using components, students can write a 4x1 multiplexer using three 2x1 multiplexers. The document also covers writing VHDL codes for a 2x4 decoder and simulating the results. Students are assigned homework to write a 16x1 multiplexer using 4x1 multiplexers as components and to write a 3x8 decoder using a for loop.

Uploaded by

Dhiresh Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ECE 424 INTRODUCTION TO VLSI DESIGN + LAB

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;

Write the codes in figure 2 by opening a new project


on your computer. Simulate it and verify the results
by using simulation result.

Then write a 4x1 multiplexer by using this


information. Open a new project for this program.
Dont use the same project folder.

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

Write the codes in Figure 6 and simulate


it to verify that this code is working as a
2x4 decoder.
Write also a 4x2 encoder and simulate it
by using this information.

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!

Prepared By: brahim BOZKURT


e-mail: [email protected]

You might also like