From 8a3b9175767baf11a593b8cd2c3a3ffcf95e9857 Mon Sep 17 00:00:00 2001 From: shodge12 <44378937+shodge12@users.noreply.github.com> Date: Thu, 18 Jan 2024 22:17:25 -0500 Subject: [PATCH] Branch 0001 1. Interrupt system restored to previous code - improved compatibility. (config system updated along with ver information) Testing spreadsheet added. --- COCO3_Comp.xlsx | Bin 0 -> 10756 bytes CoCo3.qsf | 184 +++++++++++++++++++++++----------------------- rtl/coco3fpga.sv | 188 +++++++++++++++++++++-------------------------- rtl/config.v | 75 ++++++------------- rtl/config_inc.v | 123 +++++++++++++++++++++++++++++++ 5 files changed, 318 insertions(+), 252 deletions(-) create mode 100644 COCO3_Comp.xlsx create mode 100644 rtl/config_inc.v diff --git a/COCO3_Comp.xlsx b/COCO3_Comp.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..80af881c9d967ba48f183f109b4dc7a3fb721e78 GIT binary patch literal 10756 zcmeHtg;yNg^7Y_@ySux)ySrO(cN^S-yA2M(2@o8D2e%*z1OmZB2=2ixz{kzK@0a^{ z_xlUp>shON^>o)>-KT3;)!C=i6rrH80I&cc001Bdi1UU{Izs>e&@cc1CIAR&DCy!1 zvT_EQX!*KYc^I+yI60CPLqpOP0wAC6|KIjsJOb5Pqt5+oXkEH{qEg*DF-1|8l|Z5n zB15VjxGW#A9#zXGKHbkiT5EOf24Ekxy5poF&6yBh%_5DygxI0 z@V#7tbZBX{PQu&dIPO9`5q+M8}k<@d&> zu?meEZ1DvoNyY4{Au60WNRc=r;n5n{u};ZsUc$0cu5^sGaUcvV`UIHn%i?w9t=G1A zn*0xXu^lrD`NJ2cz_BcD>8hKq4!#rkSb)a$u|KNjX6>#CgRCZHAjtD{z4X z9fEWq>25oJ8BcUmwS=;gS1eBYE#m}*@ZpJPkB?9QwSS{&vo;&$`IGM{JzYh7qN$0y zm7@nM%OCsy(euBUlYe{lYOu2E02@-|vE0w7k*nF2WHbpyZ*jSIspgU|3oItNC>;#H@to zVNGOxD{tXm>SS*4Tt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}Bq2sm5bqB0l z*PW9Hx6i4XWfC0vwJpeGqoT8vx3vm}0TWzGo*i-Gm|n^iN8cW>zxwFblhi>vA{qM_ zqc8V8UrvJnGsg<^JG$D|^@e}ipTg|(jAkYej~4Ufg6L0GB--Cy(9G5Ke;)YcdVg)N zz~U}TY)BEuP`9K=D}?+jYDgi~=5o5{^=1&@78~UhqKGA02UxkQ+j?k{0v zp{u17({wb7or*ZyO!@1l2bb}`^Bh|_64b z>tPdmSU(@QIQ3HxV!1K0;iO)DXngoT{Sg9^`KkE&=T5eNeXf5U|Dmrt5S|o&!EFJbnYdCi?~WtnB#5GUPevzbE_OkN`j=IRNkX`N67&|div2kx$y|iA7}p$NdJak literal 0 HcmV?d00001 diff --git a/CoCo3.qsf b/CoCo3.qsf index 5c89069..328846e 100644 --- a/CoCo3.qsf +++ b/CoCo3.qsf @@ -73,96 +73,96 @@ set_global_assignment -name SIGNALTAP_FILE Serial.stp set_global_assignment -name SIGNALTAP_FILE AMW.stp set_global_assignment -name SIGNALTAP_FILE HD.stp set_global_assignment -name SIGNALTAP_FILE reset.stp -set_global_assignment -name SLD_NODE_CREATOR_ID 110 -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_ENTITY_NAME sld_signaltap -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_clk -to "emu:emu|coco3fpga:coco3|CLK_57" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_BLOCK_TYPE=AUTO" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_NODE_INFO=805334528" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_POWER_UP_TRIGGER=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_INVERSION_MASK_LENGTH=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SEGMENT_SIZE=16384" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ATTRIBUTE_MEM_MODE=OFF" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_FLOW_USE_GENERATED=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_BITS=11" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_BUFFER_FULL_STOP=1" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_CURRENT_RESOURCE_WIDTH=1" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INCREMENTAL_ROUTING=1" -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[0] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[1] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[3] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[4] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[5] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[8] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[11] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[12] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[13] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[15] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[17] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[20] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[21] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[29] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[30] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[31] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL=1" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SAMPLE_DEPTH=16384" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_IN_ENABLED=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_PIPELINE=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_PIPELINE=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_COUNTER_PIPELINE=0" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ADVANCED_TRIGGER_ENTITY=basic,1," -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL_PIPELINE=1" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ENABLE_ADVANCED_TRIGGER=0" -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[19] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[22] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[23] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[2] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[9] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[10] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[14] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[18] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[24] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[26] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[28] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_CREATOR_ID 110 -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_ENTITY_NAME sld_signaltap -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_clk -to "emu:emu|coco3fpga:coco3|CLK_57" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_BLOCK_TYPE=AUTO" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_NODE_INFO=805334528" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_POWER_UP_TRIGGER=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_INVERSION_MASK_LENGTH=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SEGMENT_SIZE=16384" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ATTRIBUTE_MEM_MODE=OFF" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_FLOW_USE_GENERATED=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_BITS=11" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_BUFFER_FULL_STOP=1" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_CURRENT_RESOURCE_WIDTH=1" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INCREMENTAL_ROUTING=1" -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[0] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[1] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[3] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[4] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[5] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[8] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[11] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[12] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[13] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[15] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[17] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[20] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[21] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[29] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[30] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[31] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL=1" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SAMPLE_DEPTH=16384" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_IN_ENABLED=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_PIPELINE=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_PIPELINE=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_COUNTER_PIPELINE=0" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ADVANCED_TRIGGER_ENTITY=basic,1," -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL_PIPELINE=1" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ENABLE_ADVANCED_TRIGGER=0" -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[19] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[22] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[23] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[2] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[9] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[10] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[14] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[18] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[24] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[26] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[28] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 set_global_assignment -name SIGNALTAP_FILE Vsync.stp -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[0] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[0]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[1] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[1]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[2] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[2]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[3] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[3]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[4] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[4]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[5] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[5]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[6] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[6]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[7] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[7]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[8] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[8]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[9] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[9]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[10] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_FLAG" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[11] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[0] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[0]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[1] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[1]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[2] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[2]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[3] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[3]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[4] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[4]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[5] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[5]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[6] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[6]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[7] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[7]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[8] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[8]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[9] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[9]" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[10] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_FLAG" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[11] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_N" -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[6] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[16] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[25] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[12] -to "emu:emu|coco3fpga:coco3|RST_FF02_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[13] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[14] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_STAT_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[12] -to "emu:emu|coco3fpga:coco3|RST_FF02_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[13] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_N" -section_id auto_signaltap_0 -set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[14] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_STAT_N" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_DATA_BITS=15" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_BITS=15" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_BITS=15" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK=0000000000000000000000000000000000000000000000000000000000000000000000000" -section_id auto_signaltap_0 -set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK_LENGTH=73" -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[7] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[27] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 -set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top -set_global_assignment -name SLD_FILE db/Vsync_auto_stripped.stp \ No newline at end of file +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[0] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[0]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[1] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[1]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[2] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[2]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[3] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[3]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[4] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[4]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[5] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[5]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[6] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[6]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[7] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[7]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[8] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[8]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[9] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[9]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[10] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_FLAG" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[11] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[0] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[0]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[1] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[1]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[2] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[2]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[3] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[3]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[4] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[4]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[5] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[5]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[6] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[6]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[7] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[7]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[8] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[8]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[9] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|LINE[9]" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[10] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_FLAG" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[11] -to "emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VSYNC_N" -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[6] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[16] -to auto_signaltap_0|vcc -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[25] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[12] -to "emu:emu|coco3fpga:coco3|RST_FF02_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[13] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[14] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_STAT_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[12] -to "emu:emu|coco3fpga:coco3|RST_FF02_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[13] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_N" -section_id auto_signaltap_0 +set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[14] -to "emu:emu|coco3fpga:coco3|VSYNC1_IRQ_STAT_N" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_DATA_BITS=15" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_BITS=15" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_BITS=15" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK=0000000000000000000000000000000000000000000000000000000000000000000000000" -section_id auto_signaltap_0 +set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK_LENGTH=73" -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[7] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[27] -to auto_signaltap_0|gnd -section_id auto_signaltap_0 +set_global_assignment -name SLD_FILE db/Vsync_auto_stripped.stp +set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top \ No newline at end of file diff --git a/rtl/coco3fpga.sv b/rtl/coco3fpga.sv index 6763717..2168d1e 100644 --- a/rtl/coco3fpga.sv +++ b/rtl/coco3fpga.sv @@ -212,7 +212,7 @@ assign cas_relay = CAS_MTR; //Version 5 bits Major and 4 bits Minor -parameter Version_Hi = 8'h50; +parameter Version_Hi = 8'h51; parameter Version_Lo = 8'h20; // MiSTer @@ -1616,7 +1616,7 @@ end //*********************************************************************** // Interrupt Sources //*********************************************************************** -// Interrupt source for CART signal +// Org FPGA code always @(negedge clk_sys or negedge RESET_N) begin if(!RESET_N) @@ -1630,26 +1630,21 @@ begin 2'b00: CART_INT_IN_N <= (!CART_INT_IN_N ) &(SER_IRQ); -// CART_INT_IN_N <= (!CART_INT_IN_N | SWITCH[4]) -// &(SER_IRQ); 2'b01: CART_INT_IN_N <= (SER_IRQ); 2'b10: CART_INT_IN_N <= (!CART_INT_IN_N | cart_firq_enable) &(SER_IRQ); -// CART_INT_IN_N <= (!CART_INT_IN_N | SWITCH[4]) -// &(SER_IRQ); 2'b11: CART_INT_IN_N <= (SER_IRQ); endcase end end -//assign HSYNC_INT_N = (H_SYNC_N | !H_FLAG); - +assign CART_INT_N = CART_INT_IN_N; `ifdef CoCo3_Horz_INT_FIX wire HBORDER_INT; - assign HSYNC_INT_N = HBORDER_INT; + assign HSYNC_INT_N = !HBORDER_INT; `else assign HSYNC_INT_N = H_SYNC_N; `endif @@ -1661,47 +1656,22 @@ end assign VSYNC_INT_N = V_SYNC_N; `endif - - -assign CART_INT_N = CART_INT_IN_N; assign KEY_INT_N = (KEYBOARD_IN == 8'hFF); + //*********************************************************************** // Interrupt Latch RESETs //*********************************************************************** - -reg RST_FF93T_N; -reg RST_FF93H_N; -reg RST_FF93V_N; -reg RST_FF93C_N; -reg RST_FF93K_N; -reg RST_FF92V_N; -reg RST_FF92H_N; -reg RST_FF92C_N; -reg RST_FF92K_N; -reg RST_FF92T_N; - always @(negedge clk_sys or negedge RESET_N) begin if(!RESET_N) begin RST_FF00_N <= 1'b1; RST_FF02_N <= 1'b1; +// RST_FF20_N <= 1'b1; RST_FF22_N <= 1'b1; - RST_FF92_N <= 1'b1; - RST_FF92H_N <= 1'b1; - RST_FF92V_N <= 1'b1; - RST_FF92C_N <= 1'b1; - RST_FF92K_N <= 1'b1; - RST_FF92T_N <= 1'b1; - RST_FF93_N <= 1'b1; - RST_FF93T_N <= 1'b1; - RST_FF93H_N <= 1'b1; - RST_FF93V_N <= 1'b1; - RST_FF93C_N <= 1'b1; - RST_FF93K_N <= 1'b1; TMR_RST_N <= 1'b1; end else @@ -1709,30 +1679,53 @@ begin if (PH_2) case({RW_N,ADDRESS}) 17'h1FF00: - if (!HSYNC1_CLK_N) - RST_FF00_N <= 1'b0; + RST_FF00_N <= 1'b0; 17'h1FF04: - if (!HSYNC1_CLK_N) - RST_FF00_N <= 1'b0; + RST_FF00_N <= 1'b0; 17'h1FF08: - if (!HSYNC1_CLK_N) - RST_FF00_N <= 1'b0; + RST_FF00_N <= 1'b0; 17'h1FF0C: - if (!HSYNC1_CLK_N) - RST_FF00_N <= 1'b0; + RST_FF00_N <= 1'b0; + 17'h1FF10: + RST_FF00_N <= 1'b0; + 17'h1FF14: + RST_FF00_N <= 1'b0; + 17'h1FF18: + RST_FF00_N <= 1'b0; + 17'h1FF1C: + RST_FF00_N <= 1'b0; 17'h1FF02: - if (!VSYNC1_IRQ_N) - RST_FF02_N <= 1'b0; + RST_FF02_N <= 1'b0; 17'h1FF06: - if (!VSYNC1_IRQ_N) - RST_FF02_N <= 1'b0; + RST_FF02_N <= 1'b0; 17'h1FF0A: - if (!VSYNC1_IRQ_N) - RST_FF02_N <= 1'b0; + RST_FF02_N <= 1'b0; 17'h1FF0E: - if (!VSYNC1_IRQ_N) - RST_FF02_N <= 1'b0; - + RST_FF02_N <= 1'b0; + 17'h1FF12: + RST_FF02_N <= 1'b0; + 17'h1FF16: + RST_FF02_N <= 1'b0; + 17'h1FF1A: + RST_FF02_N <= 1'b0; + 17'h1FF1E: + RST_FF02_N <= 1'b0; +/* 17'h1FF20: + RST_FF20_N <= 1'b0; + 17'h1FF24: + RST_FF20_N <= 1'b0; + 17'h1FF28: + RST_FF20_N <= 1'b0; + 17'h1FF2C: + RST_FF20_N <= 1'b0; + 17'h1FF30: + RST_FF20_N <= 1'b0; + 17'h1FF34: + RST_FF20_N <= 1'b0; + 17'h1FF38: + RST_FF20_N <= 1'b0; + 17'h1FF3C: + RST_FF20_N <= 1'b0; */ 17'h1FF22: RST_FF22_N <= 1'b0; 17'h1FF26: @@ -1741,7 +1734,14 @@ begin RST_FF22_N <= 1'b0; 17'h1FF2E: RST_FF22_N <= 1'b0; - + 17'h1FF32: + RST_FF22_N <= 1'b0; + 17'h1FF36: + RST_FF22_N <= 1'b0; + 17'h1FF3A: + RST_FF22_N <= 1'b0; + 17'h1FF3E: + RST_FF22_N <= 1'b0; 17'h0FF22: RST_FF22_N <= 1'b0; 17'h0FF26: @@ -1750,36 +1750,18 @@ begin RST_FF22_N <= 1'b0; 17'h0FF2E: RST_FF22_N <= 1'b0; - + 17'h0FF32: + RST_FF22_N <= 1'b0; + 17'h0FF36: + RST_FF22_N <= 1'b0; + 17'h0FF3A: + RST_FF22_N <= 1'b0; + 17'h0FF3E: + RST_FF22_N <= 1'b0; 17'h1FF92: - begin RST_FF92_N <= 1'b0; - if (!VSYNC_INT_N) - RST_FF92V_N <= 1'b0; - if (!HSYNC_INT_N) - RST_FF92H_N <= 1'b0; - if (!CART_INT_N) - RST_FF92C_N <= 1'b0; - if (!KEY_INT_N) - RST_FF92K_N <= 1'b0; - if (!TIMER_INT_N) - RST_FF92T_N <= 1'b0; - end - 17'h1FF93: - begin RST_FF93_N <= 1'b0; - if (!TIMER3_FIRQ_N) - RST_FF93T_N <= 1'b0; - if (!HSYNC_INT_N) - RST_FF93H_N <= 1'b0; - if (!VSYNC_INT_N) - RST_FF93V_N <= 1'b0; - if (!CART_INT_N) - RST_FF93C_N <= 1'b0; - if (!KEY_INT_N) - RST_FF93K_N <= 1'b0; - end 17'h0FF94: TMR_RST_N <= 1'b0; 17'h0FF95: @@ -1788,19 +1770,10 @@ begin begin RST_FF00_N <= 1'b1; RST_FF02_N <= 1'b1; +// RST_FF20_N <= 1'b1; RST_FF22_N <= 1'b1; RST_FF92_N <= 1'b1; - RST_FF92H_N <= 1'b1; - RST_FF92V_N <= 1'b1; - RST_FF92C_N <= 1'b1; - RST_FF92K_N <= 1'b1; - RST_FF92T_N <= 1'b1; RST_FF93_N <= 1'b1; - RST_FF93T_N <= 1'b1; - RST_FF93H_N <= 1'b1; - RST_FF93V_N <= 1'b1; - RST_FF93C_N <= 1'b1; - RST_FF93K_N <= 1'b1; TMR_RST_N <= 1'b1; end endcase @@ -1986,9 +1959,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF93H_N) +always @ (negedge clk_sys or negedge RST_FF93_N) begin - if(!RST_FF93H_N) + if(!RST_FF93_N) begin HSYNC3_FIRQ_STAT_N <= 1'b1; // no int end @@ -2026,9 +1999,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF93V_N) +always @ (negedge clk_sys or negedge RST_FF93_N) begin - if(!RST_FF93V_N) + if(!RST_FF93_N) begin VSYNC3_FIRQ_STAT_N <= 1'b1; // no int end @@ -2066,9 +2039,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF93C_N) +always @ (negedge clk_sys or negedge RST_FF93_N) begin - if(!RST_FF93C_N) + if(!RST_FF93_N) begin CART3_FIRQ_STAT_N <= 1'b1; // no int end @@ -2106,9 +2079,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF93K_N) +always @ (negedge clk_sys or negedge RST_FF93_N) begin - if(!RST_FF93K_N) + if(!RST_FF93_N) begin KEY3_FIRQ_STAT_N <= 1'b1; // no int end @@ -2146,9 +2119,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF93T_N) +always @ (negedge clk_sys or negedge RST_FF93_N) begin - if(!RST_FF93T_N) + if(!RST_FF93_N) begin TIMER3_FIRQ_STAT_N <= 1'b1; // no int end @@ -2187,9 +2160,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF92H_N) +always @ (negedge clk_sys or negedge RST_FF92_N) begin - if(!RST_FF92H_N) + if(!RST_FF92_N) begin HSYNC3_IRQ_STAT_N <= 1'b1; // no int end @@ -2225,9 +2198,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF92V_N) +always @ (negedge clk_sys or negedge RST_FF92_N) begin - if(!RST_FF92V_N) + if(!RST_FF92_N) begin VSYNC3_IRQ_STAT_N <= 1'b1; // no int end @@ -2339,9 +2312,9 @@ begin end end -always @ (negedge clk_sys or negedge RST_FF92T_N) +always @ (negedge clk_sys or negedge RST_FF92_N) begin - if(!RST_FF92T_N) + if(!RST_FF92_N) begin TIMER3_IRQ_STAT_N <= 1'b1; // no int end @@ -2352,6 +2325,7 @@ begin end end + assign CPU_IRQ_N = ( GIME_IRQ | (HSYNC1_IRQ_N & VSYNC1_IRQ_N)) & (!GIME_IRQ | (TIMER3_IRQ_N & HSYNC3_IRQ_N & VSYNC3_IRQ_N & KEY3_IRQ_N & CART3_IRQ_N)); assign CPU_FIRQ_N = ( GIME_FIRQ | (CART1_FIRQ_N)) @@ -2440,6 +2414,8 @@ begin end end + + reg sync_rst1; // Most of the latches for settings diff --git a/rtl/config.v b/rtl/config.v index 655cdca..c321ecf 100644 --- a/rtl/config.v +++ b/rtl/config.v @@ -9,6 +9,16 @@ // CPU section copyrighted by John Kent // //////////////////////////////////////////////////////////////////////////////// +// Project Name: CoCo3FPGA Version 5.x.x +// File Name: config.v +// +// CoCo3 in an FPGA +// +//////////////////////////////////////////////////////////////////////////////// +// +// CPU section copyrighted by John Kent +// +//////////////////////////////////////////////////////////////////////////////// // // Color Computer 3 compatible system on a chip // @@ -61,65 +71,22 @@ // This file is a configuration definition file. The CoCo3FPGA for MiSTer source files // can be built into multiple objects which have mutually exclusive features. -// The debug value holds upto 8 feature settings [1 per bit] - when Config_Debug is set this appears at FFF1 +`include "..\RTL\config_inc.v" + +// If defined the Config_Debug sets the FEATURE MASKS all OR'd together which appears on COCO space at FFF1 & (FFF0 = 0x55 as a debug flag) `define Config_Debug -`define Config_Debug_Value (`config_value_1 + `config_value_2 + `config_value_3 + `config_value_4 + `config_value_5 + `config_value_6 + `config_value_7 + `config_value_8) -`define Config_Debug_FLAG 8'h55 -// Feature list - note the support area below needs editing for debug support... + +// Feature list - note only FEATURE_1 - FEATURE_8 are supported /////////////////////////////////////////////////////////////////////////////////////////////////////////// -`define CoCo3_Horz_INT_FIX 8'h01 // Connection of the horz int to the Mister CoCo3 V5 rasterizer +`set_feature(CoCo3_Horz_INT_FIX, FEATURE_1) // Connection of the horz int to the Mister CoCo3 V5 rasterizer -`define CoCo3_Vert_INT_FIX 8'h02 // Connection of the vert int to the Mister CoCo3 V5 rasterizer +//`set_feature(CoCo3_Vert_INT_FIX, FEATURE_2) // Connection of the vert int to the Mister CoCo3 V5 rasterizer +//`set_feature(CoCo3_CYC_ACC_6809, FEATURE_3) // Use cycle accurate 6809 +//`set_feature(CoCo3_sdc_override_size, FEATURE_4) // Define static size value -/////////////////////////////////////////////////////////////////////////////////////////////////////////// -// This is support info to create the Config_Debug_Value referenced above -`ifdef CoCo3_Horz_INT_FIX - `define config_value_1 `CoCo3_Horz_INT_FIX -`else - `define config_value_1 8'h00 -`endif +//`set_feature(CoCo3_sdc_fix_os9_driver, FEATURE_5) // fix sdc query disk size issue in llcocosdc driver in multipak enviroment -`ifdef CoCo3_Vert_INT_FIX - `define config_value_2 `CoCo3_Vert_INT_FIX -`else - `define config_value_2 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_3 `NOT_DEFINED_YET -`else - `define config_value_3 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_4 `NOT_DEFINED_YET -`else - `define config_value_4 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_5 `NOT_DEFINED_YET -`else - `define config_value_5 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_6 `NOT_DEFINED_YET -`else - `define config_value_6 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_7 `NOT_DEFINED_YET -`else - `define config_value_7 8'h00 -`endif - -`ifdef NOT_DEFINED_YET - `define config_value_8 `NOT_DEFINED_YET -`else - `define config_value_8 8'h00 -`endif +//`set_feature(CoCo3_disable_GART_in_GIMEX, FEATURE_6)// Disable GIMEX ram transfers [GIMEX detection in OS( EOU] diff --git a/rtl/config_inc.v b/rtl/config_inc.v new file mode 100644 index 0000000..3daf7f6 --- /dev/null +++ b/rtl/config_inc.v @@ -0,0 +1,123 @@ +//////////////////////////////////////////////////////////////////////////////// +// Project Name: CoCo3FPGA Version 5.x.x +// File Name: config_inc.v +// +// CoCo3 in an FPGA +// +//////////////////////////////////////////////////////////////////////////////// +// +// CPU section copyrighted by John Kent +// +//////////////////////////////////////////////////////////////////////////////// +// +// Color Computer 3 compatible system on a chip +// +// Version : 5.x +// +// Copyright (c) 2008 Gary Becker (gary_l_becker@yahoo.com) +// +// All rights reserved +// +// Redistribution and use in source and synthezised forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// +// Redistributions in synthesized form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// +// Neither the name of the author nor the names of other contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Please report bugs to the author, but before you do so, please +// make sure that this is not a derivative work and that +// you have the latest version of this file. +// +//////////////////////////////////////////////////////////////////////////////// +// Gary Becker +// gary_L_becker@yahoo.com +//////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// +// MISTer Conversion by Stan Hodge and Alan Steremberg (& Gary Becker) +// stan.pda@gmail.com +// +//////////////////////////////////////////////////////////////////////////////// + +// This file is a configuration definition include file. The CoCo3FPGA for MiSTer source files +// can be built into multiple objects which have mutually exclusive features. + +`define Config_Debug_Value (`config_num_1 | `config_num_2 | `config_num_3 | `config_num_4 | `config_num_5 | `config_num_6 | `config_num_7 | `config_num_8) +`define Config_Debug_FLAG 8'h55 +`define FEATURE_1 8'h01 +`define FEATURE_2 8'h02 +`define FEATURE_3 8'h04 +`define FEATURE_4 8'h08 +`define FEATURE_5 8'h10 +`define FEATURE_6 8'h20 +`define FEATURE_7 8'h40 +`define FEATURE_8 8'h80 +`define config_num_1 8'h00 +`define config_num_2 8'h00 +`define config_num_3 8'h00 +`define config_num_4 8'h00 +`define config_num_5 8'h00 +`define config_num_6 8'h00 +`define config_num_7 8'h00 +`define config_num_8 8'h00 + +`define set_feature(Feat_Name, Feat_Mask) \ +`define Feat_Name \ +`ifndef config_value_1 \ + `define config_value_1 Feat_Mask \ + `define config_num_1 Feat_Mask \ +`else \ + `ifndef config_value_2 \ + `define config_value_2 Feat_Mask \ + `define config_num_2 Feat_Mask \ + `else \ + `ifndef config_value_3 \ + `define config_value_3 Feat_Mask \ + `define config_num_3 Feat_Mask \ + `else \ + `ifndef config_value_4 \ + `define config_value_4 Feat_Mask \ + `define config_num_4 Feat_Mask \ + `else \ + `ifndef config_value_5 \ + `define config_value_5 Feat_Mask \ + `define config_num_5 Feat_Mask \ + `else \ + `ifndef config_value_6 \ + `define config_value_6 Feat_Mask \ + `define config_num_6 Feat_Mask \ + `else \ + `ifndef config_value_7 \ + `define config_value_7 Feat_Mask \ + `define config_num_7 Feat_Mask \ + `else \ + `ifndef config_value_8 \ + `define config_value_8 Feat_Mask \ + `define config_num_8 Feat_Mask \ + `endif \ + `endif \ + `endif \ + `endif \ + `endif \ + `endif \ + `endif \ +`endif