Verilog Code of Decoder | 3 to 8 Decoder Verilog Code

Verilog Code of Decoder

3 to 8 Decoder Verilog Code

In this post we are going to share with you the verilog code of decoder. As you know, a decoder asserts its output line based on the input. For a 3 : 8 decoder, total number of input  lines is 3 and total  number of output lines is 8. Based on the input, only one output line will be at logic high.

The verilog code for 3:8 decoder with enable logic is given below.

3:8 Decoder Verilog Code

 

The Test bench for 3:8 Decoder is given below.

3:8 Decoder Test Bench

 

The output is is given below.

decoder simulation

 

If you have any query/suggestion please feel free to comment below the post.

 

 

Leave a Reply

avatar
  Subscribe  
Notify of