Code Monkey home page Code Monkey logo

simulation-project--digital-electronics's Introduction

DESIGN AND SIMULATE 8:1 MULTIPLEXER USING VERILOG

AIM:

To design a 8:1 multiplexer and verify its truth table in Quartus Prime using Verilog programming,and validate its outputs.

HARDWARE REQUIRED:

Hardware – PCs, Cyclone II , USB flasher.

Software – Quartus prime.

Procedure

Step 1: Open Quartus Prime and select new project . Open new file at the verilog.

Step 2: Module Declaration. Module should have the file name.

Step 3: Input-Output Delecaration.

Step 4: Within the module, create a combinational logic block using a case statement to select the appropriate input based on the select inputs.

Step 5: End the module.

Step 6: Run the program and choose RTL viewer to get RTL realization.

Step 7: Verifying the output by truthtable.

THEORY:

What is a Multiplexer

The multiplexer is a device that has multiple inputs and single line output. The select lines determine which input is connected to the output, and also increase the amount of data that can be sent over a network within a certain time. It is also called a data selector.

Multiplexers are capable of handling both analog and digital applications. In analog applications, multiplexers are made up of relays and transistor switches, whereas in digital applications, the multiplexers are built from standard logic gates. When the multiplexer is used for digital applications, it is called a digital multiplexer.

asin

The single-pole multi-position switch is a simple example of a non-electronic circuit of the multiplexer, and it is widely used in many electronic circuits. The multiplexer is used to perform high-speed switching and is constructed by electronic components.

What is 8:1 Multiplexer

In the 8:1 multiplexer, there are total eight inputs, i.e., A0, A1, A2, A3, A4, A5, A6, and A7, 3 selection lines, i.e., S0, S1and S2 and single output, i.e., Y. On the basis of the combination of inputs that are present at the selection lines S0, S1, and S2, one of these 8 inputs are connected to the output. The block diagram and the truth table of the 8×1 multiplexer are given below.

WhatsApp Image 2023-05-30 at 2 38 51 PM

A multiplexer is a digital circuit that selects one input from multiple inputs based on the select inputs. The 8:1 MUX has 8 data inputs, 3 select inputs, and 1 output. The select inputs determine which data input is routed to the output.

TRUTH TABLE:

WhatsApp Image 2023-05-30 at 2 38 51 PM (1)

The logical expression of the term Y is as follows:

Y=S0'.S1'.S2'.A0+S0.S1'.S2'.A1+S0'.S1.S2'.A2+S0.S1.S2'.A3+S0'.S1'.S2 A4+S0.S1'.S2 A5+S0'.S1.S2 .A6+S0.S1.S3.A7

LOGIC DIAGRAM:

Logical circuit of the above expression is given below:

WhatsApp Image 2023-05-30 at 2 38 51 PM (2)

PROGRAM:

NAME:DHANUMALYA D
REGISTER NUMBER:212222230030

module muxx(a,s,y);
input[7:0]a;
input[2:0]s;
output reg y;
always @ (a,s)
begin
   case(s)
   3'b000:y=a[0];
	3'b001:y=a[1];
	3'b010:y=a[2];
	3'b011:y=a[3];
	3'b100:y=a[4];
	3'b101:y=a[5];
	3'b110:y=a[6];
	3'b111:y=a[7];
   endcase
end
endmodule

NETLIST DIAGRAM:

DE SA21

TIMING DIAGRAM:

DE SA-22

RESULT:

Thus the 8:1 multiplexer has been implemented in Quartus Prime and output is verified by using Verilog programming through its truth table.

simulation-project--digital-electronics's People

Contributors

dhanudhanaraj avatar anishkumar-embedded avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.