4 output reg [3:0] digit,
15 (dcount == 2'b00) ? latch[3:0] :
16 (dcount == 2'b01) ? latch[7:4] :
17 (dcount == 2'b10) ? latch[11:8] :
20 always @ (negedge clk) begin
21 if (clkdv == 31) begin
26 2'b00: digit <= 4'b1110;
27 2'b01: digit <= 4'b1101;
28 2'b10: digit <= 4'b1011;
29 2'b11: digit <= 4'b0111;
34 4'h0: out <= ~8'b11111100;
35 4'h1: out <= ~8'b01100000;
36 4'h2: out <= ~8'b11011010;
37 4'h3: out <= ~8'b11110010;
38 4'h4: out <= ~8'b01100110;
39 4'h5: out <= ~8'b10110110;
40 4'h6: out <= ~8'b10111110;
41 4'h7: out <= ~8'b11100000;
42 4'h8: out <= ~8'b11111110;
43 4'h9: out <= ~8'b11110110;
44 4'hA: out <= ~8'b11101110;
45 4'hB: out <= ~8'b00111110;
46 4'hC: out <= ~8'b10011100;
47 4'hD: out <= ~8'b01111010;
48 4'hE: out <= ~8'b10011110;
49 4'hF: out <= ~8'b10001110;