Added MESS artifacts along with selection

Added working MESS and artifact control.  Updated documentation and menu's although more menu work is needed.
This commit is contained in:
shodge12 committed 2024-02-04 01:07:32 -05:00
1 parent 115fccc535
commit 44ffb00fb2
7 files changed
+447 -366

No files matched your search

+2 -1
View File
@@ -329,6 +329,7 @@ set_global_assignment -name SIGNALTAP_FILE reset.stp
set_global_assignment -name SIGNALTAP_FILE Vsync.stp
set_global_assignment -name ENABLE_SIGNALTAP OFF
set_global_assignment -name OPTIMIZATION_MODE "HIGH PERFORMANCE EFFORT"
set_global_assignment -name USE_SIGNALTAP_FILE Video_Explorer.stp
set_global_assignment -name USE_SIGNALTAP_FILE Video_Explorer2.stp
set_global_assignment -name VERILOG_FILE rtl/mc6809glb/mc6809glb.v
set_global_assignment -name SIGNALTAP_FILE Video_Explorer2.stp
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
+2 -2
View File
@@ -223,9 +223,9 @@ localparam CONF_STR = {
"P1-;",
"P1O89,Aspect ratio,Original,Full Screen,Wide,[ARC1];",
"P1O35,Scandoubler Fx,None,HQ2x,CRT 25%,CRT 50%,CRT 75%;",
"P1OL,Artifact Color,Off - SG4,On - SG6;",
"P1OI,Artifact Color Set,0,1;",
"P1OL,CoCo3 Lower Case:,Enabled,Disabled - SG6 Enabled;",
"P1o56,Artifact Type,NONE,Simple,MESS;",
"P1OI,Artifact Color Set,0,1;",
"-;",
"P2,Debug Menu;",
"P2-;",
+173
View File
@@ -0,0 +1,173 @@
<session jtag_chain="DE-SoC on 192.168.2.129 [USB-1]" jtag_device="@2: 5CSEBA6(.|ES)/5CSEMA6/.. (0x02D020DD)" sof_file="">
<display_tree gui_logging_enabled="0">
<display_branch instance="auto_signaltap_0" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
</display_tree>
<instance enabled="false" entity_name="sld_signaltap" is_auto_node="yes" is_expanded="true" name="auto_signaltap_0" source_file="sld_signaltap.vhd">
<node_ip_info instance_id="0" mfg_id="110" node_id="0" version="6"/>
<signal_set global_temp="1" is_expanded="true" name="signal_set: 2024/02/02 23:05:26 #0">
<clock name="emu:emu|coco3fpga:coco3|CLK_14" polarity="posedge" tap_mode="classic"/>
<config pipeline_level="0" ram_type="AUTO" reserved_data_nodes="0" reserved_storage_qualifier_nodes="0" reserved_trigger_nodes="0" sample_depth="256" trigger_in_enable="no" trigger_out_enable="no"/>
<top_entity/>
<signal_vec>
<trigger_input_vec>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
</trigger_input_vec>
<data_input_vec>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
</data_input_vec>
<storage_qualifier_input_vec>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
</storage_qualifier_input_vec>
</signal_vec>
<presentation>
<unified_setup_data_view>
<node is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
<node data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
<node data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
<node data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
<node data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
<node data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
<node data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
<node data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
<node data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
<node data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
<node data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
</node>
<node data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
<node data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
</unified_setup_data_view>
<data_view>
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
<net data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
</bus>
<net data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
</data_view>
<setup_view>
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
<net data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
</bus>
<net data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
</setup_view>
<trigger_in_editor/>
<trigger_out_editor/>
</presentation>
<trigger CRC="EA9E4B56" attribute_mem_mode="false" gap_record="true" global_temp="1" is_expanded="true" name="trigger: 2024/02/03 00:21:54 #0" position="center" power_up_trigger_mode="false" record_data_gap="true" segment_size="64" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="false" storage_qualifier_port_name="auto_stp_external_storage_qualifier" storage_qualifier_port_tap_mode="classic" trigger_type="circular">
<power_up_trigger position="pre" storage_qualifier_disabled="no"/>
<events use_custom_flow_control="no">
<level enabled="yes" name="condition1" type="basic">'emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING' == falling edge &amp;&amp; 'emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING' == falling edge
<power_up enabled="yes">
</power_up><op_node>
<op_node left="608" selected="1" top="80" type="Advanced Trigger Level Result"/>
</op_node>
</level>
<level enabled="yes" name="condition2" type="basic">
<power_up enabled="yes">
</power_up><op_node/>
</level>
<level enabled="yes" name="condition3" type="basic">
<power_up enabled="yes">
</power_up><op_node/>
</level>
</events>
<storage_qualifier_events>
<transitional>111111111111
<pwr_up_transitional>111111111111</pwr_up_transitional>
</transitional>
<storage_qualifier_level type="basic">
<power_up>
</power_up>
<op_node/>
</storage_qualifier_level>
<storage_qualifier_level type="basic">
<power_up>
</power_up>
<op_node/>
</storage_qualifier_level>
<storage_qualifier_level type="basic">
<power_up>
</power_up>
<op_node/>
</storage_qualifier_level>
</storage_qualifier_events>
</trigger>
</signal_set>
<position_info>
<single attribute="active tab" value="1"/>
<single attribute="data horizontal scroll position" value="0"/>
<single attribute="data vertical scroll position" value="0"/>
<single attribute="setup horizontal scroll position" value="0"/>
<single attribute="setup vertical scroll position" value="0"/>
<single attribute="zoom level denominator" value="2"/>
<single attribute="zoom level numerator" value="1"/>
<single attribute="zoom offset denominator" value="1"/>
<single attribute="zoom offset numerator" value="261888"/>
</position_info>
</instance>
<mnemonics/>
<static_plugin_mnemonics/>
<global_info>
<single attribute="active instance" value="0"/>
<single attribute="config widget visible" value="1"/>
<single attribute="data log widget visible" value="1"/>
<single attribute="hierarchy widget visible" value="1"/>
<single attribute="instance widget visible" value="1"/>
<single attribute="jtag widget visible" value="1"/>
<single attribute="lock mode" value="0"/>
<multi attribute="column width" size="23" value="34,34,192,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,78"/>
<multi attribute="frame size" size="2" value="1024,705"/>
<multi attribute="jtag widget size" size="2" value="348,135"/>
</global_info>
</session>
Binary file not shown.
Binary file not shown.
+262 -201
View File
@@ -224,14 +224,14 @@ wire [7:0] PIXEL_X;
reg [24:0] ROW_ADD;
wire [24:0] OFFSET;
reg HBORDER;
wire [9:0] BORDER;
wire [9:0] CCOLOR;
wire [7:0] BORDER;
wire [8:0] CCOLOR;
wire MODE6;
wire SG6_ENABLE;
reg [1:0] HISTORY_TMP;
reg [1:0] HISTORY;
reg [1:0] FUTURE_TMP;
reg [1:0] FUTURE;
reg [3:0] HISTORY_TMP;
reg [3:0] HISTORY;
reg [2:0] FUTURE_TMP;
reg [2:0] FUTURE;
wire [8:0] BUF_ADD_BASE;
//reg [353:0] VSYNC_DELAY;
@@ -371,7 +371,7 @@ always @ (negedge MASTER_CLK)
|({COCO1,BP,HRES[3],HRES[2],HRES[1]}==5'b01001))) //CoCo3 32/40 bytes/line
begin
CHAR_LATCH_0_TMP <= {8'h00,CHAR_LATCH_0_TMP[15:8]};
HISTORY_TMP <= CHAR_LATCH_0_TMP[1:0];
HISTORY_TMP <= CHAR_LATCH_0_TMP[3:0];
FUTURE_TMP <= CHAR_LATCH_1_TMP[7:6];
end
else
@@ -379,7 +379,7 @@ always @ (negedge MASTER_CLK)
CHAR_LATCH_0_TMP <= RAM_DATA[15:0]; // Everything else
FUTURE_TMP <= RAM_DATA[15:14];
if (HBLANKING)
HISTORY_TMP <= {VID_CONT[3],VID_CONT[3]}; // First history after hblanking depends on the border
HISTORY_TMP <= 4'b1111; // First history after hblanking depends on the border
else
HISTORY_TMP <= CHAR_LATCH_0_TMP[1:0]; // After that, it is the last two pixels
end
@@ -508,82 +508,100 @@ function [7:0] messArtifactPalette(
begin
if(!sw_artifact_swap)
begin
a0 = 8'h08;
a1 = 8'h01;
a2 = 8'h01;
a3 = 8'h49;
a4 = 8'h48;
a5 = 8'h01;
a6 = 8'h01;
a7 = 8'h41;
a8 = 8'h40;
a9 = 8'h40;
a10 = 8'h48;
a11 = 8'h49;
a12 = 8'h49;
a13 = 8'h01;
a14 = 8'h01;
a15 = 8'h49;
a0 = 8'h01;//01
a1 = 8'h08;//08
a2 = 8'h08;//08
a3 = 8'h49;//48
a4 = 8'h48;//49
a5 = 8'h01;//01
a6 = 8'h01;//01
a7 = 8'h41;//40
a8 = 8'h40;//41
a9 = 8'h40;//48
a10 = 8'h48;//40
a11 = 8'h49;//49
a12 = 8'h49;//49
a13 = 8'h08;//08
a14 = 8'h08;//08
a15 = 8'h49;//49
end
else
begin
a0 = 8'h08;
a1 = 8'h01;
a2 = 8'h01;
a3 = 8'h48;
a4 = 8'h49;
a5 = 8'h01;
a6 = 8'h01;
a7 = 8'h40;
a8 = 8'h41;
a9 = 8'h48;
a10 = 8'h40;
a11 = 8'h49;
a12 = 8'h49;
a13 = 8'h01;
a14 = 8'h01;
a15 = 8'h49;
// | |X X X X XX XX XXX
begin // R G B|R G B|R G B|R G B RRRRR GGGGG BBBBB
a0 = 8'h01; // 0 0 0 0 0 0 0 1 0 0 0 0 00000_00100_00000
a1 = 8'h08; // 0 0 0 0 1 0 0 0 0 0 0 0 00000_01000_00000
a2 = 8'h08; // 0 0 0 0 1 0 0 0 0 0 0 0 00000_01000_00000
a3 = 8'h48; // 0 1 0 0 1 0 0 0 0 0 0 0 00000_11000_00000
a4 = 8'h49; // 0 1 0 0 1 0 0 1 0 0 0 0 00000_11100_00000
a5 = 8'h01; // 0 0 0 0 0 0 0 1 0 0 0 0 00000_00100_00000
a6 = 8'h01; // 0 0 0 0 0 0 0 1 0 0 0 0 00000_00100_00000
a7 = 8'h40; // 0 1 0 0 0 0 0 0 0 0 0 0 00000_10000_00000
a8 = 8'h41; // 0 1 0 0 0 0 0 1 0 0 0 0 00000_10100_00000
a9 = 8'h48; // 0 1 0 0 1 0 0 0 0 0 0 0 00000_11000_00000
a10 = 8'h40;// 0 1 0 0 0 0 0 0 0 0 0 0 00000_10000_00000
a11 = 8'h49;// 0 1 0 0 1 0 0 1 0 0 0 0 00000_11100_00000
a12 = 8'h49;// 0 1 0 0 1 0 0 1 0 0 0 0 00000_11100_00000
a13 = 8'h08;// 0 0 0 0 1 0 0 0 0 0 0 0 00000_01000_00000
a14 = 8'h08;// 0 0 0 0 1 0 0 0 0 0 0 0 00000_01000_00000
a15 = 8'h49;// 0 1 0 0 1 0 0 1 0 0 0 0 00000_11100_00000
end
end
else
begin
if(!sw_artifact_swap)
begin
a0 = 8'h00;
a1 = 8'h08;
a2 = 8'h02;
a3 = 8'hFD;
a4 = 8'hFE;
a5 = 8'h13;
a6 = 8'h21;
a7 = 8'hDE;
a8 = 8'h76;
a9 = 8'h64;
a10 = 8'h9E;
a11 = 8'hDF;
a12 = 8'hFD;
a13 = 8'h00;
a14 = 8'hDF;
a15 = 8'h1F;
a0 = 8'h00;//00
a1 = 8'h01;//02
a2 = 8'h02;//01
a3 = 8'hFD;//FE
a4 = 8'hFE;//FD
a5 = 8'h13;//21
a6 = 8'h21;//13
a7 = 8'hDE;//76
a8 = 8'h76;//DE
a9 = 8'h64;//93
a10 = 8'h9E;//64
a11 = 8'hDF;//FD
a12 = 8'hFD;//DF
a13 = 8'h02;//00
a14 = 8'h00;//02
a15 = 8'hFF;//FF
end
else
begin
a0 = 8'h00;
a1 = 8'h02;
a2 = 8'h08;
a3 = 8'hFE;
a4 = 8'hFD;
a5 = 8'h21;
a6 = 8'h13;
a7 = 8'h76;
a8 = 8'hDE;
a9 = 8'h9E;
a10 = 8'h64;
a11 = 8'hFD;
a12 = 8'hDF;
a13 = 8'h00;
a14 = 8'h02;
a15 = 8'hFF;
// | |X X X X XX XX XXX
begin // R G B|R G B|R G B|R G B RRRRR GGGGG BBBBB
a0 = 8'h00; // 0 0 0 0 0 0 0 0 0 0 0 0 00000_00000_00000
a1 = 8'h02; // 0 0 0 0 0 0 1 0 0 0 0 0 00100_00000_00100
a2 = 8'h01; // 0 0 0 0 0 0 0 1 0 0 0 0 00000_00100_00000
a3 = 8'hFE; // 1 1 1 1 1 1 1 0 0 0 0 0 11100_11000_11100
a4 = 8'hFD; // 1 1 1 1 1 1 0 1 0 0 0 0 11000_11100_11000
a5 = 8'h21; // 0 0 1 0 0 0 0 1 0 0 0 0 00000_00100_10100
a6 = 8'h13; // 0 0 0 1 0 0 1 1 0 0 0 0 01100_00100_00000
a7 = 8'h76; // 0 1 1 1 0 1 1 0 0 0 0 0 01100_10000_11100
a8 = 8'hDE; // 1 1 0 1 1 1 1 0 0 0 0 0 11100_11000_01000
a9 = 8'h9E; // 1 0 0 1 1 1 1 0 0 0 0 0 11100_01000_01000
a10 = 8'h64; // 0 1 1 0 0 1 0 0 0 0 0 0 00000_10000_11100
a11 = 8'hFD; // 1 1 1 1 1 1 0 1 0 0 0 0 11000_11100_11100
a12 = 8'hDF; // 1 1 0 1 1 1 1 1 0 0 0 0 11100_11100_01100
a13 = 8'h00; // 0 0 0 0 0 0 0 0 0 0 0 0 00000_00000_00100
a14 = 8'h02; // 0 0 0 0 0 0 1 0 0 0 0 0 00100_00000_00000
a15 = 8'hFF; // 1 1 1 1 1 1 1 1 0 0 0 0 11111_11111_11111
end
end
@@ -740,6 +758,11 @@ Standard Palette Colors
14 0 Black 0
15 38 Orange 38
*/
parameter C_BLK = 8'h00;
parameter C_WHT = 8'hFF;
parameter C_FGR = 8'h49;
assign PIXEL_X =
// CoCo1 Text
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3],SG6_ENABLE,CHAR_LATCH_0[7]} == 8'b00001000) ? {6'b000011,CSS,~CHARACTER0[7]}: // 12, 13, 14, 15
@@ -1175,22 +1198,59 @@ assign PIXEL_X =
//`ifdef no_arti
// No Artifacts
// Black/Green and Black/White
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0000_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[7]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0001_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[7]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0010_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[6]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0011_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[6]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0100_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[5]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0101_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[5]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0110_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[4]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b0111_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[4]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1000_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[3]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1001_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[3]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1010_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[2]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1011_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[2]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1100_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[1]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1101_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[1]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1110_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[0]}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 11'b1111_1_1111_00) ? {6'h02,CSS,CHAR_LATCH_0[0]}:
({CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0000_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0001_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0010_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0011_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0100_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0101_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0110_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_0111_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1000_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1001_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1010_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1011_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1100_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1101_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1110_1_1111_00) ? C_BLK:
({CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 12'b0_1111_1_1111_00) ? C_BLK:
({CSS,CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0000_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0001_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0010_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0011_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0100_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0101_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0110_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_0111_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1000_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1001_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1010_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1011_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1100_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1101_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1110_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b1_1_1111_1_1111_00) ? C_WHT:
({CSS,CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0000_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[7],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0001_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0010_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[6],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0011_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0100_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[5],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0101_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0110_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[4],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_0111_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1000_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[3],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1001_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1010_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[2],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1011_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1100_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[1],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1101_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1110_1_1111_00) ? C_FGR:
({CSS,CHAR_LATCH_0[0],PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],art} == 13'b0_1_1111_1_1111_00) ? C_FGR:
//`endif
//`ifdef simple_arti
@@ -1198,117 +1258,122 @@ assign PIXEL_X =
// CSS = 1 Artifacting black, orange, blue, and white
// CSS = 0 Artifacting black, orangeish, greenish, and green
// Both Bits Clear
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00001111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00011111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00101111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00111111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01001111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01011111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01101111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01111111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10001111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10011111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10101111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10111111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11001111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11011111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11101111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11111111100_01) ? {8'h10}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00001111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00011111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00101111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00111111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01001111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01011111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01101111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01111111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10001111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10011111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10101111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10111111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11001111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11011111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11101111100_01) ? C_BLK:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11111111100_01) ? C_BLK:
// Bits Set
// 2 Pixels means Green/White
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00001111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00011111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00101111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00111111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01001111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01011111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01101111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01111111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10001111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10011111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10101111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10111111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11001111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11011111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11101111111_01) ? {3'h0, CSS, 4'hF}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11111111111_01) ? {3'h0, CSS, 4'hF}:
// orig 0f vs 1f 0f=49 1f=ff
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00001111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00011111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00101111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[7:6],art} == 13'b00111111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01001111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01011111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01101111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[5:4],art} == 13'b01111111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10001111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10011111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10101111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[3:2],art} == 13'b10111111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11001111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11011111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11101111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],CHAR_LATCH_0[1:0],art} == 13'b11111111111_01) ? {CSS, 1'b1, CSS, CSS, 1'b1, CSS, CSS, 1'b1}:
// Bits = 01
// Phase = 1
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111101_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111101_01) ? {3'h0, CSS, 4'h9}:
// orig 09 vs 19 09=48 19=9e
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111101_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
// Bits = 01
// Phase = 0
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111001_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111001_01) ? {3'h0, CSS, 4'hA}:
// orig 0a vs 1a 0a=40 1a=64
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111001_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
// Bits = 10
// Phase = 1
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111110_01) ? {3'h0, CSS, 4'hA}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111110_01) ? {3'h0, CSS, 4'hA}:
// orig 0a vs 1a 0a=40 1a=64
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111110_01) ? {1'b0, 1'b1, CSS, 1'b0, 1'b0, CSS, 1'b0, 1'b0}:
// Bits = 10
// Phase = 0
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111010_01) ? {3'h0, CSS, 4'h9}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111010_01) ? {3'h0, CSS, 4'h9}:
// orig 09 vs 19 09=48 19=9e
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b000111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[7:6],art} == 14'b001111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b010111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[5:4],art} == 14'b011111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b100111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[3:2],art} == 14'b101111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b110111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111011111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
({PIXEL_COUNT[3:0],COCO1,VID_CONT[3:0],PHASE,CHAR_LATCH_0[1:0],art} == 14'b111111111010_01) ? {CSS, !CSS, 1'b0, CSS, 1'b1, CSS, CSS, 1'b0}:
//`endif
//`ifdef mess_arti
@@ -1650,27 +1715,23 @@ assign PIXEL_X =
// Border depends on mode
assign BORDER =
// Real Borders
({COCO1,VID_CONT[3],CSS} == 3'b110) ? 10'h281: // Green
({COCO1,VID_CONT[3],CSS} == 3'b111) ? 10'h282: // White
({COCO1,VID_CONT[3]} == 2'b10) ? 10'h280: // Black
10'h010; // BDR_PAL
({COCO1,VID_CONT[3],CSS} == 3'b110) ? 8'h49: // Green rGb rGb rG (010 010 01)
({COCO1,VID_CONT[3],CSS} == 3'b111) ? 8'hFF: // White
({COCO1,VID_CONT[3]} == 2'b10) ? 8'h00: // Black
8'h10; // BDR_PAL
// Clock in Color
always @ (negedge MASTER_CLK)
if(PIX_CLK == 1'b0 && PIX_CLK_DELAY == 1'b1)
COLOR <= CCOLOR;
assign CCOLOR[9] = ({VBLANKING,HBLANKING,COCO1} == 3'b000) ? 1'b0: // CoCo3 never Hard coded
({VBLANKING,HBLANKING,COCO1,art} == 5'b001_00) ? 1'b0: // CoCo1 Simple Artifacts, Never Hard coded
({VBLANKING,HBLANKING,COCO1,art} == 5'b001_01) ? (VID_CONT == 4'b1111): // CoCo1 with simple artifacts (only simple arti gets hard coded)
({VBLANKING,HBLANKING,COCO1,art} == 5'b001_10) ? 1'b0: // CoCo1 with MESS artifacts Never Hard coded
({(VBORDER&HBORDER),(VBLANKING|HBLANKING)} == 2'b11) ? BORDER[9]: // Border Hard coded if BORDER is hard coded
1'b1; // Retrace Hard coded
assign CCOLOR[8] = ({VBLANKING,HBLANKING,COCO1} == 3'b000) ? ({BP,CRES} == 3'b111): // CoCo3 normal screen depends on 256 color mode CoCo3 256 Color modes use VDAC
({VBLANKING,HBLANKING,COCO1,VID_CONT,art} == 9'b0011111_10) ? 1'b1: // CoCo1 with MESS artifacts uses VDAC
({(VBORDER&HBORDER),(VBLANKING|HBLANKING)} == 2'b11) ? BORDER[8]: // Border
1'b0; // always 0, everytuhg else use palettes
assign CCOLOR[8] = ({COCO1, (VBORDER&HBORDER),(VBLANKING|HBLANKING)} == 3'b111)? 1'b1: // CoCo1 Border
({COCO1, (VBORDER&HBORDER),(VBLANKING|HBLANKING)} == 3'b011)? 1'b0: // CoCo3 Border
({VBLANKING,HBLANKING,COCO1,VID_CONT[3:0]} == 7'b0011111) ? 1'b1: // CoCo1 Artifact mode
({VBLANKING,HBLANKING,COCO1} == 3'b001) ? 1'b0: // CoCo1
({VBLANKING,HBLANKING,COCO1,BP,CRES} == 6'b000111) ? 1'b1: // CoCo3 256 Color Modes
({VBLANKING,HBLANKING,COCO1} == 3'b000) ? 1'b0: // CoCo3
1'b1; // Retrace 256 color (Black)
assign CCOLOR[7] = ({VBLANKING,HBLANKING} == 2'b00) ? PIXEL_X[7]: // Normal screeen area
({(VBORDER&HBORDER),(VBLANKING|HBLANKING)} == 2'b11) ? BORDER[7]: // Border
+8 -162
View File
@@ -299,8 +299,8 @@ reg [7:0] SCRN_START_LSB;
reg [6:0] HOR_OFFSET;
reg HVEN;
reg [11:0] PALETTE [16:0];
wire [9:0] COLOR;
reg [9:0] COLOR_BUF;
wire [8:0] COLOR;
reg [8:0] COLOR_BUF;
wire H_SYNC_N;
wire V_SYNC_N;
reg [1:0] SEL;
@@ -3663,6 +3663,9 @@ reg [3:0] MISTER_HBLANK_D;
assign HBLANK = MISTER_HBLANK_D[1]; // This is 2 clock delay on the ~HBORDER...
assign VBLANK = ~VBORDER;
assign RED[3:0] = RED[7:4];
assign GREEN[3:0] = GREEN[7:4];
assign BLUE[3:0] = BLUE[7:4];
// Video DAC
always @ (negedge clk_sys)
@@ -3673,170 +3676,15 @@ begin
COLOR_BUF <= COLOR; // Delay COLOR by 1 clock cycle to align with 256 Color SRAM
H_SYNC <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
V_SYNC <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
RED[3:0] <= 4'B0000;
GREEN[3:0] <= 4'B0000;
BLUE[3:0] <= 4'B0000;
// RED[3:0] <= 4'B0000;
// GREEN[3:0] <= 4'B0000;
// BLUE[3:0] <= 4'B0000;
VGA_SYNC_N <= 1'b1;
MISTER_HBLANK_D[3] <= ~HBORDER;
MISTER_HBLANK_D[2:0] <= MISTER_HBLANK_D[3:1];
if(COLOR_BUF[9])
begin
case(COLOR_BUF[7:0])
// 8'h80: // Black
// begin
// {RED3, GREEN3, BLUE3, RED2, GREEN2, BLUE2, RED1, GREEN1, BLUE1, RED0, GREEN0, BLUE0} <= 12'h000; // Black
// end
8'h81: // Green
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h492; // GREEN
end
8'h82: // White
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hFFF; // WHITE
end
8'h00: // Dark Green
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h080;
end
8'h01:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h02:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h03:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h480;
end
8'h04:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h490;
end
8'h05:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h06:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h07:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h400;
end
8'h08:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h410;
end
8'h09:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h480;
end
8'h0A:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h400;
end
8'h0B:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h490;
end
8'h0C:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h490;
end
8'h0D:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h0E:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h010;
end
8'h0F:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h492;
end
// 8'h10: // Black
// begin
// {RED3, GREEN3, BLUE3, RED2, GREEN2, BLUE2, RED1, GREEN1, BLUE1, RED0, GREEN0, BLUE0} <= 12'h000;
// end
8'h11:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h028;
end
8'h12:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h082;
end
8'h13:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hFE8;
end
8'h14:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hFD0;
end
8'h15:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h218;
end
8'h16:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h130;
end
8'h17:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h768;
end
8'h18:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hDE0;
end
8'h19:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h9E0;
end
8'h1A:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h648;
end
8'h1B:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hFD8;
end
8'h1C:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hDF8;
end
8'h1D:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h008;
end
8'h1E:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h020;
end
8'h1F:
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'hFFF;
end
default: // Black
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= 12'h000; // Black
end
endcase
end
else
// Request for every other line to be black
// Looks more like the original video
// Not for 15KHz Video
begin
begin
if(COLOR_BUF[8])
begin
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= VDAC_OUT[11:0];
@@ -3857,8 +3705,6 @@ begin
BLUE[4] <= PALETTE[COLOR_BUF[4:0]][0];
end
end
end
end
end