/* Example 7: by karttu, Dec 12 2004. Show the binary number specified in the slide switches 0-7 in the 7-segment digit display in DECIMAL, not zero-prepended. The new number is not shown before the user presses the rightmost push button (signal PB_IN). */ module esim7(CLK,PB_IN,SW_IN,SEG_OUT,DIGIT_OUT); input CLK; input PB_IN; input [7:0] SW_IN; output [7:0] SEG_OUT; output [3:0] DIGIT_OUT; `define NUM {8'b0,SW_IN} shw16dec DECDISPLAY(CLK,PB_IN,`NUM,SEG_OUT,DIGIT_OUT); endmodule