Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to design 8 to 256 decoder..

Status
Not open for further replies.
how to design 8 to 256 decoder ..

There are various ways to design a 8-to-256 decoder.
1. Using 3-to-8 decoder.
2. Using 4-to-16 decoder.
and many.
many logic can be applied to this problem.

any simple logic is there to write code in verilog ..

You can make a 3-to-8 decoder and instantiate them to make a 8-to-256 decoder.A very simple logic for 3-to-8 decoder is given below.

Code:
module decoder (Out, In);
output [7:0] Out;
input  [2:0] In;
reg    [7:0] Out;

always @ (In)
begin
case (In)
0 : Out=8'b00000001;
0 : Out=8'b00000010;
0 : Out=8'b00000100;
0 : Out=8'b00001000;
0 : Out=8'b00010000;
0 : Out=8'b00100000;
0 : Out=8'b01000000;
0 : Out=8'b10000000;
default : Out=8'bx;
endcase

endmodule
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top