User`s manual

194 always @(nibble)
195 case (nibble)
196 4’h0: dots <= 40’b00111110_01010001_01001001_01000101_00111110;
197 4’h1: dots <= 40’b00000000_01000010_01111111_01000000_00000000;
198 4’h2: dots <= 40’b01100010_01010001_01001001_01001001_01000110;
199 4’h3: dots <= 40’b00100010_01000001_01001001_01001001_00110110;
200 4’h4: dots <= 40’b00011000_00010100_00010010_01111111_00010000;
201 4’h5: dots <= 40’b00100111_01000101_01000101_01000101_00111001;
202 4’h6: dots <= 40’b00111100_01001010_01001001_01001001_00110000;
203 4’h7: dots <= 40’b00000001_01110001_00001001_00000101_00000011;
204 4’h8: dots <= 40’b00110110_01001001_01001001_01001001_00110110;
205 4’h9: dots <= 40’b00000110_01001001_01001001_00101001_00011110;
206 4’hA: dots <= 40’b01111110_00001001_00001001_00001001_01111110;
207 4’hB: dots <= 40’b01111111_01001001_01001001_01001001_00110110;
208 4’hC: dots <= 40’b00111110_01000001_01000001_01000001_00100010;
209 4’hD: dots <= 40’b01111111_01000001_01000001_01000001_00111110;
210 4’hE: dots <= 40’b01111111_01001001_01001001_01001001_01000001;
211 4’hF: dots <= 40’b01111111_00001001_00001001_00001001_00000001;
212 endcase
213
214 endmodule
A.1.4 vga.v
1 ‘default_nettype none
2 ///////////////////////////////////////////////////////////////////////////////////////////////////
3 // vga: Generate XVGA display signals (640 x 480 @ 60Hz)
4 // essentially a copy of staff xvga module with different timings
5 // Credits: timings from Jose’s project (Fall 2011),
6 // general code from staff xvga module (e.g Lab 3 - pong game)
7 ///////////////////////////////////////////////////////////////////////////////////////////////////
8
9 module vga(input vclock,
10 output reg [9:0] hcount, // pixel number on current line
11 output reg [9:0] vcount, // line number
12 output reg vsync,hsync,blank);
13
14 // VGA (640x480) @ 60 Hz
15 parameter VGA_HBLANKON = 10’d639;
16 parameter VGA_HSYNCON = 10’d655;
17 parameter VGA_HSYNCOFF = 10’d751;
18 parameter VGA_HRESET = 10’d799;
19 parameter VGA_VBLANKON = 10’d479;
20 parameter VGA_VSYNCON = 10’d490;
21 parameter VGA_VSYNCOFF = 10’d492;
22 parameter VGA_VRESET = 10’d523;
36