-
-
Notifications
You must be signed in to change notification settings - Fork 58
fix(): Review blockout followups #1497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
cc4be64
minimal progress
asturur f080b63
Merge branch 'master' into review-blockout
asturur db14423
Merge branch 'master' into review-blockout
asturur e06aad7
1 hour of work 4 lines
asturur 860a4dd
more bits
asturur 1be3e1a
some progress
asturur 02079c9
board picture
asturur cb374da
Merge branch 'master' into review-blockout
asturur 46bf4dd
controls remap
asturur 65689b9
less errors
asturur 8ff6bba
correct toml
asturur 316d6e5
more pcb
asturur d2ce926
Merge branch 'master' into review-blockout
jotego dc1949e
Merge branch 'master' into review-blockout
asturur 3d3c9eb
Merge branch 'master' into review-blockout
asturur 08fda9a
is that all for point 1?
asturur 712144e
exact decoding
asturur 0072b7a
could this be - preserving byte writes - ?
asturur ac9f19a
leverage jtframe_edge
asturur 1d0dcfb
forgot this
asturur 642bb41
and this
asturur 6761f1e
Merge branch 'master' into review-blockout
asturur 916ae3b
missed the dots
asturur 49bc32b
send help
asturur 6f958ee
Merge branch 'master' into review-blockout
asturur 95ae968
added a colmix
asturur d4c587a
Merge branch 'review-blockout' of github.com:jotego/jtcores into revi…
asturur 819e378
enabled gfx_en + made register
asturur 2c0dd06
less comments
asturur 4beb5d3
forgot this file
asturur 23a9694
Merge branch 'master' into review-blockout
asturur 6c29497
Merge branch 'master' into review-blockout
asturur 0ebfee1
Merge branch 'master' into review-blockout
asturur c4f1a39
Merge branch 'master' into review-blockout
asturur ecb0b41
moved signals into main module
jotego d0ab2e1
minor
jotego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # 0x280000-0x280003. Only 0x280002 is used: the colour of the 1bpp overlay | ||
| # (pen 512), write only. Kept as an MMR so scene dumps carry it. | ||
| - name: frontcol | ||
| size: 4 | ||
| dw: 16 | ||
| read_only: true | ||
| regs: | ||
| - name: frontcol | ||
| desc: overlay colour, xBGR-444 | ||
| dw: 12 | ||
| at: "3[3:0],2" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| /* This file is part of JTCORES. | ||
| JTCORES program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
|
|
||
| JTCORES program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU General Public License for more details. | ||
|
|
||
| You should have received a copy of the GNU General Public License | ||
| along with JTCORES. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| Author: Andrea Bogazzi. email: andreabogazzi79@gmail.com | ||
| Version: 1.0 | ||
| Date: 31-7-2026 | ||
| */ | ||
|
|
||
| module jtblkout_colmix( | ||
| input clk, | ||
| input pxl_cen, | ||
| input LHBL, | ||
| input LVBL, | ||
| input [11:0] frontcol, | ||
|
|
||
| // bitmap pen, looked up in the palette BRAM | ||
| input [ 8:0] fb_pxl, | ||
| output [ 8:0] pal_addr, | ||
| input [15:0] pal_data, | ||
|
|
||
| // 1bpp overlay: byte from the line buffer plus the bit index within it | ||
| input [ 7:0] ovlb_q, | ||
| input [ 2:0] hovl, | ||
|
|
||
| input [ 3:0] gfx_en, // [0] bitmap, [3] overlay | ||
| output reg [ 3:0] red, | ||
| output reg [ 3:0] green, | ||
| output reg [ 3:0] blue | ||
| ); | ||
|
|
||
| reg overlay_1; | ||
|
|
||
| assign pal_addr = gfx_en[0] ? fb_pxl : 9'd0; | ||
| // Sample the overlay bit with the same hovl used for the byte address, then | ||
| // register once to line up with fb_pxl. | ||
| always @(posedge clk) if( pxl_cen ) overlay_1 <= gfx_en[3] & ovlb_q[~hovl]; // MSB = leftmost pixel | ||
|
|
||
| wire [11:0] color = overlay_1 ? frontcol : pal_data[11:0]; // xBGR-444 | ||
| wire blank = ~(LHBL & LVBL); | ||
| always @(posedge clk) if( pxl_cen ) begin | ||
| if( blank ) begin red<=0; green<=0; blue<=0; end | ||
| else begin | ||
| red <= color[ 3:0]; | ||
| green <= color[ 7:4]; | ||
| blue <= color[11:8]; | ||
| end | ||
| end | ||
|
|
||
| wire _unused = &{1'b0, gfx_en[2:1]}; | ||
|
|
||
| endmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.