Rev 543 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 543 | Rev 668 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | `include "../include/tune.v" |
- | |
2 | - | ||
3 | // Pentevo project (c) NedoPC 2011 |
1 | // ZX-Evo Base Configuration (c) NedoPC 2008,2009,2010,2011,2012,2013,2014 |
4 | // |
2 | // |
5 | // renders fetched video data to the pixels |
3 | // renders fetched video data to the pixels |
6 | 4 | ||
- | 5 | /* |
|
- | 6 | This file is part of ZX-Evo Base Configuration firmware. |
|
- | 7 | ||
- | 8 | ZX-Evo Base Configuration firmware is free software: |
|
- | 9 | you can redistribute it and/or modify it under the terms of |
|
- | 10 | the GNU General Public License as published by |
|
- | 11 | the Free Software Foundation, either version 3 of the License, or |
|
- | 12 | (at your option) any later version. |
|
- | 13 | ||
- | 14 | ZX-Evo Base Configuration firmware is distributed in the hope that |
|
- | 15 | it will be useful, but WITHOUT ANY WARRANTY; without even |
|
- | 16 | the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
- | 17 | See the GNU General Public License for more details. |
|
- | 18 | ||
- | 19 | You should have received a copy of the GNU General Public License |
|
- | 20 | along with ZX-Evo Base Configuration firmware. |
|
- | 21 | If not, see <http://www.gnu.org/licenses/>. |
|
- | 22 | */ |
|
- | 23 | ||
- | 24 | `include "../include/tune.v" |
|
- | 25 | ||
7 | module video_render( |
26 | module video_render( |
8 | 27 | ||
9 | input wire clk, // 28 MHz clock |
28 | input wire clk, // 28 MHz clock |
10 | 29 | ||
11 | 30 | ||
Line 23... | Line 42... | ||
23 | 42 | ||
24 | input wire [ 2:0] typos, // Y pos in text symbols |
43 | input wire [ 2:0] typos, // Y pos in text symbols |
25 | 44 | ||
26 | output wire [ 3:0] pixels, // output pixels |
45 | output wire [ 3:0] pixels, // output pixels |
27 | 46 | ||
- | 47 | // ulaplus related |
|
- | 48 | output wire [ 1:0] up_palsel, |
|
- | 49 | output wire [ 2:0] up_paper, |
|
- | 50 | output wire [ 2:0] up_ink, |
|
- | 51 | output wire up_pixel, |
|
28 | 52 | ||
29 | 53 | ||
30 | input wire [10:0] fnt_a, |
54 | input wire [10:0] fnt_a, |
31 | input wire [ 7:0] fnt_d, |
55 | input wire [ 7:0] fnt_d, |
32 | input wire fnt_wr, |
56 | input wire fnt_wr, |
Line 163... | Line 187... | ||
163 | 187 | ||
164 | assign pixels = modes_16c ? c16pix : apix; |
188 | assign pixels = modes_16c ? c16pix : apix; |
165 | 189 | ||
166 | 190 | ||
167 | 191 | ||
- | 192 | // ulaplus signals |
|
- | 193 | assign up_pixel = pixbit; |
|
- | 194 | // |
|
- | 195 | assign up_palsel = attrbyte[7:6]; |
|
- | 196 | // |
|
- | 197 | assign up_paper = attrbyte[5:3]; |
|
- | 198 | assign up_ink = attrbyte[2:0]; |
|
- | 199 | ||
- | 200 | ||
- | 201 | ||
168 | 202 | ||
169 | wire rom_ena; |
203 | wire rom_ena; |
170 | assign rom_ena = ena_pix & ginc; |
204 | assign rom_ena = ena_pix & ginc; |
171 | 205 | ||
172 | video_fontrom video_fontrom( |
206 | video_fontrom video_fontrom( |