decoder_using_assign_v

decoder_using_assign_v - binary_in 4 bit binary input...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//----------------------------------------------------- // Design Name : decoder_using_assign // File Name : decoder_using_assign.v // Function : decoder using assign // Coder : Deepak Kumar Tala //----------------------------------------------------- module decoder_using_assign (
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: binary_in , // 4 bit binary input decoder_out , // 16-bit out enable // Enable for the decoder ); input [3:0] binary_in ; input enable ; output [15:0] decoder_out ; wire [15:0] decoder_out ; assign decoder_out = (enable) ? (1 << binary_in) : 16'b0 ; endmodule...
View Full Document

This note was uploaded on 09/29/2010 for the course GENERAL AR ECE 250 taught by Professor Drcapps during the Spring '10 term at N.C. State.

Ask a homework question - tutors are online