2
Most read
Verilog coding of DEMUX 1X8 using if else statement
module demux(d, sel, z);
input d;
input [2:0] sel;
output [7:0] z;
reg [7:0] z;
always @( d or sel)
begin
if( sel==3'b000)
z[0]=d;
else if( sel==3'b001)
z[1]=d;
else if( sel==3'b010)
z[2]=d;
else if( sel==3'b011)
z[3]=d;
else if( sel==3'b100)
z[4]=d;
else if( sel==3'b101)
z[5]=d;
else if( sel==3'b110)
z[6]=d;
else
z[7]=d;
end
endmodule
Verilog coding of DEMUX 1X8 using case statement
module demux(d, sel, z);
input d;
input [2:0] sel;
output [7:0] z;
reg [7:0] z;
always @( d or sel)
begin
case(sel)
3'b000 : z[0] = d;
3'b001 : z[1] = d;
3'b010 : z[2] = d;
3'b011 : z[3] = d;
3'b100 : z[4] = d;
3'b101 : z[5] = d;
3'b110 : z[6] = d;
3'b111 : z[7] = d;
endcase
end
endmodule

More Related Content

DOCX
4 bit uni shift reg
PPTX
Verilog operators.pptx
PPT
Verilog tutorial
PPTX
Verilog HDL
DOCX
Clinica
PDF
Verilog HDL CODES
PDF
Delays in verilog
PDF
Verilog full adder in dataflow & gate level modelling style.
4 bit uni shift reg
Verilog operators.pptx
Verilog tutorial
Verilog HDL
Clinica
Verilog HDL CODES
Delays in verilog
Verilog full adder in dataflow & gate level modelling style.

What's hot (20)

PPTX
Verilog
PPTX
Pass Transistor Logic
PPTX
Intel 8051 Programming in C
PPTX
Verilog presentation final
PDF
VLSI Lab manual PDF
PDF
Verilog coding of mux 8 x1
PPT
Crash course in verilog
PDF
Verilog VHDL code Decoder and Encoder
PDF
Verilog lab manual (ECAD and VLSI Lab)
PPTX
Wallace tree multiplier.pptx1
PDF
8 bit full adder
PPTX
2. block diagram and components of embedded system
PPTX
Radix-2 DIT FFT
PPTX
Stick digram by Euler Approach
PDF
DAC Interfacing with 8051.pdf
PPTX
MULTIPLEXER
PDF
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
PDF
System Verilog (Tutorial -- 2X1 Multiplexer)
PPTX
Radix 4 booth
Verilog
Pass Transistor Logic
Intel 8051 Programming in C
Verilog presentation final
VLSI Lab manual PDF
Verilog coding of mux 8 x1
Crash course in verilog
Verilog VHDL code Decoder and Encoder
Verilog lab manual (ECAD and VLSI Lab)
Wallace tree multiplier.pptx1
8 bit full adder
2. block diagram and components of embedded system
Radix-2 DIT FFT
Stick digram by Euler Approach
DAC Interfacing with 8051.pdf
MULTIPLEXER
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
System Verilog (Tutorial -- 2X1 Multiplexer)
Radix 4 booth
Ad

Viewers also liked (20)

PDF
Verilog VHDL code Multiplexer and De Multiplexer
PDF
Experiment write-vhdl-code-for-realize-all-logic-gates
PDF
Dutch media landscape 2015 Q4 update by Starcom
PDF
Ea conference st albert feb 2014
PDF
Aspire one series service guide
PDF
fdgdfgdfg
PDF
CV Roy Basoeki
PPT
PDF
Lulusan SMK PI class of 2014
PDF
Filtros de cabine
XLS
Ususnmptn2011
PDF
Creando Enlaces a Prueba de Penguin
PDF
Zhuangzi
PDF
C++ Chapter I
DOC
Configure h base hadoop and hbase client
PPTX
Rules around us
PPTX
Monografia fic
DOC
PDF
Chafer, 52 Bible Doctines: Man and sin part 2
PPTX
Miquel Martí i Pol
Verilog VHDL code Multiplexer and De Multiplexer
Experiment write-vhdl-code-for-realize-all-logic-gates
Dutch media landscape 2015 Q4 update by Starcom
Ea conference st albert feb 2014
Aspire one series service guide
fdgdfgdfg
CV Roy Basoeki
Lulusan SMK PI class of 2014
Filtros de cabine
Ususnmptn2011
Creando Enlaces a Prueba de Penguin
Zhuangzi
C++ Chapter I
Configure h base hadoop and hbase client
Rules around us
Monografia fic
Chafer, 52 Bible Doctines: Man and sin part 2
Miquel Martí i Pol
Ad

More from Rakesh kumar jha (10)

PDF
matlab code of shifting and folding of two sequences
PDF
MATLAB CODE OF Shifting sequence
PDF
Matlab implementation of fast fourier transform
PDF
Verilog code for decoder
PDF
VERILOG CODE FOR Adder
PDF
verilog code for logic gates
PDF
Reversible code converter
PPTX
Pin diode
PPTX
Schottky diode
matlab code of shifting and folding of two sequences
MATLAB CODE OF Shifting sequence
Matlab implementation of fast fourier transform
Verilog code for decoder
VERILOG CODE FOR Adder
verilog code for logic gates
Reversible code converter
Pin diode
Schottky diode

Verilog coding of demux 8 x1

  • 1. Verilog coding of DEMUX 1X8 using if else statement module demux(d, sel, z); input d; input [2:0] sel; output [7:0] z; reg [7:0] z; always @( d or sel) begin if( sel==3'b000) z[0]=d; else if( sel==3'b001) z[1]=d; else if( sel==3'b010) z[2]=d; else if( sel==3'b011) z[3]=d; else if( sel==3'b100) z[4]=d; else if( sel==3'b101) z[5]=d; else if( sel==3'b110) z[6]=d; else z[7]=d; end endmodule
  • 2. Verilog coding of DEMUX 1X8 using case statement module demux(d, sel, z); input d; input [2:0] sel; output [7:0] z; reg [7:0] z; always @( d or sel) begin case(sel) 3'b000 : z[0] = d; 3'b001 : z[1] = d; 3'b010 : z[2] = d; 3'b011 : z[3] = d; 3'b100 : z[4] = d; 3'b101 : z[5] = d; 3'b110 : z[6] = d; 3'b111 : z[7] = d; endcase end endmodule