Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow1229 committed May 26, 2024
1 parent ba00386 commit a24d728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project:
clock_hz: 31500000 # Clock frequency in Hz (or 0 if not applicable)

# How many tiles your design occupies? A single tile is about 167x108 uM.
tiles: "1x1" # Valid values: 1x1, 1x2, 2x2, 3x2, 4x2, 6x2 or 8x2
tiles: "1x2" # Valid values: 1x1, 1x2, 2x2, 3x2, 4x2, 6x2 or 8x2

# Your top module name must start with "tt_um_". Make it unique by including your github username:
top_module: "tt_um_shadow1229_vga_player"
Expand Down
6 changes: 3 additions & 3 deletions src/tt_vga_player.v
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module tt_um_shadow1229_vga_player (
wire reset = ~rst_n;

reg [127:0] cache_row; //10Byte for line / 3x2 byte for sound
reg [79:0] data_row;
reg [127:0] data_row;
reg cache_done;
reg data_done;

Expand Down Expand Up @@ -359,7 +359,7 @@ module tt_um_shadow1229_vga_player (
if(data_done == 1'b0 && cache_done == 1'b1) begin
data_done <= 1'b1;
cache_done <= 1'b0;
data_row[79:0] <= cache_row[79:0];
data_row[127:0] <= cache_row[127:0];
end

//cache to data
Expand Down Expand Up @@ -389,7 +389,7 @@ module tt_um_shadow1229_vga_player (
//update sound and video data
if (x_px == 832 && y_px%8 == 0 && cache_done == 1'b1) begin
cache_done <= 1'b0;
data_row[79:0] <= cache_row[79:0]; // video update
data_row[127:0] <= cache_row[127:0]; // video update
sound_block_pcm <= 0;
//sound_block_pwm <= 0;
case (frame_iter)
Expand Down

0 comments on commit a24d728

Please sign in to comment.