Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osu-fpga
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fang Lu
osu-fpga
Commits
089b79eb
Commit
089b79eb
authored
7 years ago
by
Fang Lu
Browse files
Options
Downloads
Patches
Plain Diff
gl - fixes for out-of-bound pixels
parent
7b4ab70e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gl/gl_mgr.sv
+7
-4
7 additions, 4 deletions
gl/gl_mgr.sv
with
7 additions
and
4 deletions
gl/gl_mgr.sv
+
7
−
4
View file @
089b79eb
...
@@ -57,14 +57,14 @@ module gl_mgr (
...
@@ -57,14 +57,14 @@ module gl_mgr (
// Redraw cache instance
// Redraw cache instance
logic
[
19
:
0
]
rc_addr1
,
rc_addr2
;
logic
[
19
:
0
]
rc_addr1
,
rc_addr2
;
logic
rc_data_in1
,
rc_data_in2
;
logic
rc_data_in1
,
rc_data_in2
;
logic
rc_we1
,
rc_we2
;
logic
rc_we1
,
rc_we2
,
rc_we1_san
;
logic
rc_data_out1
,
rc_data_out2
;
logic
rc_data_out1
,
rc_data_out2
;
gl_redraw_cache
redraw_cache
(
gl_redraw_cache
redraw_cache
(
.
addr1
(
rc_addr1
),
.
addr1
(
rc_addr1
),
.
addr2
(
rc_addr2
),
.
addr2
(
rc_addr2
),
.
data_in1
(
rc_data_in1
),
.
data_in1
(
rc_data_in1
),
.
data_in2
(
rc_data_in2
),
.
data_in2
(
rc_data_in2
),
.
we1
(
rc_we1
),
.
we1
(
rc_we1
_san
),
.
we2
(
rc_we2
),
.
we2
(
rc_we2
),
.
clk
(
CLOCK
),
.
clk
(
CLOCK
),
.
data_out1
(
rc_data_out1
),
.
data_out1
(
rc_data_out1
),
...
@@ -109,8 +109,11 @@ module gl_mgr (
...
@@ -109,8 +109,11 @@ module gl_mgr (
logic
[
9
:
0
]
fb_PAINT_X_san
,
fb_PAINT_Y_san
;
logic
[
9
:
0
]
fb_PAINT_X_san
,
fb_PAINT_Y_san
;
logic
[
15
:
0
]
fb_PAINT_RGB16
;
logic
[
15
:
0
]
fb_PAINT_RGB16
;
logic
fb_PAINT_READY
;
logic
fb_PAINT_READY
;
assign
fb_PAINT_X_san
=
(
fb_PAINT_X
>
10'd639
)
?
10'd639
:
fb_PAINT_X
;
logic
paint_invalid
;
assign
fb_PAINT_Y_san
=
(
fb_PAINT_Y
>
10'd479
)
?
10'd479
:
fb_PAINT_Y
;
assign
paint_invalid
=
(
fb_PAINT_X
>
10'd639
)
||
(
fb_PAINT_Y
>
10'd479
);
assign
fb_PAINT_X_san
=
paint_invalid
?
10'd639
:
fb_PAINT_X
;
assign
fb_PAINT_Y_san
=
paint_invalid
?
10'd479
:
fb_PAINT_Y
;
assign
rc_we1_san
=
paint_invalid
?
1'b0
:
rc_we1
;
gl_frame_buffer
frame_buffer
(
gl_frame_buffer
frame_buffer
(
.
CLK
(
CLOCK
),
.
CLK
(
CLOCK
),
.
RESET
(
RESET
),
.
RESET
(
RESET
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment