//----------------------------------------------------- // Имя модуля : decoder_using_assign // Имя файла : decoder_using_assign.v // Функц. назначение : Дешифратор с использованием case // Программист : www.portal-ed.ru //----------------------------------------------------- module decoder_using_assign ( binary_in , // 4-х битный вход decoder_out , // 16-ти битный выход enable // Разрешение работы шифратора ); 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