Skip to content

Commit

Permalink
Fixed highres sprites by pipelining shifter output. Ugly, must be a b…
Browse files Browse the repository at this point in the history
…etter way to fix this.
  • Loading branch information
robinsonb5 committed Jul 14, 2023
1 parent 7abd0e3 commit b0b8d98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rtl/minimig/denise_sprites_shifter.v
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ always @(posedge clk)

// assign serialized output data
// AMR - register the output data to delay it by one clk7, compensating for removing load_del
reg [1:0] sprdata_r;
reg [7:0] sprdata_r;
always @(posedge clk)
if (clk7_en)
sprdata_r[1:0] <= {shiftb[63],shifta[63]};
sprdata_r <= {shiftb[63],shifta[63],sprdata_r[7:2]}; // Ugly - are we masking a copper timing problem here?

assign sprdata[1:0] = sprdata_r; // {shiftb[63],shifta[63]};
assign sprdata[1:0] = sprdata_r[1:0]; // {shiftb[63],shifta[63]};

//--------------------------------------------------------------------------------------

Expand Down

0 comments on commit b0b8d98

Please sign in to comment.