/* Example 3: Connect slide switches 0-7 to segments 0-7 of the rightmost digit. */ module switchsegs1(SW_IN,SEG_OUT,DIGIT_OUT); input [7:0] SW_IN; output [7:0] SEG_OUT; output [3:0] DIGIT_OUT; assign DIGIT_OUT = 4'b1110; // Show only in the rightmost digit. assign SEG_OUT = SW_IN; endmodule