0% found this document useful (0 votes)
3K views2 pages

Verilog Code For Decoder

The document provides a Verilog code and schematic diagram for a 2:4 decoder. The Verilog code defines a module with two inputs (a and b) and four outputs (y[3:0]). It uses NOT, AND gates to decode the inputs such that only one output is high based on the input values. The schematic diagram depicts the logic gate implementation of the 2:4 decoder.

Uploaded by

meaow88
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views2 pages

Verilog Code For Decoder

The document provides a Verilog code and schematic diagram for a 2:4 decoder. The Verilog code defines a module with two inputs (a and b) and four outputs (y[3:0]). It uses NOT, AND gates to decode the inputs such that only one output is high based on the input values. The schematic diagram depicts the logic gate implementation of the 2:4 decoder.

Uploaded by

meaow88
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

VERILOG CODE FOR 2:4DECODER

module deco1(y, a,b);

output [3:0] y;

input a,b;

not(a_bar,a),(b_bar,b);

and(y[0],a_bar,b_bar),(y[1],a_bar,b),(y[2],a,b_bar),(y[3],a,b);

endmodule

(a)

(b)

FIG SCHEMATIC DIAGRAM FOR 2:4DECODER


FIG SCHEMATIC DIAGRAM FOR 2:4DECODER

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy