praveenvanaparthy
Newbie level 6
how to design 8 to 256 decoder ..
any simple logic is there to write code in verilog ..
any simple logic is there to write code in verilog ..
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
how to design 8 to 256 decoder ..
any simple logic is there to write code in verilog ..
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