`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 10:02:35 04/20/2020 // Design Name: // Module Name: mult_module // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // ////////////////////////////////////////////////////////////////////////////////// module TrigInt2Mux #( parameter PGenNum = 7 ) ( input Rst_i, input [3:0] MuxCtrl_i, input [PGenNum-1:0] PulseBus_i, output MuxOut_o ); //================================================================================ // LOCALPARAM //================================================================================ // REG/WIRE reg muxOut; //================================================================================ // ASSIGNMENTS assign MuxOut_o = muxOut; //================================================================================ // CODING always @(*) begin if (!Rst_i) begin muxOut = PulseBus_i[MuxCtrl_i]; end else begin muxOut = 1'b0; end end endmodule