/* * switch.v * Author: S. Klewin * * The assignment of one of the dedicated oscilloscope outputs is * controled by this module. In principle it just a multiplexer * for - in this version - 15 different outputs. */ module mux_Async( input reset, input [3:0] sw, input in01, input in02, input in03, input in04, input in05, input in06, input in07, input in08, input in09, input in10, input in11, input in12, input in13, input in14, input in15, output out); assign out = (reset == 1'b1) ? 1'b0: (sw == 4'd1) ? in01: (sw == 4'd2) ? in02: (sw == 4'd3) ? in03: (sw == 4'd4) ? in04: (sw == 4'd5) ? in05: (sw == 4'd6) ? in06: (sw == 4'd7) ? in07: (sw == 4'd8) ? in08: (sw == 4'd9) ? in09: (sw == 4'd10) ? in10: (sw == 4'd11) ? in11: (sw == 4'd12) ? in12: (sw == 4'd13) ? in13: (sw == 4'd14) ? in14: (sw == 4'd15) ? in15: 1'b0; endmodule