NAV BAr

Wednesday, March 8, 2017

3 to 8 Decoder

//DataFlow 3 to 8 Decoder

module decoder_3to8_dataflow(y,x);
output reg [7:0] y;
input [2:0] x;
always @ (x)

case (x)
3'b000:y=8'b00000001;
3'b001:y=8'b00000010;
3'b010:y=8'b00000100;
3'b011:y=8'b00001000;
3'b100:y=8'b00010000;
3'b101:y=8'b00100000;
3'b110:y=8'b01000000;
3'b111:y=8'b10000000;
endcase
endmodule

No comments:

Post a Comment