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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [logic/] [ip/] [vga_char_ctrl/] [rtl/] [verilog/] [char_display] - Blame information for rev 131

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
 
2
module `VARIANT`CHAR_DISPLAY
3
#(parameter H_ACTIVE=0
4
)
5
 
6
(
7
input wire          clk,
8
input wire          reset,
9
input wire [6:0]    char_column,    // character number on the current line
10
input wire [6:0]    char_line,      // line number on the screen
11
input wire [2:0]    subchar_line,   // the line number within a character block 0-8
12
input wire [2:0]    subchar_pixel,  // the pixel number within a character block 0-8
13
 
14
input wire [7:0]    ascii_code,
15
 
16
output wire         pixel_on,
17
 
18
output reg [13:0]   char_read_addr,
19
 
20
input wire [13:0]   char_write_addr,
21
input wire [7:0]    char_write_data,
22
input wire          char_write_enable
23
 
24
 );
25
 
26
 
27
 
28
 
29
 
30
 
31
always @ (*)
32
     begin
33
     char_read_addr    = (char_line[6:0] * H_ACTIVE / 8 ) + {7'b0000000,char_column[6:0]};
34
     end
35
 
36
 
37
 
38
 
39
// the character generator block includes the character RAM
40
// and the character generator ROM
41
`VARIANT`CHAR_GEN
42
 
43
 CHAR_GEN
44
(
45
 .clk                ( clk               ),
46
 .reset              ( reset             ),  // reset signal
47
 .char_write_addr    ( char_write_addr   ),  // write address
48
 .char_write_data    ( char_write_data   ),  // write data
49
 .char_write_enable  ( char_write_enable ),  // write enable
50
 .char_read_addr     ( char_read_addr    ),  // read address of current character
51
 .subchar_line       ( subchar_line      ),  // current line of pixels within current character
52
 .subchar_pixel      ( subchar_pixel     ),  // current column of pixels withing current character
53
 .pixel_on           ( pixel_on          ),
54
 .ascii_code         ( ascii_code        )
55
);
56
 
57
endmodule //CHAR_DISPLAY
58
 
59
 

powered by: WebSVN 2.1.0

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