OpenCores
URL https://opencores.org/ocsvn/z80control/z80control/trunk

Subversion Repositories z80control

[/] [z80control/] [trunk/] [CII_Starter_USB_API_v1/] [HW/] [SEG7_LUT.v] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 tylerapohl
//Legal Notice: (C)2006 Altera Corporation. All rights reserved. Your
2
//use of Altera Corporation's design tools, logic functions and other
3
//software and tools, and its AMPP partner logic functions, and any
4
//output files any of the foregoing (including device programming or
5
//simulation files), and any associated documentation or information are
6
//expressly subject to the terms and conditions of the Altera Program
7
//License Subscription Agreement or other applicable license agreement,
8
//including, without limitation, that your use is for the sole purpose
9
//of programming logic devices manufactured by Altera and sold by Altera
10
//or its authorized distributors.  Please refer to the applicable
11
//agreement for further details.
12
 
13
module SEG7_LUT (       oSEG,iDIG       );
14
input   [3:0]    iDIG;
15
output  [6:0]    oSEG;
16
reg             [6:0]    oSEG;
17
 
18
always @(iDIG)
19
begin
20
                case(iDIG)
21
                4'h1: oSEG = 7'b1111001;        // ---t----
22
                4'h2: oSEG = 7'b0100100;        // |      |
23
                4'h3: oSEG = 7'b0110000;        // lt    rt
24
                4'h4: oSEG = 7'b0011001;        // |      |
25
                4'h5: oSEG = 7'b0010010;        // ---m----
26
                4'h6: oSEG = 7'b0000010;        // |      |
27
                4'h7: oSEG = 7'b1111000;        // lb    rb
28
                4'h8: oSEG = 7'b0000000;        // |      |
29
                4'h9: oSEG = 7'b0011000;        // ---b----
30
                4'ha: oSEG = 7'b0001000;
31
                4'hb: oSEG = 7'b0000011;
32
                4'hc: oSEG = 7'b1000110;
33
                4'hd: oSEG = 7'b0100001;
34
                4'he: oSEG = 7'b0000110;
35
                4'hf: oSEG = 7'b0001110;
36
                4'h0: oSEG = 7'b1000000;
37
                endcase
38
end
39
 
40
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.