From d7cdc1b132259b2932f96ca473c85112aa75bcfe Mon Sep 17 00:00:00 2001 From: Jose Tejada Date: Thu, 9 May 2024 18:36:06 +0200 Subject: [PATCH] outrun: fixes transparency on rear tail lights. #585 --- cores/outrun/hdl/jtoutrun_colmix.v | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cores/outrun/hdl/jtoutrun_colmix.v b/cores/outrun/hdl/jtoutrun_colmix.v index 2487377ad..b00584c53 100644 --- a/cores/outrun/hdl/jtoutrun_colmix.v +++ b/cores/outrun/hdl/jtoutrun_colmix.v @@ -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