Skip to content

Commit

Permalink
outrun: fixes transparency on rear tail lights. #585
Browse files Browse the repository at this point in the history
  • Loading branch information
jotego committed May 9, 2024
1 parent 9e02c60 commit d7cdc1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cores/outrun/hdl/jtoutrun_colmix.v
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ always @(*) begin
// This equation has the shadow term added. It isn't in the
// original equation. So I may be interpreting some of the terms
// wrong. Active high/low in PAL equations can be confusing...
muxsel = !fix && (
((objl[3:0]==4'h0 || shadow) && (!rc[3] || (!sa && !sb) )) ||
( objl[11:10]==2'b01 && objl[3:0]==4'b1010 )); // using the signal polarity in the
// original equation breaks the columns in stage 2 left
muxsel = !fix && ((objl[3:0]==4'h0 || shadow) && (!rc[3] || (!sa && !sb) ));
// the pen for transparency is not clear
// using the signal polarity in the original equation
// breaks the columns in stage 2 left
// 0 or 1111 seems to work
// || ( objl[11:10]==2'b01 && objl[3:0]==4'b1111 /*debug_bus[3:0]*/ ));
pre_addr = muxsel ? { 2'b01, {3{rd_pxl[7]}}, rd_pxl[6:0] } :
(sa | sb | fix ) ? { 1'b0, tmap_addr }:
{ 1'b1, objl[13:7], objl[3:0]}; // skips the shadow and priority bits
Expand Down

0 comments on commit d7cdc1b

Please sign in to comment.