Skip to content

Commit

Permalink
fix: brightness of pixels
Browse files Browse the repository at this point in the history
thanks kevtris
  • Loading branch information
ericlewis committed Sep 9, 2022
1 parent 1a553c9 commit 922ab52
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
Binary file modified dist/Cores/ericlewis.SpaceRace/bitstream.rbf_r
Binary file not shown.
4 changes: 2 additions & 2 deletions src/fpga/ap_core.qsf
Original file line number Diff line number Diff line change
Expand Up @@ -760,5 +760,5 @@ set_global_assignment -name QIP_FILE core/mf_pllbase.qip
set_global_assignment -name SIP_FILE core/mf_pllbase.sip
set_global_assignment -name QIP_FILE core/rtl/ic.qip
set_global_assignment -name QIP_FILE core/rtl/sound_delta.qip
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
set_global_assignment -name SLD_FILE db/stp1_auto_stripped.stp
set_global_assignment -name SLD_FILE db/stp1_auto_stripped.stp
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
4 changes: 2 additions & 2 deletions src/fpga/apf/build_id.mif
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CONTENT
BEGIN

0E0 : 20220909;
0E1 : 00125750;
0E2 : 03eb96c2;
0E1 : 00144039;
0E2 : 344fee42;

END;
9 changes: 2 additions & 7 deletions src/fpga/core/core_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,7 @@ mf_pllbase mp1 (
wire VIDEO, SCORE;
wire HSYNC, VSYNC, HBLANK, VBLANK;

// FIXME: These video settings are not correct, they approximate at best what the original core did.
// trying to use any d value above 100 causes sync issues, and trying to use hex values also causes sync issues.
// Super duper awesome, help wanted.
wire [7:0] video = VIDEO ? 8'd100 : SCORE ? 8'd100 : 8'd0;
wire [7:0] video = (VIDEO ? 8'd255 : (SCORE ? 8'd187 : 8'd0));

// Does not do anything - just to satisfy the top.
wire CLK_CORE_VIDEO;
Expand Down Expand Up @@ -502,9 +499,7 @@ mf_pllbase mp1 (

if (~(VBLANK || HBLANK)) begin
video_de_reg <= 1;
video_rgb_reg[23:16] <= video;
video_rgb_reg[15:8] <= video;
video_rgb_reg[7:0] <= video;
video_rgb_reg <= {3{video}};
end

// Set HSync and VSync to be high for a single cycle on the falling edge of the HSync and VSync coming out of Space Race
Expand Down
Binary file modified src/fpga/output_files/ap_core.rbf
Binary file not shown.
Binary file modified src/fpga/output_files/ap_core.sof
Binary file not shown.
Binary file modified src/fpga/output_files/bitstream.rbf_r
Binary file not shown.

0 comments on commit 922ab52

Please sign in to comment.