Author SHA1 Message Date
shodge12 8b8cf72d1f Release Compiled Version 20260927
Release Compiled Version 20260927
2026-10-02 01:05:24 -04:00
shodge12 ede23da6b0 Timing fixes, Video mode fixes, Sound cleanup, and enabling RS-232 to physical SNAC pins.
1.	Overlay support for the detection of no rom loading on power up AND misc
    debugging. [done]
2.	Fix video HSCREEN 4 mode which is used in some demos and rs-232 terminal
	programs. [done]
3.	Reworked sound output to faithfully emulate the analog muxing in the coco.
	[done]
4.	Routing RS-232 tx/rx lines to the SNAC port for initial serial debugging
	of Fuji-Net interface. [done - untested]
2026-10-02 00:49:54 -04:00
shodge12 77ee8b8c8c First Stage Timing Updates
Changed generation of PIX_CLK.  It is no longer CLK_14, instead it is created in coco3video_mister and pushed outward. (as it should be).  Video1.stp is for watching the video signals.
The ability of using a old GIMEX video file has been removed as a feature.
2026-01-13 23:54:33 -05:00
jackyangantelope 0cc97c86d9 Update sys (#17) 2025-12-09 21:57:03 +08:00
35 changed files with 3234 additions and 4146 deletions

No files matched your search

+122 -274
View File
@@ -9,9 +9,9 @@
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
set_global_assignment -name TOP_LEVEL_ENTITY sys_top set_global_assignment -name TOP_LEVEL_ENTITY sys_top
#set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
#set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
#set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
set_global_assignment -name LAST_QUARTUS_VERSION "17.0.2 Lite Edition" set_global_assignment -name LAST_QUARTUS_VERSION "17.0.2 Lite Edition"
@@ -28,6 +28,7 @@ set_global_assignment -name TIMEQUEST_MULTICORNER_ANALYSIS OFF
set_global_assignment -name OPTIMIZE_POWER_DURING_FITTING OFF set_global_assignment -name OPTIMIZE_POWER_DURING_FITTING OFF
set_global_assignment -name FINAL_PLACEMENT_OPTIMIZATION ALWAYS set_global_assignment -name FINAL_PLACEMENT_OPTIMIZATION ALWAYS
set_global_assignment -name FITTER_EFFORT "STANDARD FIT" set_global_assignment -name FITTER_EFFORT "STANDARD FIT"
set_global_assignment -name OPTIMIZATION_MODE "HIGH PERFORMANCE EFFORT"
set_global_assignment -name ALLOW_POWER_UP_DONT_CARE ON set_global_assignment -name ALLOW_POWER_UP_DONT_CARE ON
set_global_assignment -name QII_AUTO_PACKED_REGISTERS NORMAL set_global_assignment -name QII_AUTO_PACKED_REGISTERS NORMAL
set_global_assignment -name ROUTER_LCELL_INSERTION_AND_LOGIC_DUPLICATION ON set_global_assignment -name ROUTER_LCELL_INSERTION_AND_LOGIC_DUPLICATION ON
@@ -54,279 +55,126 @@ set_global_assignment -name SEED 1
#enable it only if 8bit indexed mode is used in core #enable it only if 8bit indexed mode is used in core
#set_global_assignment -name VERILOG_MACRO "MISTER_FB_PALETTE=1" #set_global_assignment -name VERILOG_MACRO "MISTER_FB_PALETTE=1"
#set_global_assignment -name VERILOG_MACRO "MISTER_DUAL_SDRAM=1"
#do not enable DEBUG_NOHDMI in release! #do not enable DEBUG_NOHDMI in release!
#set_global_assignment -name VERILOG_MACRO "MISTER_DEBUG_NOHDMI=1" #set_global_assignment -name VERILOG_MACRO "MISTER_DEBUG_NOHDMI=1"
source sys/sys.tcl # disable bilinear filtering when downscaling
set_global_assignment -name FAMILY "Cyclone V" #set_global_assignment -name VERILOG_MACRO "MISTER_DOWNSCALE_NN=1"
set_global_assignment -name DEVICE 5CSEBA6U23I7
set_global_assignment -name DEVICE_FILTER_PACKAGE UFBGA
set_global_assignment -name DEVICE_FILTER_PIN_COUNT 672
set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 7
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ADC_CONVST
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ADC_SCK
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ADC_SDI
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ADC_SDO
set_location_assignment PIN_U9 -to ADC_CONVST
set_location_assignment PIN_V10 -to ADC_SCK
set_location_assignment PIN_AC4 -to ADC_SDI
set_location_assignment PIN_AD4 -to ADC_SDO
#set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ARDUINO_IO[*]
#set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to ARDUINO_IO[*]
#set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ARDUINO_IO[*]
set_location_assignment PIN_U14 -to IO_SCL
set_location_assignment PIN_AG9 -to IO_SDA
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to IO_S*
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to IO_S*
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to IO_S*
set_location_assignment PIN_AF17 -to USER_IO[6]
set_location_assignment PIN_AF15 -to USER_IO[5]
set_location_assignment PIN_AG16 -to USER_IO[4]
set_location_assignment PIN_AH11 -to USER_IO[3]
set_location_assignment PIN_AH12 -to USER_IO[2]
set_location_assignment PIN_AH9 -to USER_IO[1]
set_location_assignment PIN_AG11 -to USER_IO[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to USER_IO[*]
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to USER_IO[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to USER_IO[*]
set_location_assignment PIN_AH7 -to SDCD_SPDIF
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDCD_SPDIF
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDCD_SPDIF
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to SDCD_SPDIF
set_location_assignment PIN_Y11 -to SDRAM_A[0]
set_location_assignment PIN_AA26 -to SDRAM_A[1]
set_location_assignment PIN_AA13 -to SDRAM_A[2]
set_location_assignment PIN_AA11 -to SDRAM_A[3]
set_location_assignment PIN_W11 -to SDRAM_A[4]
set_location_assignment PIN_Y19 -to SDRAM_A[5]
set_location_assignment PIN_AB23 -to SDRAM_A[6]
set_location_assignment PIN_AC23 -to SDRAM_A[7]
set_location_assignment PIN_AC22 -to SDRAM_A[8]
set_location_assignment PIN_C12 -to SDRAM_A[9]
set_location_assignment PIN_AB26 -to SDRAM_A[10]
set_location_assignment PIN_AD17 -to SDRAM_A[11]
set_location_assignment PIN_D12 -to SDRAM_A[12]
set_location_assignment PIN_Y17 -to SDRAM_BA[0]
set_location_assignment PIN_AB25 -to SDRAM_BA[1]
set_location_assignment PIN_E8 -to SDRAM_DQ[0]
set_location_assignment PIN_V12 -to SDRAM_DQ[1]
set_location_assignment PIN_D11 -to SDRAM_DQ[2]
set_location_assignment PIN_W12 -to SDRAM_DQ[3]
set_location_assignment PIN_AH13 -to SDRAM_DQ[4]
set_location_assignment PIN_D8 -to SDRAM_DQ[5]
set_location_assignment PIN_AH14 -to SDRAM_DQ[6]
set_location_assignment PIN_AF7 -to SDRAM_DQ[7]
set_location_assignment PIN_AE24 -to SDRAM_DQ[8]
set_location_assignment PIN_AD23 -to SDRAM_DQ[9]
set_location_assignment PIN_AE6 -to SDRAM_DQ[10]
set_location_assignment PIN_AE23 -to SDRAM_DQ[11]
set_location_assignment PIN_AG14 -to SDRAM_DQ[12]
set_location_assignment PIN_AD5 -to SDRAM_DQ[13]
set_location_assignment PIN_AF4 -to SDRAM_DQ[14]
set_location_assignment PIN_AH3 -to SDRAM_DQ[15]
set_location_assignment PIN_AG13 -to SDRAM_DQML
set_location_assignment PIN_AF13 -to SDRAM_DQMH
set_location_assignment PIN_AD20 -to SDRAM_CLK
set_location_assignment PIN_AG10 -to SDRAM_CKE
set_location_assignment PIN_AA19 -to SDRAM_nWE
set_location_assignment PIN_AA18 -to SDRAM_nCAS
set_location_assignment PIN_Y18 -to SDRAM_nCS
set_location_assignment PIN_W14 -to SDRAM_nRAS
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_*
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_*
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_*
set_instance_assignment -name FAST_OUTPUT_ENABLE_REGISTER ON -to SDRAM_DQ[*]
set_instance_assignment -name FAST_INPUT_REGISTER ON -to SDRAM_DQ[*]
set_instance_assignment -name ALLOW_SYNCH_CTRL_USAGE OFF -to *|SDRAM_*
set_location_assignment PIN_AE15 -to SD_SPI_CS
set_location_assignment PIN_AH8 -to SD_SPI_MISO
set_location_assignment PIN_AG8 -to SD_SPI_CLK
set_location_assignment PIN_U13 -to SD_SPI_MOSI
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SD_SPI*
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_SPI*
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to SD_SPI*
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FPGA_CLK1_50
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FPGA_CLK2_50
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FPGA_CLK3_50
set_location_assignment PIN_V11 -to FPGA_CLK1_50
set_location_assignment PIN_Y13 -to FPGA_CLK2_50
set_location_assignment PIN_E11 -to FPGA_CLK3_50
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_I2C_*
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_I2S
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_LRCLK
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_MCLK
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_SCLK
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HDMI_TX_*
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to HDMI_TX_D[*]
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to HDMI_TX_DE
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to HDMI_TX_HS
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to HDMI_TX_VS
#set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to HDMI_TX_CLK
set_location_assignment PIN_U10 -to HDMI_I2C_SCL
set_location_assignment PIN_AA4 -to HDMI_I2C_SDA
set_location_assignment PIN_T13 -to HDMI_I2S
set_location_assignment PIN_T11 -to HDMI_LRCLK
set_location_assignment PIN_U11 -to HDMI_MCLK
set_location_assignment PIN_T12 -to HDMI_SCLK
set_location_assignment PIN_AG5 -to HDMI_TX_CLK
set_location_assignment PIN_AD19 -to HDMI_TX_DE
set_location_assignment PIN_AD12 -to HDMI_TX_D[0]
set_location_assignment PIN_AE12 -to HDMI_TX_D[1]
set_location_assignment PIN_W8 -to HDMI_TX_D[2]
set_location_assignment PIN_Y8 -to HDMI_TX_D[3]
set_location_assignment PIN_AD11 -to HDMI_TX_D[4]
set_location_assignment PIN_AD10 -to HDMI_TX_D[5]
set_location_assignment PIN_AE11 -to HDMI_TX_D[6]
set_location_assignment PIN_Y5 -to HDMI_TX_D[7]
set_location_assignment PIN_AF10 -to HDMI_TX_D[8]
set_location_assignment PIN_Y4 -to HDMI_TX_D[9]
set_location_assignment PIN_AE9 -to HDMI_TX_D[10]
set_location_assignment PIN_AB4 -to HDMI_TX_D[11]
set_location_assignment PIN_AE7 -to HDMI_TX_D[12]
set_location_assignment PIN_AF6 -to HDMI_TX_D[13]
set_location_assignment PIN_AF8 -to HDMI_TX_D[14]
set_location_assignment PIN_AF5 -to HDMI_TX_D[15]
set_location_assignment PIN_AE4 -to HDMI_TX_D[16]
set_location_assignment PIN_AH2 -to HDMI_TX_D[17]
set_location_assignment PIN_AH4 -to HDMI_TX_D[18]
set_location_assignment PIN_AH5 -to HDMI_TX_D[19]
set_location_assignment PIN_AH6 -to HDMI_TX_D[20]
set_location_assignment PIN_AG6 -to HDMI_TX_D[21]
set_location_assignment PIN_AF9 -to HDMI_TX_D[22]
set_location_assignment PIN_AE8 -to HDMI_TX_D[23]
set_location_assignment PIN_T8 -to HDMI_TX_HS
set_location_assignment PIN_AF11 -to HDMI_TX_INT
set_location_assignment PIN_V13 -to HDMI_TX_VS
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[1]
set_location_assignment PIN_AH17 -to KEY[0]
set_location_assignment PIN_AH16 -to KEY[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[3]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[4]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[5]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[6]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED[7]
set_location_assignment PIN_W15 -to LED[0]
set_location_assignment PIN_AA24 -to LED[1]
set_location_assignment PIN_V16 -to LED[2]
set_location_assignment PIN_V15 -to LED[3]
set_location_assignment PIN_AF26 -to LED[4]
set_location_assignment PIN_AE26 -to LED[5]
set_location_assignment PIN_Y16 -to LED[6]
set_location_assignment PIN_AA23 -to LED[7]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[3]
set_location_assignment PIN_Y24 -to SW[0]
set_location_assignment PIN_W24 -to SW[1]
set_location_assignment PIN_W21 -to SW[2]
set_location_assignment PIN_W20 -to SW[3]
set_hps_location_assignment HPSINTERFACEPERIPHERALSPIMASTER_X52_Y72_N111 -to spi
set_hps_location_assignment HPSINTERFACEPERIPHERALUART_X52_Y67_N111 -to uart
set_hps_location_assignment HPSINTERFACEPERIPHERALI2C_X52_Y60_N111 -to hdmi_i2c
set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:sys/build_id.tcl"
source sys/sys_analog.tcl
set_location_assignment PIN_AF25 -to SDIO_DAT[0]
set_location_assignment PIN_AF23 -to SDIO_DAT[1]
set_location_assignment PIN_AD26 -to SDIO_DAT[2]
set_location_assignment PIN_AF28 -to SDIO_DAT[3]
set_location_assignment PIN_AF27 -to SDIO_CMD
set_location_assignment PIN_AH26 -to SDIO_CLK
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDIO_*
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDIO_*
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to SDIO_DAT[*]
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to SDIO_CMD
set_location_assignment PIN_AE17 -to VGA_R[0]
set_location_assignment PIN_AE20 -to VGA_R[1]
set_location_assignment PIN_AF20 -to VGA_R[2]
set_location_assignment PIN_AH18 -to VGA_R[3]
set_location_assignment PIN_AH19 -to VGA_R[4]
set_location_assignment PIN_AF21 -to VGA_R[5]
set_location_assignment PIN_AE19 -to VGA_G[0]
set_location_assignment PIN_AG15 -to VGA_G[1]
set_location_assignment PIN_AF18 -to VGA_G[2]
set_location_assignment PIN_AG18 -to VGA_G[3]
set_location_assignment PIN_AG19 -to VGA_G[4]
set_location_assignment PIN_AG20 -to VGA_G[5]
set_location_assignment PIN_AG21 -to VGA_B[0]
set_location_assignment PIN_AA20 -to VGA_B[1]
set_location_assignment PIN_AE22 -to VGA_B[2]
set_location_assignment PIN_AF22 -to VGA_B[3]
set_location_assignment PIN_AH23 -to VGA_B[4]
set_location_assignment PIN_AH21 -to VGA_B[5]
set_location_assignment PIN_AH22 -to VGA_HS
set_location_assignment PIN_AG24 -to VGA_VS
set_location_assignment PIN_AH27 -to VGA_EN
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to VGA_EN
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_*
set_instance_assignment -name CURRENT_STRENGTH_NEW 8MA -to VGA_*
set_location_assignment PIN_AC24 -to AUDIO_L
set_location_assignment PIN_AE25 -to AUDIO_R
set_location_assignment PIN_AG26 -to AUDIO_SPDIF
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to AUDIO_*
set_instance_assignment -name CURRENT_STRENGTH_NEW 8MA -to AUDIO_*
set_location_assignment PIN_Y15 -to LED_USER
set_location_assignment PIN_AA15 -to LED_HDD
set_location_assignment PIN_AG28 -to LED_POWER
set_location_assignment PIN_AH24 -to BTN_USER
set_location_assignment PIN_AG25 -to BTN_OSD
set_location_assignment PIN_AG23 -to BTN_RESET
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LED_*
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to BTN_*
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to BTN_*
source files.qip
set_global_assignment -name ENABLE_SIGNALTAP OFF # disable adaptive scanline filtering
set_global_assignment -name OPTIMIZATION_MODE "AGGRESSIVE PERFORMANCE" #set_global_assignment -name VERILOG_MACRO "MISTER_DISABLE_ADAPTIVE=1"
set_global_assignment -name USE_SIGNALTAP_FILE Video_Explorer2.stp
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to USER_IO[2] #use only 1MB per frame for scaler to free ~21MB DDR3 RAM
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top #set_global_assignment -name VERILOG_MACRO "MISTER_SMALL_VBUF=1"
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top # Disable YC / Composite output to save some resources
set_global_assignment -name CDF_FILE jtag.cdf #set_global_assignment -name VERILOG_MACRO "MISTER_DISABLE_YC=1"
set_global_assignment -name QIP_FILE sys/sys.qip
set_global_assignment -name VERILOG_FILE rtl/Mister_Video_GIMEX.v # Disable ALSA audio output to save some resources
set_global_assignment -name VERILOG_FILE rtl/pll.v -library pll #set_global_assignment -name VERILOG_MACRO "MISTER_DISABLE_ALSA=1"
set_global_assignment -name VERILOG_FILE rtl/pll/pll_0002.v -library pll
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Cassette_Write.sv source sys/sys.tcl
set_global_assignment -name SYSTEMVERILOG_FILE rtl/config.sv source sys/sys_analog.tcl
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Auto_Run.sv source files.qip
set_global_assignment -name VHDL_FILE rtl/sram/coco_ram.vhd set_global_assignment -name ENABLE_SIGNALTAP ON
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_cart.vhd set_global_assignment -name USE_SIGNALTAP_FILE Video1.stp
set_global_assignment -name VHDL_FILE rtl/rom/coco3_char_rom.vhd set_global_assignment -name SLD_NODE_CREATOR_ID 110 -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/PS2_Key/ps2_keyboard.v set_global_assignment -name SLD_NODE_ENTITY_NAME sld_signaltap -section_id Video1
set_global_assignment -name MIF_FILE rtl/VDAC.mif set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_clk -to "emu:emu|video_mixer:video_mixer|CLK_VIDEO" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/VDAC.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[0] -to "emu:emu|VGA_DE" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/Mister_Video.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[1] -to "emu:emu|VGA_F1" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/cocokey.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[2] -to "emu:emu|VGA_G[7]" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/UART_6551/uart_6551.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[3] -to "emu:emu|VGA_HS" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/UART_6551/6551tx.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[4] -to "emu:emu|VGA_VS" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/UART_6551/6551rx.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[5] -to "emu:emu|video_mixer:video_mixer|HBlank" -section_id Video1
set_global_assignment -name VHDL_FILE rtl/CPU09/cpu09l_128a.vhd set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[6] -to "emu:emu|video_mixer:video_mixer|HSync" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/coco3fpga.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[7] -to "emu:emu|video_mixer:video_mixer|VBlank" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/cassette.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[8] -to "emu:emu|video_mixer:video_mixer|VSync" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/rtc.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[9] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/AMW.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[10] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/square_gen.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[11] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/fdc.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[12] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[13] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc_top.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[14] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/ps2_mouse.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[15] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram/sdram2.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[16] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/wd1793.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[17] -to "emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE CoCo3.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_trigger_in[18] -to "emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" -section_id Video1
set_global_assignment -name VHDL_FILE rtl/sram/coco_vid_ram_buf.vhd set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[0] -to "emu:emu|VGA_DE" -section_id Video1
set_global_assignment -name SYSTEMVERILOG_FILE rtl/coco_mem_fetch.sv set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[1] -to "emu:emu|VGA_F1" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/EE_Cold_Bt.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[2] -to "emu:emu|VGA_G[7]" -section_id Video1
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[3] -to "emu:emu|VGA_HS" -section_id Video1
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[4] -to "emu:emu|VGA_VS" -section_id Video1
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[5] -to "emu:emu|video_mixer:video_mixer|HBlank" -section_id Video1
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[6] -to "emu:emu|video_mixer:video_mixer|HSync" -section_id Video1
set_global_assignment -name VERILOG_FILE rtl/mc6809glb/mc6809glb.v set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[7] -to "emu:emu|video_mixer:video_mixer|VBlank" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[8] -to "emu:emu|video_mixer:video_mixer|VSync" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[9] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[10] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[11] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[12] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[13] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[14] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[15] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[16] -to "emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[17] -to "emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" -section_id Video1
set_instance_assignment -name CONNECT_TO_SLD_NODE_ENTITY_PORT acq_data_in[18] -to "emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_BLOCK_TYPE=AUTO" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_DATA_BITS=19" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_BITS=19" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_BITS=19" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_NODE_INFO=805334528" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_POWER_UP_TRIGGER=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK=000000000000000000000000000000000000000000000000000000000000000000000000000000000000" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INVERSION_MASK_LENGTH=84" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STORAGE_QUALIFIER_INVERSION_MASK_LENGTH=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SEGMENT_SIZE=8192" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ATTRIBUTE_MEM_MODE=OFF" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_FLOW_USE_GENERATED=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_STATE_BITS=11" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_BUFFER_FULL_STOP=1" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_CURRENT_RESOURCE_WIDTH=1" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_INCREMENTAL_ROUTING=1" -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[0] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[1] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[2] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[3] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[4] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[5] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[6] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[7] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[8] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[9] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[10] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[11] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[12] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[13] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[14] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[15] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[16] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[17] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[18] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[19] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[20] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[21] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[22] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[23] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[24] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[25] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[26] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[27] -to Video1|gnd -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[28] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[29] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[30] -to Video1|vcc -section_id Video1
set_instance_assignment -name POST_FIT_CONNECT_TO_SLD_NODE_ENTITY_PORT crc[31] -to Video1|gnd -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL=1" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_SAMPLE_DEPTH=8192" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_IN_ENABLED=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_PIPELINE=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_RAM_PIPELINE=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_COUNTER_PIPELINE=0" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ADVANCED_TRIGGER_ENTITY=basic,1," -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_TRIGGER_LEVEL_PIPELINE=1" -section_id Video1
set_global_assignment -name SLD_NODE_PARAMETER_ASSIGNMENT "SLD_ENABLE_ADVANCED_TRIGGER=0" -section_id Video1
set_global_assignment -name SLD_FILE db/Video1_auto_stripped.stp
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
+22 -11
View File
@@ -43,6 +43,8 @@ module emu
input [11:0] HDMI_WIDTH, input [11:0] HDMI_WIDTH,
input [11:0] HDMI_HEIGHT, input [11:0] HDMI_HEIGHT,
output HDMI_FREEZE, output HDMI_FREEZE,
output HDMI_BLACKOUT,
output HDMI_BOB_DEINT,
`ifdef MISTER_FB `ifdef MISTER_FB
// Use framebuffer in DDRAM // Use framebuffer in DDRAM
@@ -180,6 +182,8 @@ assign LED_POWER = 0;
assign VGA_SCALER = 0; assign VGA_SCALER = 0;
assign HDMI_FREEZE = 0; assign HDMI_FREEZE = 0;
assign HDMI_BLACKOUT = 0;
assign HDMI_BOB_DEINT = 0;
wire [1:0] ar = status[9:8]; wire [1:0] ar = status[9:8];
@@ -237,7 +241,9 @@ localparam CONF_STR = {
"P2-, -= Debug Menu =-;", "P2-, -= Debug Menu =-;",
"P2-;", "P2-;",
"P2F3,BIN,Load COCO Font;", "P2F3,BIN,Load COCO Font;",
"P2OG,Cart Interrupt Disabled,OFF,ON;", "P2OG,Swap MiSTer Uart,RS CART,Default;",
"P2OU,Swap Uart to IO,RS IO,MiSTer;",
"P2OT,Display Debug,Off,On;",
"-;", "-;",
"ON,D-Pad Joystick emu,No,Yes;", "ON,D-Pad Joystick emu,No,Yes;",
"O6,Swap Joysticks,Off,On;", "O6,Swap Joysticks,Off,On;",
@@ -266,7 +272,7 @@ localparam CONF_STR = {
// 0123456789ABCDEFGHIJKLMNOPQRSTUV 0123456789ABCDEFGHIJKLMNOPQRSTUV // 0123456789ABCDEFGHIJKLMNOPQRSTUV 0123456789ABCDEFGHIJKLMNOPQRSTUV
// //
// R OOOO OOR OOOTOOOOOOROOOOOO ooo oo oo // R OOOO OOR OOOTOOOOOOROOOOOOOO ooo oo oo
//F FF //F FF
//S SSSSSSS //S SSSSSSS
@@ -482,9 +488,11 @@ wire [7:0] g;
wire [7:0] b; wire [7:0] b;
wire easter_egg = status[10]; wire easter_egg = status[10];
wire [31:0] probe; wire [6:0] probe_o;
wire [6:0] probe_i;
assign USER_OUT[6:0] = probe[6:0]; assign USER_OUT[6:0] = probe_o[6:0];
assign probe_i[6:0] = USER_IN[6:0];
wire [71:0] Config_Data; wire [71:0] Config_Data;
@@ -502,9 +510,9 @@ coco3fpga coco3 (
// Reset // Reset
.COCO_RESET_N((~reset & Programmed_RESET_N)), .COCO_RESET_N((~reset & Programmed_RESET_N)),
.RED(r), .RED_O(r),
.GREEN(g), .GREEN_O(g),
.BLUE(b), .BLUE_O(b),
.EE_N(Programmed_EE), .EE_N(Programmed_EE),
.PHASE(PHASE), .PHASE(PHASE),
@@ -566,7 +574,8 @@ coco3fpga coco3 (
.sd_buff_din(sd_buff_din), .sd_buff_din(sd_buff_din),
.sd_buff_wr(sd_buff_wr), .sd_buff_wr(sd_buff_wr),
.PROBE(probe[31:0]), .PROBE_O(probe_o),
.PROBE_I(probe_i),
.clk_Q_out(clk_Q_out), .clk_Q_out(clk_Q_out),
.casdout( casdout), .casdout( casdout),
.cas_relay(cas_relay), .cas_relay(cas_relay),
@@ -604,6 +613,7 @@ coco3fpga coco3 (
.AUTO_MODE(Auto_Mode), .AUTO_MODE(Auto_Mode),
.Config_Data(Config_Data), .Config_Data(Config_Data),
.Display_Debug(display_debug),
.UART_TXD(UART_TXD), .UART_TXD(UART_TXD),
.UART_RXD(UART_RXD), .UART_RXD(UART_RXD),
@@ -629,7 +639,7 @@ wire AMW_ACK;
wire [1:0] mpi = status[13:12] + 1'b1; wire [1:0] mpi = status[13:12] + 1'b1;
//wire video=status[14]; //wire video=status[14];
wire CASS_REW_RECORD=status[14]; wire CASS_REW_RECORD=status[14];
wire cartint=status[16]; wire rs_swap=status[16];
wire sg4v6 = status[21]; wire sg4v6 = status[21];
wire PHASE = status[18]; wire PHASE = status[18];
@@ -639,7 +649,8 @@ wire coldboot = status[22];
wire F_Turbo = status[24]; wire F_Turbo = status[24];
wire [2:0] Mem_Size = status[27:25]; wire [2:0] Mem_Size = status[27:25];
wire SWAP_M_J = status[28]; wire SWAP_M_J = status[28];
wire display_debug = status[29];
wire UART_INPUT = status[30];
wire digitalJoy = status[23]; wire digitalJoy = status[23];
reg [2:0] mpi_d = 2'b00; reg [2:0] mpi_d = 2'b00;
reg first_mpi_chg = 1'b0; reg first_mpi_chg = 1'b0;
@@ -676,7 +687,7 @@ begin
end end
// Set bit 9 to swap serial ports... // Set bit 9 to swap serial ports...
wire [9:0] switch = { 2'b10,art,sg4v6,cartint,CASS_REW_RECORD,mpi,1'b0}; wire [9:0] switch = { 1'b0,UART_INPUT,art,sg4v6,rs_swap,CASS_REW_RECORD,mpi,1'b0};
wire reset = RESET | status[0] | buttons[1]; wire reset = RESET | status[0] | buttons[1];
+214
View File
@@ -0,0 +1,214 @@
<session jtag_chain="DE-SoC on yoda [USB-1]" jtag_device="@2: 5CSEBA6(.|ES)/5CSEMA6/.. (0x02D020DD)" sof_file="">
<display_tree gui_logging_enabled="0">
<display_branch instance="Video1" log="USE_GLOBAL_TEMP" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
</display_tree>
<instance enabled="true" entity_name="sld_signaltap" is_auto_node="yes" is_expanded="true" name="Video1" 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: 2026/01/10 19:34:25 #0">
<clock name="emu:emu|video_mixer:video_mixer|CLK_VIDEO" 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="8192" trigger_in_enable="no" trigger_out_enable="no"/>
<top_entity/>
<signal_vec>
<trigger_input_vec>
<wire name="emu:emu|VGA_DE" tap_mode="classic"/>
<wire name="emu:emu|VGA_F1" tap_mode="classic"/>
<wire name="emu:emu|VGA_G[7]" tap_mode="classic"/>
<wire name="emu:emu|VGA_HS" tap_mode="classic"/>
<wire name="emu:emu|VGA_VS" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" tap_mode="classic"/>
</trigger_input_vec>
<data_input_vec>
<wire name="emu:emu|VGA_DE" tap_mode="classic"/>
<wire name="emu:emu|VGA_F1" tap_mode="classic"/>
<wire name="emu:emu|VGA_G[7]" tap_mode="classic"/>
<wire name="emu:emu|VGA_HS" tap_mode="classic"/>
<wire name="emu:emu|VGA_VS" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" tap_mode="classic"/>
</data_input_vec>
<storage_qualifier_input_vec>
<wire name="emu:emu|VGA_DE" tap_mode="classic"/>
<wire name="emu:emu|VGA_F1" tap_mode="classic"/>
<wire name="emu:emu|VGA_G[7]" tap_mode="classic"/>
<wire name="emu:emu|VGA_HS" tap_mode="classic"/>
<wire name="emu:emu|VGA_VS" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|HSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VBlank" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|VSync" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" tap_mode="classic"/>
<wire name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" tap_mode="classic"/>
</storage_qualifier_input_vec>
</signal_vec>
<presentation>
<unified_setup_data_view>
<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="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="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="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" name="emu:emu|VGA_VS" pwr_level-0="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" name="emu:emu|VGA_HS" pwr_level-0="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="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" name="emu:emu|VGA_DE" pwr_level-0="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 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" name="emu:emu|VGA_F1" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="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="17" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="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="17" tap_mode="classic" trigger_index="17" type="unknown"/>
<node data_index="18" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="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="18" tap_mode="classic" trigger_index="18" type="unknown"/>
<node data_index="14" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" pwr_level-0="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="14" tap_mode="classic" trigger_index="14" type="unknown"/>
<node data_index="13" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" pwr_level-0="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="13" tap_mode="classic" trigger_index="13" type="unknown"/>
<node data_index="16" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" pwr_level-0="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="16" tap_mode="classic" trigger_index="16" type="unknown"/>
<node data_index="12" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" pwr_level-0="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="12" tap_mode="classic" trigger_index="12" type="unknown"/>
<node data_index="15" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" pwr_level-0="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="15" tap_mode="classic" trigger_index="15" type="unknown"/>
<node data_index="9" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" pwr_level-0="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 is_selected="false" level-0="alt_or" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" pwr_level-0="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"/>
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" pwr_level-0="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>
</unified_setup_data_view>
<data_view>
<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="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="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="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" name="emu:emu|VGA_VS" pwr_level-0="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" name="emu:emu|VGA_HS" pwr_level-0="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="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" name="emu:emu|VGA_DE" pwr_level-0="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"/>
<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" name="emu:emu|VGA_F1" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="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="17" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="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="17" tap_mode="classic" trigger_index="17" type="unknown"/>
<net data_index="18" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="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="18" tap_mode="classic" trigger_index="18" type="unknown"/>
<net data_index="14" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" pwr_level-0="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="14" tap_mode="classic" trigger_index="14" type="unknown"/>
<net data_index="13" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" pwr_level-0="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="13" tap_mode="classic" trigger_index="13" type="unknown"/>
<net data_index="16" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" pwr_level-0="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="16" tap_mode="classic" trigger_index="16" type="unknown"/>
<net data_index="12" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" pwr_level-0="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="12" tap_mode="classic" trigger_index="12" type="unknown"/>
<net data_index="15" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" pwr_level-0="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="15" tap_mode="classic" trigger_index="15" type="unknown"/>
<net data_index="9" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" pwr_level-0="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"/>
<bus is_selected="false" level-0="alt_or" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" pwr_level-0="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"/>
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" pwr_level-0="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"/>
</bus>
</data_view>
<setup_view>
<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="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="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="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" name="emu:emu|VGA_VS" pwr_level-0="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" name="emu:emu|VGA_HS" pwr_level-0="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="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" name="emu:emu|VGA_DE" pwr_level-0="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"/>
<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" name="emu:emu|VGA_F1" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="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="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" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="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="17" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="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="17" tap_mode="classic" trigger_index="17" type="unknown"/>
<net data_index="18" 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" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="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="18" tap_mode="classic" trigger_index="18" type="unknown"/>
<net data_index="14" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|old_ce" pwr_level-0="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="14" tap_mode="classic" trigger_index="14" type="unknown"/>
<net data_index="13" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hs" pwr_level-0="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="13" tap_mode="classic" trigger_index="13" type="unknown"/>
<net data_index="16" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vs" pwr_level-0="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="16" tap_mode="classic" trigger_index="16" type="unknown"/>
<net data_index="12" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|hb" pwr_level-0="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="12" tap_mode="classic" trigger_index="12" type="unknown"/>
<net data_index="15" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|vb" pwr_level-0="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="15" tap_mode="classic" trigger_index="15" type="unknown"/>
<net data_index="9" 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" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ce_pix" pwr_level-0="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"/>
<bus is_selected="false" level-0="alt_or" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[1]" pwr_level-0="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"/>
<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="dont_care" name="emu:emu|video_mixer:video_mixer|gamma_corr:gamma|ctr[0]" pwr_level-0="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"/>
</bus>
</setup_view>
<trigger_in_editor/>
<trigger_out_editor/>
</presentation>
<trigger CRC="74B35C35" attribute_mem_mode="false" gap_record="true" global_temp="1" name="trigger: 2026/01/13 02:01:16 #0" position="pre" power_up_trigger_mode="false" record_data_gap="true" segment_size="2048" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="true" 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|VGA_G[7]' == rising edge
<power_up enabled="yes">
</power_up>
<op_node>
<op_node left="452" top="174" type="Advanced Trigger Level Result"/>
</op_node>
</level>
</events>
<storage_qualifier_events>
<transitional>1111111111111111111
<pwr_up_transitional>1111111111111111111</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>
<log>
<data global_temp="1" name="log: Trig @ 2026/01/13 02:05:12 (0:0:0.2 elapsed)" power_up_mode="false" sample_depth="8192" trigger_position="1024">10000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000100010000000001000010001101010000100001000001101000010000100001110000001000010001001000000100001000110101000010000100000110100001000010000111000000100001000100100000010000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000Line truncated
<extradata>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111T11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
</log>
</trigger>
</signal_set>
<position_info>
<single attribute="active tab" value="0"/>
<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="1"/>
<single attribute="zoom level numerator" value="1"/>
<single attribute="zoom offset denominator" value="1"/>
<single attribute="zoom offset numerator" value="122880"/>
<multi attribute="timebars" size="2" value="1626,4678"/>
</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="0"/>
<single attribute="hierarchy widget height" value="96"/>
<single attribute="hierarchy widget visible" value="0"/>
<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,443,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,66"/>
<multi attribute="frame size" size="2" value="1204,686"/>
<multi attribute="jtag widget size" size="2" value="348,135"/>
</global_info>
</session>
+1 -1
View File
@@ -1 +1 @@
`define BUILD_NUMBER "004" `define BUILD_NUMBER "001"
+18
View File
@@ -1,3 +1,21 @@
1. Overlay support for the detection of no rom loading on power up AND misc
debugging. [done]
2. Fix video HSCREEN 4 mode which is used in some demos and rs-232 terminal
programs. [done]
3. Reworked sound output to faithfully emulate the analog muxing in the coco.
[done]
4. Routing RS-232 tx/rx lines to the SNAC port for initial serial debugging
of Fuji-Net interface. [done - untested]
To Do...
1. Add Fuji-Net port.
2. Add Speech / Music cart
3. Fix Castle of Tharoggad
1. Added support for cassette save. To use: A) You have to have a file [anyname.cas] 1. Added support for cassette save. To use: A) You have to have a file [anyname.cas]
which is larger than needed. B) Select the file through the UI Menu 'Save which is larger than needed. B) Select the file through the UI Menu 'Save
Cassette'. C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"' Cassette'. C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
+1 -1
View File
@@ -5,7 +5,6 @@ set_global_assignment -name VERILOG_FILE rtl/PS2_Key/ps2_keyboard.v
set_global_assignment -name MIF_FILE rtl/VDAC.mif set_global_assignment -name MIF_FILE rtl/VDAC.mif
set_global_assignment -name VERILOG_FILE rtl/VDAC.v set_global_assignment -name VERILOG_FILE rtl/VDAC.v
set_global_assignment -name VERILOG_FILE rtl/Mister_Video.v set_global_assignment -name VERILOG_FILE rtl/Mister_Video.v
set_global_assignment -name VERILOG_FILE rtl/Mister_Video_GIMEX.v
set_global_assignment -name VERILOG_FILE rtl/cocokey.v set_global_assignment -name VERILOG_FILE rtl/cocokey.v
set_global_assignment -name VERILOG_FILE rtl/UART_6551/uart_6551.v set_global_assignment -name VERILOG_FILE rtl/UART_6551/uart_6551.v
set_global_assignment -name VERILOG_FILE rtl/UART_6551/6551tx.v set_global_assignment -name VERILOG_FILE rtl/UART_6551/6551tx.v
@@ -36,4 +35,5 @@ set_global_assignment -name VERILOG_FILE rtl/EE_Cold_Bt.v
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd
set_global_assignment -name VHDL_FILE rtl/OVO.vhd
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc
+204
View File
@@ -0,0 +1,204 @@
<?xml version="1.0"?>
<instance entity-name="altera_pll" version="17.0" >
<generic name="debug_print_output" value="false" />
<generic name="debug_use_rbc_taf_method" value="false" />
<generic name="device_family" value="Cyclone V" />
<generic name="device" value="5CEBA2F17A7" />
<generic name="gui_device_speed_grade" value="1" />
<generic name="gui_pll_mode" value="Integer-N PLL" />
<generic name="gui_reference_clock_frequency" value="50.0" />
<generic name="gui_channel_spacing" value="0.0" />
<generic name="gui_operation_mode" value="direct" />
<generic name="gui_feedback_clock" value="Global Clock" />
<generic name="gui_fractional_cout" value="32" />
<generic name="gui_dsm_out_sel" value="1st_order" />
<generic name="gui_use_locked" value="true" />
<generic name="gui_en_adv_params" value="false" />
<generic name="gui_number_of_clocks" value="4" />
<generic name="gui_multiply_factor" value="1" />
<generic name="gui_frac_multiply_factor" value="1" />
<generic name="gui_divide_factor_n" value="1" />
<generic name="gui_cascade_counter0" value="false" />
<generic name="gui_output_clock_frequency0" value="114.545454" />
<generic name="gui_divide_factor_c0" value="1" />
<generic name="gui_actual_output_clock_frequency0" value="0 MHz" />
<generic name="gui_ps_units0" value="ps" />
<generic name="gui_phase_shift0" value="0" />
<generic name="gui_phase_shift_deg0" value="0.0" />
<generic name="gui_actual_phase_shift0" value="0" />
<generic name="gui_duty_cycle0" value="50" />
<generic name="gui_cascade_counter1" value="false" />
<generic name="gui_output_clock_frequency1" value="57.272727" />
<generic name="gui_divide_factor_c1" value="1" />
<generic name="gui_actual_output_clock_frequency1" value="0 MHz" />
<generic name="gui_ps_units1" value="ps" />
<generic name="gui_phase_shift1" value="0" />
<generic name="gui_phase_shift_deg1" value="0.0" />
<generic name="gui_actual_phase_shift1" value="0" />
<generic name="gui_duty_cycle1" value="50" />
<generic name="gui_cascade_counter2" value="false" />
<generic name="gui_output_clock_frequency2" value="28.636363" />
<generic name="gui_divide_factor_c2" value="1" />
<generic name="gui_actual_output_clock_frequency2" value="0 MHz" />
<generic name="gui_ps_units2" value="ps" />
<generic name="gui_phase_shift2" value="0" />
<generic name="gui_phase_shift_deg2" value="0.0" />
<generic name="gui_actual_phase_shift2" value="0" />
<generic name="gui_duty_cycle2" value="50" />
<generic name="gui_cascade_counter3" value="false" />
<generic name="gui_output_clock_frequency3" value="14.318181" />
<generic name="gui_divide_factor_c3" value="1" />
<generic name="gui_actual_output_clock_frequency3" value="0 MHz" />
<generic name="gui_ps_units3" value="ps" />
<generic name="gui_phase_shift3" value="0" />
<generic name="gui_phase_shift_deg3" value="0.0" />
<generic name="gui_actual_phase_shift3" value="0" />
<generic name="gui_duty_cycle3" value="50" />
<generic name="gui_cascade_counter4" value="false" />
<generic name="gui_output_clock_frequency4" value="100.0" />
<generic name="gui_divide_factor_c4" value="1" />
<generic name="gui_actual_output_clock_frequency4" value="0 MHz" />
<generic name="gui_ps_units4" value="ps" />
<generic name="gui_phase_shift4" value="0" />
<generic name="gui_phase_shift_deg4" value="0.0" />
<generic name="gui_actual_phase_shift4" value="0" />
<generic name="gui_duty_cycle4" value="50" />
<generic name="gui_cascade_counter5" value="false" />
<generic name="gui_output_clock_frequency5" value="100.0" />
<generic name="gui_divide_factor_c5" value="1" />
<generic name="gui_actual_output_clock_frequency5" value="0 MHz" />
<generic name="gui_ps_units5" value="ps" />
<generic name="gui_phase_shift5" value="0" />
<generic name="gui_phase_shift_deg5" value="0.0" />
<generic name="gui_actual_phase_shift5" value="0" />
<generic name="gui_duty_cycle5" value="50" />
<generic name="gui_cascade_counter6" value="false" />
<generic name="gui_output_clock_frequency6" value="100.0" />
<generic name="gui_divide_factor_c6" value="1" />
<generic name="gui_actual_output_clock_frequency6" value="0 MHz" />
<generic name="gui_ps_units6" value="ps" />
<generic name="gui_phase_shift6" value="0" />
<generic name="gui_phase_shift_deg6" value="0.0" />
<generic name="gui_actual_phase_shift6" value="0" />
<generic name="gui_duty_cycle6" value="50" />
<generic name="gui_cascade_counter7" value="false" />
<generic name="gui_output_clock_frequency7" value="100.0" />
<generic name="gui_divide_factor_c7" value="1" />
<generic name="gui_actual_output_clock_frequency7" value="0 MHz" />
<generic name="gui_ps_units7" value="ps" />
<generic name="gui_phase_shift7" value="0" />
<generic name="gui_phase_shift_deg7" value="0.0" />
<generic name="gui_actual_phase_shift7" value="0" />
<generic name="gui_duty_cycle7" value="50" />
<generic name="gui_cascade_counter8" value="false" />
<generic name="gui_output_clock_frequency8" value="100.0" />
<generic name="gui_divide_factor_c8" value="1" />
<generic name="gui_actual_output_clock_frequency8" value="0 MHz" />
<generic name="gui_ps_units8" value="ps" />
<generic name="gui_phase_shift8" value="0" />
<generic name="gui_phase_shift_deg8" value="0.0" />
<generic name="gui_actual_phase_shift8" value="0" />
<generic name="gui_duty_cycle8" value="50" />
<generic name="gui_cascade_counter9" value="false" />
<generic name="gui_output_clock_frequency9" value="100.0" />
<generic name="gui_divide_factor_c9" value="1" />
<generic name="gui_actual_output_clock_frequency9" value="0 MHz" />
<generic name="gui_ps_units9" value="ps" />
<generic name="gui_phase_shift9" value="0" />
<generic name="gui_phase_shift_deg9" value="0.0" />
<generic name="gui_actual_phase_shift9" value="0" />
<generic name="gui_duty_cycle9" value="50" />
<generic name="gui_cascade_counter10" value="false" />
<generic name="gui_output_clock_frequency10" value="100.0" />
<generic name="gui_divide_factor_c10" value="1" />
<generic name="gui_actual_output_clock_frequency10" value="0 MHz" />
<generic name="gui_ps_units10" value="ps" />
<generic name="gui_phase_shift10" value="0" />
<generic name="gui_phase_shift_deg10" value="0.0" />
<generic name="gui_actual_phase_shift10" value="0" />
<generic name="gui_duty_cycle10" value="50" />
<generic name="gui_cascade_counter11" value="false" />
<generic name="gui_output_clock_frequency11" value="100.0" />
<generic name="gui_divide_factor_c11" value="1" />
<generic name="gui_actual_output_clock_frequency11" value="0 MHz" />
<generic name="gui_ps_units11" value="ps" />
<generic name="gui_phase_shift11" value="0" />
<generic name="gui_phase_shift_deg11" value="0.0" />
<generic name="gui_actual_phase_shift11" value="0" />
<generic name="gui_duty_cycle11" value="50" />
<generic name="gui_cascade_counter12" value="false" />
<generic name="gui_output_clock_frequency12" value="100.0" />
<generic name="gui_divide_factor_c12" value="1" />
<generic name="gui_actual_output_clock_frequency12" value="0 MHz" />
<generic name="gui_ps_units12" value="ps" />
<generic name="gui_phase_shift12" value="0" />
<generic name="gui_phase_shift_deg12" value="0.0" />
<generic name="gui_actual_phase_shift12" value="0" />
<generic name="gui_duty_cycle12" value="50" />
<generic name="gui_cascade_counter13" value="false" />
<generic name="gui_output_clock_frequency13" value="100.0" />
<generic name="gui_divide_factor_c13" value="1" />
<generic name="gui_actual_output_clock_frequency13" value="0 MHz" />
<generic name="gui_ps_units13" value="ps" />
<generic name="gui_phase_shift13" value="0" />
<generic name="gui_phase_shift_deg13" value="0.0" />
<generic name="gui_actual_phase_shift13" value="0" />
<generic name="gui_duty_cycle13" value="50" />
<generic name="gui_cascade_counter14" value="false" />
<generic name="gui_output_clock_frequency14" value="100.0" />
<generic name="gui_divide_factor_c14" value="1" />
<generic name="gui_actual_output_clock_frequency14" value="0 MHz" />
<generic name="gui_ps_units14" value="ps" />
<generic name="gui_phase_shift14" value="0" />
<generic name="gui_phase_shift_deg14" value="0.0" />
<generic name="gui_actual_phase_shift14" value="0" />
<generic name="gui_duty_cycle14" value="50" />
<generic name="gui_cascade_counter15" value="false" />
<generic name="gui_output_clock_frequency15" value="100.0" />
<generic name="gui_divide_factor_c15" value="1" />
<generic name="gui_actual_output_clock_frequency15" value="0 MHz" />
<generic name="gui_ps_units15" value="ps" />
<generic name="gui_phase_shift15" value="0" />
<generic name="gui_phase_shift_deg15" value="0.0" />
<generic name="gui_actual_phase_shift15" value="0" />
<generic name="gui_duty_cycle15" value="50" />
<generic name="gui_cascade_counter16" value="false" />
<generic name="gui_output_clock_frequency16" value="100.0" />
<generic name="gui_divide_factor_c16" value="1" />
<generic name="gui_actual_output_clock_frequency16" value="0 MHz" />
<generic name="gui_ps_units16" value="ps" />
<generic name="gui_phase_shift16" value="0" />
<generic name="gui_phase_shift_deg16" value="0.0" />
<generic name="gui_actual_phase_shift16" value="0" />
<generic name="gui_duty_cycle16" value="50" />
<generic name="gui_cascade_counter17" value="false" />
<generic name="gui_output_clock_frequency17" value="100.0" />
<generic name="gui_divide_factor_c17" value="1" />
<generic name="gui_actual_output_clock_frequency17" value="0 MHz" />
<generic name="gui_ps_units17" value="ps" />
<generic name="gui_phase_shift17" value="0" />
<generic name="gui_phase_shift_deg17" value="0.0" />
<generic name="gui_actual_phase_shift17" value="0" />
<generic name="gui_duty_cycle17" value="50" />
<generic name="gui_pll_auto_reset" value="Off" />
<generic name="gui_pll_bandwidth_preset" value="Auto" />
<generic name="gui_en_reconf" value="false" />
<generic name="gui_en_dps_ports" value="false" />
<generic name="gui_en_phout_ports" value="false" />
<generic name="gui_phout_division" value="1" />
<generic name="gui_mif_generate" value="false" />
<generic name="gui_enable_mif_dps" value="false" />
<generic name="gui_dps_cntr" value="C0" />
<generic name="gui_dps_num" value="1" />
<generic name="gui_dps_dir" value="Positive" />
<generic name="gui_refclk_switch" value="false" />
<generic name="gui_refclk1_frequency" value="100.0" />
<generic name="gui_switchover_mode" value="Automatic Switchover" />
<generic name="gui_switchover_delay" value="0" />
<generic name="gui_active_clk" value="false" />
<generic name="gui_clk_bad" value="false" />
<generic name="gui_enable_cascade_out" value="false" />
<generic name="gui_cascade_outclk_index" value="0" />
<generic name="gui_enable_cascade_in" value="false" />
<generic name="gui_pll_cascading_mode" value="Create an adjpllin signal to connect with an upstream PLL" />
</instance>
Binary file not shown.
+2 -2
View File
@@ -233,7 +233,7 @@ begin
st_2: st_2:
begin begin
if (timer[18] == 1'b1) // 300ms time passed if (timer[17] == 1'b1) // 300ms time passed
begin begin
key_up_down <= RELEASE_KEY; key_up_down <= RELEASE_KEY;
state <= st_3; state <= st_3;
@@ -242,7 +242,7 @@ begin
st_3: st_3:
begin begin
if (timer[18] == 1'b0) // 300ms time passed if (timer[17] == 1'b0) // 300ms time passed
begin begin
shift <= 1'b0; shift <= 1'b0;
timer_enable <= 1'b0; timer_enable <= 1'b0;
+71 -28
View File
@@ -88,6 +88,7 @@ HSYNC_N,
VSYNC_N, VSYNC_N,
HBLANKING, HBLANKING,
VBLANKING, VBLANKING,
VBLANK_PRIME,
// RAM / Buffer // RAM / Buffer
RAM_ADDRESS, RAM_ADDRESS,
@@ -124,13 +125,21 @@ HBORDER,
VBORDER, VBORDER,
HBORDER_INT, HBORDER_INT,
VBORDER_INT, VBORDER_INT,
art art,
PIXEL_COUNT,
LINE
); );
input MASTER_CLK; input MASTER_CLK;
input PIX_CLK; output PIX_CLK;
reg PIX_CLK;
input RESET_N; input RESET_N;
output [10:0] PIXEL_COUNT;
reg [10:0] PIXEL_COUNT;
output [9:0] LINE;
reg [9:0] LINE;
output [9:0] COLOR; output [9:0] COLOR;
reg [9:0] COLOR; reg [9:0] COLOR;
output HSYNC_N; output HSYNC_N;
@@ -138,6 +147,8 @@ reg HSYNC_N;
output VSYNC_N; output VSYNC_N;
output HBLANKING; output HBLANKING;
reg HBLANKING; reg HBLANKING;
output VBLANK_PRIME;
reg VBLANK_PRIME;
output VBLANKING; output VBLANKING;
reg VBLANKING; reg VBLANKING;
@@ -169,7 +180,7 @@ input PHASE;
input SWITCH; input SWITCH;
output [10:0] ROM_ADDRESS; output [10:0] ROM_ADDRESS;
input [7:0] ROM_DATA1; input [7:0] ROM_DATA1;
output HBORDER; output HBORDER;
output VBORDER; output VBORDER;
output HBORDER_INT; output HBORDER_INT;
@@ -180,10 +191,8 @@ reg VBORDER_INT;
input [1:0] art; input [1:0] art;
//reg HBLANKING; //reg HBLANKING;
reg [9:0] LINE;
reg [3:0] VLPR; reg [3:0] VLPR;
//reg [3:0] COCO_VLPR; //reg [3:0] COCO_VLPR;
reg [10:0] PIXEL_COUNT;
reg [15:0] CHAR_LATCH_0_TMP; reg [15:0] CHAR_LATCH_0_TMP;
reg [15:0] CHAR_LATCH_1_TMP; reg [15:0] CHAR_LATCH_1_TMP;
reg [15:0] CHAR_LATCH_2_TMP; reg [15:0] CHAR_LATCH_2_TMP;
@@ -237,7 +246,7 @@ wire [8:0] BUF_ADD_BASE;
//reg [353:0] VSYNC_DELAY; //reg [353:0] VSYNC_DELAY;
//reg VBLANKING; //reg VBLANKING;
//wire [3:0] SG_VLPR; //wire [3:0] SG_VLPR;
reg [139:0] VSYNC_DELAY; //reg [139:0] VSYNC_DELAY;
reg VBORDER; reg VBORDER;
reg VSYNC_FLAG; reg VSYNC_FLAG;
reg HBORDER_DELAY; reg HBORDER_DELAY;
@@ -1504,22 +1513,41 @@ assign PIXEL_X =
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101001) ? {6'h00,CHAR_LATCH_0[9:8]}: ({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101001) ? {6'h00,CHAR_LATCH_0[9:8]}:
//4 Color 512/640 = 640/4 = 160 //4 Color 512/640 = 640/4 = 160
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[7:6]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[5:4]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[5:4]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[3:2]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[3:2]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[1:0]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[1:0]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_0[15:14]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_0[15:14]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_0[13:12]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_0[13:12]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_0[11:10]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_0[11:10]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_0[9:8]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_0[9:8]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}: //({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}:
// Update by G. Becker on 4/18/26 to fix HSCREEN 4 mode (640 x 192) 4 color mode.
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[9:8]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_1[7:6]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_1[5:4]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_1[3:2]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_1[1:0]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_1[15:14]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_1[13:12]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_1[11:10]}:
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}:
//16 Color 32/40 = 40/2 = 20 //16 Color 32/40 = 40/2 = 20
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000100010) ? {4'h0,CHAR_LATCH_0[7:4]}: ({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000100010) ? {4'h0,CHAR_LATCH_0[7:4]}:
@@ -1785,6 +1813,15 @@ HBlanking has to be 1 for border
HBORDER has to be 1 for main display HBORDER has to be 1 for main display
HBlanking has to be 0 for main display HBlanking has to be 0 for main display
******************************************************************************/ ******************************************************************************/
always @ (posedge MASTER_CLK)
begin
reg [1:0] div;
PIX_CLK <= 1'b0;
div <= div + 1'b1;
if ((div == 2'd1) || (div == 2'd2))
PIX_CLK <= 1'b1;
end
always @ (negedge MASTER_CLK) always @ (negedge MASTER_CLK)
if(PIX_CLK == 1'b0 && PIX_CLK_DELAY == 1'b1) if(PIX_CLK == 1'b0 && PIX_CLK_DELAY == 1'b1)
begin begin
@@ -1820,6 +1857,10 @@ always @ (negedge MASTER_CLK)
11'd724: // End of right border 720 + 44 - 1 (+ 64) start of back porch 11'd724: // End of right border 720 + 44 - 1 (+ 64) start of back porch
begin begin
HBORDER <= 1'b0; // 736 - 28 HBORDER <= 1'b0; // 736 - 28
if (LINE == 9'd262)
VBLANK_PRIME <= 1'b0;
if (LINE == 9'd5)
VBLANK_PRIME <= 1'b1;
PIXEL_COUNT <= 11'd725; PIXEL_COUNT <= 11'd725;
end end
@@ -1927,12 +1968,14 @@ assign SG6 = VLPR[3:2];
* Generate clock for VSYNC_N by * Generate clock for VSYNC_N by
* Delaying VSYNC_FLAG by 137 pixels * Delaying VSYNC_FLAG by 137 pixels
*************************************/ *************************************/
assign VSYNC_N = VSYNC_DELAY[137]; //assign VSYNC_N = VSYNC_DELAY[137];
always @ (negedge MASTER_CLK) //always @ (negedge MASTER_CLK)
if(PIX_CLK == 1'b0 && PIX_CLK_DELAY == 1'b1) // if(PIX_CLK == 1'b0 && PIX_CLK_DELAY == 1'b1)
begin // begin
VSYNC_DELAY <= {VSYNC_DELAY[138:0], VSYNC_FLAG}; // VSYNC_DELAY <= {VSYNC_DELAY[138:0], VSYNC_FLAG};
end // end
assign VSYNC_N = VSYNC_FLAG;
/***************************************************************************** /*****************************************************************************
* Keeps track of how many lines are in each row. * Keeps track of how many lines are in each row.
File diff suppressed because it is too large. Load diff
+195
View File
@@ -0,0 +1,195 @@
--------------------------------------------------------------------------------
-- Overlay
--------------------------------------------------------------------------------
-- DO 10/2017
-- SH 5/15/26 Modified for COCO3
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.numeric_std.ALL;
ENTITY ovo IS
GENERIC (
COLS : natural :=32;
LINES : natural :=2;
RGB : unsigned(23 DOWNTO 0) :=x"FFFFFF";
H_OFFSET : natural :=4;
V_OFFSET : natural :=45
);
PORT (
-- VGA IN
i_r : IN unsigned(7 DOWNTO 0);
i_g : IN unsigned(7 DOWNTO 0);
i_b : IN unsigned(7 DOWNTO 0);
-- i_hs : IN std_logic;
-- i_vs : IN std_logic;
-- i_de : IN std_logic;
-- i_en : IN std_logic;
i_clk : IN std_logic;
i_Hcount : IN unsigned(10 DOWNTO 0);
i_VCount : IN unsigned(9 DOWNTO 0);
-- VGA_OUT
o_r : OUT unsigned(7 DOWNTO 0);
o_g : OUT unsigned(7 DOWNTO 0);
o_b : OUT unsigned(7 DOWNTO 0);
-- o_hs : OUT std_logic;
-- o_vs : OUT std_logic;
-- o_de : OUT std_logic;
-- Control
ena : IN std_logic; -- Overlay ON/OFF
-- Probes
in0 : IN unsigned(COLS*5-1 downto 0);
in1 : IN unsigned(COLS*5-1 downto 0)
);
END ENTITY ovo;
--##############################################################################
ARCHITECTURE rtl OF ovo IS
TYPE arr_slv8 IS ARRAY (natural RANGE <>) OF unsigned(7 DOWNTO 0);
CONSTANT chars : arr_slv8 :=(
x"3E", x"63", x"73", x"7B", x"6F", x"67", x"3E", x"00", -- 0
x"0C", x"0E", x"0C", x"0C", x"0C", x"0C", x"3F", x"00", -- 1
x"1E", x"33", x"30", x"1C", x"06", x"33", x"3F", x"00", -- 2
x"1E", x"33", x"30", x"1C", x"30", x"33", x"1E", x"00", -- 3
x"38", x"3C", x"36", x"33", x"7F", x"30", x"78", x"00", -- 4
x"3F", x"03", x"1F", x"30", x"30", x"33", x"1E", x"00", -- 5
x"1C", x"06", x"03", x"1F", x"33", x"33", x"1E", x"00", -- 6
x"3F", x"33", x"30", x"18", x"0C", x"0C", x"0C", x"00", -- 7
x"1E", x"33", x"33", x"1E", x"33", x"33", x"1E", x"00", -- 8
x"1E", x"33", x"33", x"3E", x"30", x"18", x"0E", x"00", -- 9
x"0C", x"1E", x"33", x"33", x"3F", x"33", x"33", x"00", -- A
x"3F", x"66", x"66", x"3E", x"66", x"66", x"3F", x"00", -- B
x"3C", x"66", x"03", x"03", x"03", x"66", x"3C", x"00", -- C
x"1F", x"36", x"66", x"66", x"66", x"36", x"1F", x"00", -- D
x"7F", x"46", x"16", x"1E", x"16", x"46", x"7F", x"00", -- E
x"7F", x"46", x"16", x"1E", x"16", x"06", x"0F", x"00", -- F
x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", --' ' 10
x"00", x"00", x"3F", x"00", x"00", x"3F", x"00", x"00", -- = 11
x"00", x"0C", x"0C", x"3F", x"0C", x"0C", x"00", x"00", -- + 12
x"00", x"00", x"00", x"3F", x"00", x"00", x"00", x"00", -- - 13
x"18", x"0C", x"06", x"03", x"06", x"0C", x"18", x"00", -- < 14
x"06", x"0C", x"18", x"30", x"18", x"0C", x"06", x"00", -- > 15
x"08", x"1C", x"36", x"63", x"41", x"00", x"00", x"00", -- ^ 16
x"08", x"1C", x"36", x"63", x"41", x"00", x"00", x"00", -- v 17
x"18", x"0C", x"06", x"06", x"06", x"0C", x"18", x"00", -- ( 18
x"06", x"0C", x"18", x"18", x"18", x"0C", x"06", x"00", -- ) 19
x"00", x"0C", x"0C", x"00", x"00", x"0C", x"0C", x"00", -- : 1A
-- x"00", x"00", x"00", x"00", x"00", x"0C", x"0C", x"00", -- . 1B
-- x"00", x"00", x"00", x"00", x"00", x"0C", x"0C", x"06", -- , 1C
-- x"1E", x"33", x"30", x"18", x"0C", x"00", x"0C", x"00", -- ? 1D
-- x"18", x"18", x"18", x"00", x"18", x"18", x"18", x"00", -- | 1E
x"41", x"43", x"45", x"49", x"51", x"61", x"41", x"00", -- N 1B
x"3E", x"41", x"41", x"41", x"41", x"41", x"3E", x"00", -- O 1C
x"3F", x"41", x"41", x"3F", x"11", x"21", x"41", x"00", -- R 1D
x"41", x"63", x"55", x"49", x"41", x"41", x"41", x"00", -- M 1E
x"36", x"36", x"7F", x"36", x"7F", x"36", x"36", x"00"); -- # 1F
SIGNAL vcpt,hcpt,hcpt2 : natural RANGE 0 TO 4095;
SIGNAL vin0,vin1 : unsigned(0 TO COLS*5-1);
SIGNAL t_r,t_g,t_b : unsigned(7 DOWNTO 0);
SIGNAL t_hs,t_vs,t_de : std_logic;
SIGNAL col : unsigned(7 DOWNTO 0);
SIGNAL de : std_logic;
SIGNAL in0s,in1s : unsigned(in0'range);
BEGIN
in0s<=in0 WHEN rising_edge(i_clk);
in1s<=in1 WHEN rising_edge(i_clk);
----------------------------------------------------------
Megamix:PROCESS(i_clk) IS
VARIABLE vin_v : unsigned(0 TO 32*5-1);
VARIABLE char_v : unsigned(4 DOWNTO 0);
BEGIN
IF rising_edge(i_clk) THEN
--IF i_en='1' THEN
----------------------------------
-- Propagate VGA signals. 2 cycles delay
t_r<=i_r;
t_g<=i_g;
t_b<=i_b;
-- t_hs<=i_hs;
-- t_vs<=i_vs;
-- t_de<=i_de;
o_r<=t_r;
o_g<=t_g;
o_b<=t_b;
-- o_hs<=t_hs;
-- o_vs<=t_vs;
-- o_de<=t_de;
----------------------------------
-- Latch sampled values during vertical sync
-- IF i_vs='1' THEN
IF (i_Hcount="000000000" and i_VCount="000000000") THEN
vin0<=in0s;
vin1<=in1s;
END IF;
----------------------------------
-- IF i_vs='1' THEN
-- vcpt<=0;
-- de<='0';
-- ELSIF i_hs='1' AND t_hs='0' AND de='1' THEN
-- vcpt<=(vcpt+1) MOD 4096;
-- END IF;
-- if (i_Hcount < 148) then -- 148 = video left border
-- if (i_Hcount < 148) then -- 148 = video left border
if (i_Hcount < H_OFFSET) then -- 4 = video left border
hcpt <= COLS*8;
else
hcpt <= to_integer(i_Hcount)-H_OFFSET;
end if;
-- if (i_Vcount < 16) then
-- if (i_Vcount < 16) then
if (i_Vcount < V_OFFSET) then
vcpt <= 512;
else
vcpt <= to_integer(i_Vcount)-V_OFFSET;
end if;
----------------------------------
IF (vcpt/8) MOD 2=0 THEN
vin_v:=vin0;
ELSE
vin_v:=vin1;
END IF;
-- IF i_hs='1' THEN
-- hcpt<=0;
-- ELSIF i_de='1' THEN
-- hcpt<=(hcpt+1) MOD 4096;
-- de<='1';
-- END IF;
hcpt2<=hcpt;
----------------------------------
-- Pick characters
IF hcpt<COLS * 8 AND vcpt<LINES * 8 THEN
-- no=> need to reverse string so 0-4 is left (not right!)
char_v:=vin_v((hcpt/8)*5 TO (hcpt/8)*5+4);
-- char_v:=vin_v(((COLS-1) - (hcpt/8))*5 TO ((COLS-1) - (hcpt/8))*5+4);
ELSE
char_v:="10000"; -- " " : Blank character
END IF;
col<=chars(to_integer(char_v)*8+(vcpt MOD 8));
----------------------------------
-- Insert Overlay
IF ena='1' THEN
IF col(hcpt2 MOD 8)='1' THEN
o_r<=RGB(23 DOWNTO 16);
o_g<=RGB(15 DOWNTO 8);
o_b<=RGB( 7 DOWNTO 0);
END IF;
END IF;
--END IF;
END IF;
END PROCESS Megamix;
END ARCHITECTURE rtl;
+253 -123
View File
@@ -87,9 +87,9 @@ input COCO_RESET_N,
// Video // Video
output reg [7:0] RED, output reg [7:0] RED_O,
output reg [7:0] GREEN, output reg [7:0] GREEN_O,
output reg [7:0] BLUE, output reg [7:0] BLUE_O,
output reg H_SYNC, output reg H_SYNC,
output reg V_SYNC, output reg V_SYNC,
@@ -106,6 +106,8 @@ input ps2_data,
input [24:0] ps2_mouse, input [24:0] ps2_mouse,
input Display_Debug,
// RS-232 // RS-232
output UART_TXD, output UART_TXD,
input UART_RXD, input UART_RXD,
@@ -170,7 +172,8 @@ inout [7:0] GPIO,
// Misc // Misc
input EE_N, input EE_N,
input PHASE, input PHASE,
output [31:0] PROBE, output [6:0] PROBE_O,
input [6:0] PROBE_I,
// Cassette Input linkage // Cassette Input linkage
output clk_Q_out, output clk_Q_out,
@@ -685,18 +688,28 @@ rtc #(50000000) CC3_rtc(
// Probe's defined // Probe's defined
//assign PROBE[6:0] = {CART1_POL, CART1_BUF_RESET_N, CART1_FIRQ_STAT_N, CART1_CLK_N, CART1_FIRQ_N, RESET_N, PH_2}; assign PROBE_O[6:0] = {TMR_CLK, DATA_IN[5], RST_FF93_N_SFT[0], RST_FF93_N, !TIMER3_FIRQ_N, 1'b1, UART_TXD};
//assign PROBE[7:0] = {1'b0, CART1_POL, CART1_FIRQ_N, CART1_FIRQ_BUF[0], CART1_CLK_N_D, CART1_FIRQ_RESET_N, CART1_CLK_N, PH_2};
assign PROBE[7:0] = {1'b0, TMR_CLK, DATA_IN[5], RST_FF93_N_SFT[0], RST_FF93_N, !TIMER3_FIRQ_N, VSYNC_INT_N, TIMER_INT_N};
assign PROBE[15:8] = 8'h00;
assign PROBE[23:16] = 8'h00;
//assign PROBE[31:24] = {3'b000, DATA_OUT[3], MOTOR, DRIVE_SEL_EXT[0], HDD_EN, ADDRESS[0]};
assign PROBE[31:24] = {8'h00};
assign clk_sys = CLK_57; assign clk_sys = CLK_57;
assign BUTTON_N[3:0] = {COCO_RESET_N, 2'b1,EE_N}; assign BUTTON_N[3:0] = {COCO_RESET_N, 2'b1,EE_N};
wire UART_TXD_I;
wire UART_RXD_I;
assign UART_TXD = SWITCH[4]? coco_rs232_out:
UART_TXD_I;
assign uart_input = SWITCH[8]? PROBE_I[1]:
UART_RXD;
wire uart_input;
assign coco_rs232_in = uart_input;
assign UART_RXD_I = uart_input;
/***************************************************************************** /*****************************************************************************
* RAM signals * RAM signals
@@ -771,9 +784,9 @@ assign CART_SEL = (ADDRESS[15:8] == 8'b1
//11 32 External //11 32 External
assign FLASH_ADDRESS = ENA_DSK ? {9'b000000100, ADDRESS[12:0]}: //8K Disk BASIC 8K Slot 4 assign FLASH_ADDRESS = ENA_DSK ? {9'b000000000, ADDRESS[12:0]}: //8K Disk BASIC 8K Slot 4
ENA_DISK2 ? {9'b000000100, ADDRESS[12:0]}: //[maps to same disk rom] ENA_DISK2 ? {9'b000000000, ADDRESS[12:0]}: //[maps to same disk rom]
({ENA_PAK, ROM[1]} == 2'b10) ? {5'b00000,ROM_BANK, ADDRESS[13:0]}: //16K External R CART ROM ({ENA_PAK, ROM[1]} == 2'b10) ? {5'b00000,ROM_BANK, ADDRESS[13:0]}: //16K External R CART ROM
({ENA_PAK, ROM} == 3'b111) ? {4'b0000,ROM_BANK, ~ADDRESS[14], ADDRESS[13:0]}: //32K External R CART ROM ({ENA_PAK, ROM} == 3'b111) ? {4'b0000,ROM_BANK, ~ADDRESS[14], ADDRESS[13:0]}: //32K External R CART ROM
{7'b0000000,ADDRESS[14:0]}; //32K Internal COCO3 ROM {7'b0000000,ADDRESS[14:0]}; //32K Internal COCO3 ROM
@@ -804,6 +817,25 @@ wire COCO3_ROM_WRITE = (ioctl_index[7:0] == {BOOT0, BOOT}) & ioctl_wr;
wire COCO3_DISKROM_WRITE = (ioctl_index[7:0] == {BOOT1, BOOT}) & ioctl_wr; wire COCO3_DISKROM_WRITE = (ioctl_index[7:0] == {BOOT1, BOOT}) & ioctl_wr;
wire COCO3_CART_WRITE = (ioctl_index[5:0] == 6'd1) & ioctl_wr & !cart_lock; wire COCO3_CART_WRITE = (ioctl_index[5:0] == 6'd1) & ioctl_wr & !cart_lock;
reg rom_loaded = 1'b0;
always @(negedge clk_sys)
begin
if({ioctl_addr[14], COCO3_ROM_WRITE} == 2'b11)
rom_loaded <= 1'b1;
end
// A decision.
// Looking at this logic it is fairly obvious that the 8Kx8 ROM is not needed.
// Physically (bus wise) it sits in the same place as the CART rom and is obviously
// smaller. I have made these changes at least twice during the development of
// this code. While it works and saves the resources of a 8kx8 sram, it does not
// work well from a systems perspective. With only 1 rom, when you load a cart
// then go back to a slot 2/4 disk system you have no os. So now you have to load
// boot1.bin as a cart from slot 3, then change back to 2/4 to restore dos. No real
// way to fix it. I could put dos at the top 8K of the 128K, then only 128K carts
// would cause a issue. But there still is an issue which would need to be explained.
// I choose not, along with this explanation why. SRH 5/29/26
COCO_ROM_32K CC3_ROM( COCO_ROM_32K CC3_ROM(
.ADDR(FLASH_ADDRESS[14:0]), .ADDR(FLASH_ADDRESS[14:0]),
@@ -814,6 +846,8 @@ COCO_ROM_32K CC3_ROM(
.WRITE(COCO3_ROM_WRITE) .WRITE(COCO3_ROM_WRITE)
); );
// DOS Cart for slot 2/4
COCO_ROM_8K CC3_DISK_ROM( COCO_ROM_8K CC3_DISK_ROM(
.ADDR(FLASH_ADDRESS[12:0]), .ADDR(FLASH_ADDRESS[12:0]),
.DATA(COCO3_DISK_ROM_DATA), .DATA(COCO3_DISK_ROM_DATA),
@@ -824,10 +858,9 @@ COCO_ROM_8K CC3_DISK_ROM(
); );
assign FLASH_DATA = ENA_PAK ? CART_DATA: assign FLASH_DATA = ENA_PAK ? CART_DATA:
(FLASH_ADDRESS[15] == 1'b0) ? COCO3_ROM_DATA: (ENA_DSK || ENA_DISK2) ? COCO3_DISK_ROM_DATA:
(FLASH_ADDRESS[15:13] == 3'b100) ? COCO3_DISK_ROM_DATA: COCO3_ROM_DATA;
8'b00000000;
COCO_ROM_CART CC3_ROM_CART( COCO_ROM_CART CC3_ROM_CART(
@@ -863,7 +896,10 @@ assign SDC_EN_CS = ({MPI_SCS, ADDRESS[15:5]} == 13'b0111111111010) ? 1'b1:
1'b0; 1'b0;
`endif `endif
assign RS232_EN = ({MPI_SCS, ADDRESS[15:2]} == 16'b0011111111011010) ? 1'b1: //FF68-FF6B - Now in slot 1 //assign RS232_EN = ({MPI_SCS, ADDRESS[15:2]} == 16'b0011111111011010) ? 1'b1: //FF68-FF6B - Now in slot 1
// 1'b0 ;
assign RS232_EN = ({MPI_SCS[0], ADDRESS[15:2]} == 15'b111111111011010) ? 1'b1: //FF68-FF6B - Now in slot 2 and 4
1'b0; 1'b0;
assign SLOT3_HW = ({SWITCH[2:1], ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F Ensure this only appears in slot 3 PHYSICALLY assign SLOT3_HW = ({SWITCH[2:1], ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F Ensure this only appears in slot 3 PHYSICALLY
@@ -1134,13 +1170,13 @@ assign DATA_REG2 = !DDR2 ? DD_REG2:
KEY_COLUMN; KEY_COLUMN;
assign DATA_REG3 = !DDR3 ? DD_REG3: assign DATA_REG3 = !DDR3 ? DD_REG3:
{DTOA_CODE, 1'b1, casdout}; {DTOA_CODE, coco_rs232_out, casdout};
// A 0 in the DDR makes that pin an input // A 0 in the DDR makes that pin an input
assign BIT3 = !DD_REG4[3] ? 1'b0: assign BIT3 = !DD_REG4[3] ? 1'b0:
CSS; CSS;
assign DATA_REG4 = !DDR4 ? DD_REG4: assign DATA_REG4 = !DDR4 ? DD_REG4:
{VDG_CONTROL, BIT3, KEY_COLUMN[6], SBS, 1'b1}; {VDG_CONTROL, BIT3, KEY_COLUMN[6], SBS, coco_rs232_in};
/******************************************************************************** /********************************************************************************
* GPIO * GPIO
*********************************************************************************/ *********************************************************************************/
@@ -2642,6 +2678,9 @@ end
//end //end
reg sync_rst1; reg sync_rst1;
reg coco_rs232_out;
wire coco_rs232_in;
wire coco_rs232_cd;
// Most of the latches for settings // Most of the latches for settings
always @ (negedge clk_sys or negedge RESET_N) always @ (negedge clk_sys or negedge RESET_N)
@@ -2667,6 +2706,7 @@ begin
SEL[1] <= 1'b0; SEL[1] <= 1'b0;
// FF20 // FF20
DD_REG3 <= 8'h00; DD_REG3 <= 8'h00;
coco_rs232_out <= 1'b0;
DTOA_CODE <= 6'b000000; DTOA_CODE <= 6'b000000;
SOUND_DTOA <= 6'b000000; SOUND_DTOA <= 6'b000000;
// BBTXD <= 1'b0; // BBTXD <= 1'b0;
@@ -2855,8 +2895,9 @@ begin
case ({SOUND_EN,SEL}) case ({SOUND_EN,SEL})
3'b100: 3'b100:
SOUND_DTOA <= DTOA_CODE; SOUND_DTOA <= DTOA_CODE;
3'b111: // This is still no sound as it just holds the previous DTOA Value
SOUND_DTOA <= 6'b000000; // 3'b111:
// SOUND_DTOA <= 6'b000000;
endcase endcase
if(!RW_N) if(!RW_N)
@@ -2931,6 +2972,7 @@ begin
DD_REG3 <= DATA_OUT; DD_REG3 <= DATA_OUT;
else else
begin begin
coco_rs232_out <= DATA_OUT[1];
DTOA_CODE <= DATA_OUT[7:2]; DTOA_CODE <= DATA_OUT[7:2];
end end
end end
@@ -3511,7 +3553,12 @@ end
// Internal Sound generation // Internal Sound generation
//assign SOUND = {SBS, 7'b0000000} + {SOUND_DTOA, SOUND_DTOA[5:4]}; //assign SOUND = {SBS, 7'b0000000} + {SOUND_DTOA, SOUND_DTOA[5:4]};
assign SOUND = {SBS, SOUND_DTOA, SOUND_DTOA[5]}; //assign SOUND = {SBS, SOUND_DTOA, SOUND_DTOA[5]};
//assign SOUND = {SBS || SOUND_DTOA[5], SOUND_DTOA[4:0], SOUND_DTOA[1:0]};
// Ver 3 of the sound arch
assign SOUND = SOUND_EN ? {SOUND_DTOA, 2'b00}:
{SBS,SBS,SBS,SBS,SBS,SBS, 2'b00};
assign SOUND_LEFT = {ORCH_LEFT, ORCH_LEFT} + {SOUND, SOUND}; assign SOUND_LEFT = {ORCH_LEFT, ORCH_LEFT} + {SOUND, SOUND};
assign SOUND_RIGHT = {ORCH_RIGHT, ORCH_RIGHT} + {SOUND, SOUND}; assign SOUND_RIGHT = {ORCH_RIGHT, ORCH_RIGHT} + {SOUND, SOUND};
@@ -3807,7 +3854,7 @@ end
* Video * Video
******************************************************************************/ ******************************************************************************/
assign PIX_CLK = CLK_14; //assign PIX_CLK = CLK_14;
wire PIX_CLK_D; wire PIX_CLK_D;
@@ -3817,22 +3864,40 @@ wire PIX_CLK_D;
// The VBOARDER is used as a VBLANK as is [inverted] // The VBOARDER is used as a VBLANK as is [inverted]
reg [3:0] MISTER_HBLANK_D; reg [3:0] MISTER_HBLANK_D;
assign HBLANK = MISTER_HBLANK_D[1]; // This is 2 clock delay on the ~HBORDER... assign HBLANK_ORG = MISTER_HBLANK_D[2]; // This is 2 clock delay on the ~HBORDER...
assign VBLANK = ~VBORDER; // KEY: 01/14/26
//assign HBLANK = MISTER_HBLANK_D[2]; // This is 2 clock delay on the ~HBORDER...
//assign VBLANK = ~VBORDER;
wire VBLANK_PRIME;
assign RED[3:0] = RED[7:4]; assign VBLANK_ORG = ~VBLANK_PRIME;
assign GREEN[3:0] = GREEN[7:4]; // KEY: 01/14/26
assign BLUE[3:0] = BLUE[7:4]; //assign VBLANK = ~VBLANK_PRIME;
assign RED_ORG[3:0] = RED_ORG[7:4];
assign GREEN_ORG[3:0] = GREEN_ORG[7:4];
assign BLUE_ORG[3:0] = BLUE_ORG[7:4];
// KEY: 01/14/26
//assign RED[3:0] = RED[7:4];
//assign GREEN[3:0] = GREEN[7:4];
//assign BLUE[3:0] = BLUE[7:4];
// Video DAC // Video DAC
always @ (negedge clk_sys) always @ (negedge clk_sys)
begin begin
PIX_CLK_D <= PIX_CLK; // PIX_CLK_D <= PIX_CLK;
if (PIX_CLK == 1'b1 & PIX_CLK_D == 1'b0) // if (PIX_CLK == 1'b1 & PIX_CLK_D == 1'b0)
// KEY: 01/14/26
PIX_CLK_D <= PIX_CLK_ORG;
if (PIX_CLK_ORG == 1'b1 & PIX_CLK_D == 1'b0)
begin begin
COLOR_BUF <= COLOR; // Delay COLOR by 1 clock cycle to align with 256 Color SRAM 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 H_SYNC_ORG <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
V_SYNC <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle V_SYNC_ORG <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
// H_SYNC <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
// V_SYNC <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
// KEY: 01/14/26
// RED[3:0] <= 4'B0000; // RED[3:0] <= 4'B0000;
// GREEN[3:0] <= 4'B0000; // GREEN[3:0] <= 4'B0000;
// BLUE[3:0] <= 4'B0000; // BLUE[3:0] <= 4'B0000;
@@ -3844,27 +3909,48 @@ begin
if(COLOR_BUF[8]) if(COLOR_BUF[8])
begin 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]; // KEY: 01/14/26
// {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];
{RED_ORG[7], GREEN_ORG[7], BLUE_ORG[7], RED_ORG[6], GREEN_ORG[6], BLUE_ORG[6], RED_ORG[5], GREEN_ORG[5], BLUE_ORG[5], RED_ORG[4], GREEN_ORG[4], BLUE_ORG[4]} <= VDAC_OUT[11:0];
end end
else else
begin begin
RED[7] <= PALETTE[COLOR_BUF[4:0]][11]; // KEY: 01/14/26
RED[6] <= PALETTE[COLOR_BUF[4:0]][8]; // RED[7] <= PALETTE[COLOR_BUF[4:0]][11];
RED[5] <= PALETTE[COLOR_BUF[4:0]][5]; // RED[6] <= PALETTE[COLOR_BUF[4:0]][8];
RED[4] <= PALETTE[COLOR_BUF[4:0]][2]; // RED[5] <= PALETTE[COLOR_BUF[4:0]][5];
GREEN[7] <= PALETTE[COLOR_BUF[4:0]][10]; // RED[4] <= PALETTE[COLOR_BUF[4:0]][2];
GREEN[6] <= PALETTE[COLOR_BUF[4:0]][7]; // GREEN[7] <= PALETTE[COLOR_BUF[4:0]][10];
GREEN[5] <= PALETTE[COLOR_BUF[4:0]][4]; // GREEN[6] <= PALETTE[COLOR_BUF[4:0]][7];
GREEN[4] <= PALETTE[COLOR_BUF[4:0]][1]; // GREEN[5] <= PALETTE[COLOR_BUF[4:0]][4];
BLUE[7] <= PALETTE[COLOR_BUF[4:0]][9]; // GREEN[4] <= PALETTE[COLOR_BUF[4:0]][1];
BLUE[6] <= PALETTE[COLOR_BUF[4:0]][6]; // BLUE[7] <= PALETTE[COLOR_BUF[4:0]][9];
BLUE[5] <= PALETTE[COLOR_BUF[4:0]][3]; // BLUE[6] <= PALETTE[COLOR_BUF[4:0]][6];
BLUE[4] <= PALETTE[COLOR_BUF[4:0]][0]; // BLUE[5] <= PALETTE[COLOR_BUF[4:0]][3];
// BLUE[4] <= PALETTE[COLOR_BUF[4:0]][0];
// end
// RED[4] = RED[6];
// GREEN[4] = GREEN[6];
// BLUE[5] = BLUE[7];
// BLUE[4] = BLUE[6];
RED_ORG[7] <= PALETTE[COLOR_BUF[4:0]][11];
RED_ORG[6] <= PALETTE[COLOR_BUF[4:0]][8];
RED_ORG[5] <= PALETTE[COLOR_BUF[4:0]][5];
RED_ORG[4] <= PALETTE[COLOR_BUF[4:0]][2];
GREEN_ORG[7] <= PALETTE[COLOR_BUF[4:0]][10];
GREEN_ORG[6] <= PALETTE[COLOR_BUF[4:0]][7];
GREEN_ORG[5] <= PALETTE[COLOR_BUF[4:0]][4];
GREEN_ORG[4] <= PALETTE[COLOR_BUF[4:0]][1];
BLUE_ORG[7] <= PALETTE[COLOR_BUF[4:0]][9];
BLUE_ORG[6] <= PALETTE[COLOR_BUF[4:0]][6];
BLUE_ORG[5] <= PALETTE[COLOR_BUF[4:0]][3];
BLUE_ORG[4] <= PALETTE[COLOR_BUF[4:0]][0];
end end
RED[4] = RED[6]; RED_ORG[4] = RED_ORG[6];
GREEN[4] = GREEN[6]; GREEN_ORG[4] = GREEN_ORG[6];
BLUE[5] = BLUE[7]; BLUE_ORG[5] = BLUE_ORG[7];
BLUE[4] = BLUE[6]; BLUE_ORG[4] = BLUE_ORG[6];
end end
end end
@@ -3872,7 +3958,9 @@ end
VDAC VDAC_inst ( VDAC VDAC_inst (
.data ( {4'h0,PALETTE[0][11:0]} ), .data ( {4'h0,PALETTE[0][11:0]} ),
.rdaddress ( COLOR[7:0] ), .rdaddress ( COLOR[7:0] ),
.rdclock ( PIX_CLK ), .rdclock ( PIX_CLK_ORG ),
// .rdclock ( PIX_CLK ),
// KEY: 01/14/26
.wraddress ( DATA_OUT ), .wraddress ( DATA_OUT ),
.wrclock ( clk_sys ), .wrclock ( clk_sys ),
.wren ( VDAC_EN & PH_2 ), .wren ( VDAC_EN & PH_2 ),
@@ -3888,12 +3976,35 @@ wire VBLANK_1;
wire HBLANK_1; wire HBLANK_1;
wire double, buff_bank; wire double, buff_bank;
`ifndef CoCo3_Select_GIMEX_RAST //
// Sync to pos edge of ck_sys
// Key: 01/14/26
//
reg HBLANK_ORG, VBLANK_ORG, PIX_CLK_ORG, H_SYNC_ORG, V_SYNC_ORG;
reg [7:0] RED_ORG;
reg [7:0] GREEN_ORG;
reg [7:0] BLUE_ORG;
always @ (posedge clk_sys)
begin
HBLANK <= HBLANK_ORG;
VBLANK <= VBLANK_ORG;
PIX_CLK <= PIX_CLK_ORG;
H_SYNC <= H_SYNC_ORG;
V_SYNC <= V_SYNC_ORG;
RED <= RED_ORG;
GREEN <= GREEN_ORG;
BLUE <= BLUE_ORG;
end
// Video timing and modes // Video timing and modes
COCO3VIDEO MISTER_COCOVID( COCO3VIDEO MISTER_COCOVID(
// Clocks / RESET // Clocks / RESET
.MASTER_CLK(clk_sys), .MASTER_CLK(clk_sys),
.PIX_CLK(PIX_CLK), //14.32 MHz = 69.3 nS .PIX_CLK(PIX_CLK_ORG), //14.32 MHz = 69.3 nS
.RESET_N(RESET_N), .RESET_N(RESET_N),
// Video Out // Video Out
@@ -3902,6 +4013,7 @@ COCO3VIDEO MISTER_COCOVID(
.VSYNC_N(V_SYNC_N), .VSYNC_N(V_SYNC_N),
.HBLANKING(HBLANK_1), .HBLANKING(HBLANK_1),
.VBLANKING(VBLANK_1), .VBLANKING(VBLANK_1),
.VBLANK_PRIME(VBLANK_PRIME),
// RAM / Buffer // RAM / Buffer
.RAM_ADDRESS(VIDEO_ADDRESS), .RAM_ADDRESS(VIDEO_ADDRESS),
@@ -3950,76 +4062,15 @@ COCO3VIDEO MISTER_COCOVID(
.HBORDER(HBORDER), .HBORDER(HBORDER),
.VBORDER(VBORDER), .VBORDER(VBORDER),
.art(SWITCH[7:6]) .art(SWITCH[7:6]),
.PIXEL_COUNT(PIXEL_COUNT),
.LINE(LINE)
); );
`else reg [10:0] PIXEL_COUNT;
reg [9:0] LINE;
wire [9:0] BUFF_ADD_temp;
assign BUFF_ADD = BUFF_ADD_temp[8:0];
COCO3VIDEO_GIMEX MISTER_COCOVID(
// Clocks / RESET
.PIX_CLK(PIX_CLK), //14.32 MHz = 69.3 nS
.RESET_N(RESET_N),
.COLOR(COLOR),
.HSYNC_N(H_SYNC_N),
.VSYNC_N(V_SYNC_N),
// RAM / Buffer
.BUFF_ADD_F(BUFF_ADD_temp),
.RAM_ADD(VIDEO_ADDRESS),
.RAM_DATA(BUFF_DATA),
// Mode Selection
.COCO1(COCO1),
.V(V),
.BP(GRMODE),
.VERT(VERT),
.VID_CONT(VDG_CONTROL),
.CSS(CSS),
.LPF(LPF),
.VERT_FIN_SCRL(VERT_FIN_SCRL),
.HLPR(HLPR),
.LPR(LPR),
.HRES(HRES),
.CRES(CRES),
.HVEN(HVEN),
// Starting location
.SCRN_START_HSB(SCRN_START_HSB), // 2 extra bits for 2MB screen start
.SCRN_START_MSB(SCRN_START_MSB),
.SCRN_START_LSB(SCRN_START_LSB),
.SWITCH(SWITCH[5]),
.BLINK(BLINK),
.ARTI(SWITCH[7:6]),
.PHASE(PHASE),
.HBORDER(HBORDER),
.VBORDER(VBORDER),
// Interrupts
`ifdef CoCo3_Horz_INT_FIX
.HBORDER_INT(HBORDER_INT),
`endif
`ifdef CoCo3_Vert_INT_FIX
.VBORDER_INT(VBORDER_INT),
`endif
// .DOUBLE(double),
// .BUFF_BANK(buff_bank),
.TURBO(1'b0),
.SDRate(1'b0),
.ROM_ADDRESS(font_adrs),
.ROM_DATA1(font_data)
);
`endif
parameter SHDOW_FONT_LOCK_REG = 16'hfff0; parameter SHDOW_FONT_LOCK_REG = 16'hfff0;
parameter SHDOW_FONT_DATA_REG = 16'hfff1; parameter SHDOW_FONT_DATA_REG = 16'hfff1;
@@ -4131,7 +4182,9 @@ coco3_Char_ROM coco3_Char_ROM(
.WE(((ioctl_index[5:0] == 6'd3) & ioctl_wr) | Font_ROM_Mach_WE), // Can be just Font_ROM_Mach_WE if no MISTer .WE(((ioctl_index[5:0] == 6'd3) & ioctl_wr) | Font_ROM_Mach_WE), // Can be just Font_ROM_Mach_WE if no MISTer
.ADDR_W(Font_ROM_Adrs_Buf), .ADDR_W(Font_ROM_Adrs_Buf),
.DATA_W(Font_ROM_Data_Buf), .DATA_W(Font_ROM_Data_Buf),
.RD_CLK(PIX_CLK), .RD_CLK(PIX_CLK_ORG),
// .RD_CLK(PIX_CLK),
// KEY: 01/14/26
.ADDR_R({(COCO1 ^ Font_ROM_Upper_Select), font_adrs}), .ADDR_R({(COCO1 ^ Font_ROM_Upper_Select), font_adrs}),
.DATA_R(font_data) .DATA_R(font_data)
); );
@@ -4179,8 +4232,8 @@ glb6551 RS232(
.CS({1'b0, RS232_EN}), .CS({1'b0, RS232_EN}),
.RW_N(RW_N), .RW_N(RW_N),
.RS(ADDRESS[1:0]), .RS(ADDRESS[1:0]),
.TXDATA_OUT(UART_TXD), .TXDATA_OUT(UART_TXD_I),
.RXDATA_IN(UART_RXD), .RXDATA_IN(UART_RXD_I),
.RTS(UART_RTS), .RTS(UART_RTS),
.CTS(UART_CTS), .CTS(UART_CTS),
.DCD(1'b1), .DCD(1'b1),
@@ -4215,5 +4268,82 @@ Cassette_Write CoCo3_Cassette_Write(
.sd_buff_wr(sd_buff_wr) .sd_buff_wr(sd_buff_wr)
); );
wire [7:0] RED;
wire [7:0] GREEN;
wire [7:0] BLUE;
assign RED_O = RED | CN_R;
assign GREEN_O = GREEN;
assign BLUE_O = BLUE;
wire [159:0]NOrom1;
wire [159:0]NOrom2;
reg [7:0] CN_R ;
reg pixel_clk_d, clk_7Mhz;
always @ (negedge clk_sys)
begin
pixel_clk_d <= PIX_CLK_ORG;
if (PIX_CLK_ORG==1'b1 && pixel_clk_d==1'b0)
clk_7Mhz <= !clk_7Mhz;
end
ovo #(.COLS(32), .LINES(23)) NOROMOVO
(
.i_r(8'd0),
.i_g(8'd0),
.i_b(8'd0),
.i_clk(PIX_CLK_ORG),
.i_Hcount({1'b0, PIXEL_COUNT[10:1]}),
.i_VCount(LINE),
.o_r(CN_R),
.ena(Display_Debug || ((!rom_loaded) && SEC[0])),
.in0(NOrom1),
.in1(NOrom2)
);
assign NOrom2 = {
{32{5'b10000}}
};
assign NOrom1 = {
//{17{5'b10000}},
5'b10000, // space
5'b11011, // N
5'b11100, // O
5'b10000, // space
5'b11101, // R
5'b11100, // O
5'b11110, // M
5'b10000, // space
5'b10011, // -
5'b10000, // space
5'b11011, // N
5'b11100, // O
5'b10000, // space
5'b11101, // R
5'b11100, // O
5'b11110, // M
5'b10000, // space
5'b11011, // N
5'b11100, // O
5'b10000, // space
5'b11101, // R
5'b11100, // O
5'b11110, // M
5'b10000, // space
5'b10011, // -
5'b10000, // space
5'b11011, // N
5'b11100, // O
5'b10000, // space
5'b11101, // R
5'b11100, // O
5'b11110 // M
};
endmodule endmodule
+2 -2
View File
@@ -101,7 +101,7 @@ localparam [7:0] FEATURE_8 = 8'h80;
`define CoCo3_disable_GART_in_GIMEX `define CoCo3_disable_GART_in_GIMEX
`define Feat_6 `define Feat_6
// `set_feature(CoCo3_Select_GIMEX_RAST,Feat_7) // Use GIMEX Rasterizer Engine // `set_feature(,Feat_7) // Open Feature
// `define CoCo3_Select_GIMEX_RAST // `define New_Feature...
// `define Feat_7 // `define Feat_7
+5
View File
@@ -99,6 +99,11 @@ generate
assign G = {RGB_fix[7:4],RGB_fix[7:4]}; assign G = {RGB_fix[7:4],RGB_fix[7:4]};
assign B = {RGB_fix[3:0],RGB_fix[3:0]}; assign B = {RGB_fix[3:0],RGB_fix[3:0]};
end end
else if(DW == 18) begin
assign R = {RGB_fix[17:12],RGB_fix[17:16]};
assign G = {RGB_fix[11: 6],RGB_fix[11:10]};
assign B = {RGB_fix[ 5: 0],RGB_fix[ 5: 4]};
end
else begin // 24 else begin // 24
assign R = RGB_fix[23:16]; assign R = RGB_fix[23:16];
assign G = RGB_fix[15:8]; assign G = RGB_fix[15:8];
+170 -51
View File
@@ -103,7 +103,7 @@ USE ieee.numeric_std.ALL;
-- DOWNSCALE : True=Support downscaling False=Downscaling disabled -- DOWNSCALE : True=Support downscaling False=Downscaling disabled
-- BYTESWAP : Little/Big endian byte swap -- BYTESWAP : Little/Big endian byte swap
-- FRAC : Fractional bits, subpixel resolution -- FRAC : Fractional bits, subpixel resolution
-- OHRES : Max. output horizontal resolution. Must be a power of two. -- OHRES : Max. output horizontal resolution. 1024, 2048, 2304, 2560, 4096
-- (Used for sizing line buffers) -- (Used for sizing line buffers)
-- IHRES : Max. input horizontal resolution. Must be a power of two. -- IHRES : Max. input horizontal resolution. Must be a power of two.
-- (Used for sizing line buffers) -- (Used for sizing line buffers)
@@ -125,7 +125,7 @@ ENTITY ascal IS
ADAPTIVE : boolean := true; ADAPTIVE : boolean := true;
DOWNSCALE_NN : boolean := false; DOWNSCALE_NN : boolean := false;
FRAC : natural RANGE 4 TO 8 :=4; FRAC : natural RANGE 4 TO 8 :=4;
OHRES : natural RANGE 1 TO 4096 :=2048; OHRES : natural RANGE 1 TO 4096 :=2304;
IHRES : natural RANGE 1 TO 2048 :=2048; IHRES : natural RANGE 1 TO 2048 :=2048;
N_DW : natural RANGE 64 TO 128 := 128; N_DW : natural RANGE 64 TO 128 := 128;
N_AW : natural RANGE 8 TO 32 := 32; N_AW : natural RANGE 8 TO 32 := 32;
@@ -201,9 +201,10 @@ ENTITY ascal IS
i_vdmax : OUT natural RANGE 0 TO 4095; i_vdmax : OUT natural RANGE 0 TO 4095;
-- Output video parameters -- Output video parameters
run : IN std_logic :='1'; -- 1=Enable output image. 0=No image run : IN std_logic :='1'; -- 1=Enable output image. 0=No image
freeze : IN std_logic :='0'; -- 1=Disable framebuffer writes freeze : IN std_logic :='0'; -- 1=Disable framebuffer writes
mode : IN unsigned(4 DOWNTO 0); mode : IN unsigned(4 DOWNTO 0);
bob_deint : IN std_logic := '0';
-- SYNC |_________________________/"""""""""\_______| -- SYNC |_________________________/"""""""""\_______|
-- DE |""""""""""""""""""\________________________| -- DE |""""""""""""""""""\________________________|
-- RGB | <#IMAGE#> ^HDISP | -- RGB | <#IMAGE#> ^HDISP |
@@ -222,6 +223,7 @@ ENTITY ascal IS
vmax : IN natural RANGE 0 TO 4095; -- 0 <= vmin < vmax < vdisp vmax : IN natural RANGE 0 TO 4095; -- 0 <= vmin < vmax < vdisp
vrr : IN std_logic := '0'; vrr : IN std_logic := '0';
vrrmax : IN natural RANGE 0 TO 4095 := 0; vrrmax : IN natural RANGE 0 TO 4095 := 0;
swblack : IN std_logic := '0'; -- will output 3 black frame on every resolution switch
-- Scaler format. 00=16bpp 565, 01=24bpp 10=32bpp -- Scaler format. 00=16bpp 565, 01=24bpp 10=32bpp
format : IN unsigned(1 DOWNTO 0) :="01"; format : IN unsigned(1 DOWNTO 0) :="01";
@@ -257,6 +259,9 @@ ENTITY ascal IS
BEGIN BEGIN
ASSERT N_DW=64 OR N_DW=128 REPORT "DW" SEVERITY failure; ASSERT N_DW=64 OR N_DW=128 REPORT "DW" SEVERITY failure;
ASSERT OHRES = 1024 OR OHRES = 2048 OR OHRES = 2304 OR
OHRES = 2560 OR OHRES = 4096 REPORT "OHRES" SEVERITY failure;
END ENTITY ascal; END ENTITY ascal;
--############################################################################## --##############################################################################
@@ -287,10 +292,39 @@ ARCHITECTURE rtl OF ascal IS
END IF; END IF;
END FUNCTION to_std_logic; END FUNCTION to_std_logic;
----------------------------------------------------------
FUNCTION ohres_h(CONSTANT r : natural) RETURN natural IS
BEGIN
CASE r IS
WHEN 1024 => RETURN 1024;
WHEN 2048 => RETURN 2048;
WHEN OTHERS => RETURN 4096;
END CASE;
END FUNCTION;
FUNCTION ohres_l(CONSTANT r : natural) RETURN natural IS
BEGIN
CASE r IS
WHEN 1024 => RETURN 1024;
WHEN 2048 | 2304 | 2560 => RETURN 2048;
WHEN OTHERS => RETURN 4096;
END CASE;
END FUNCTION;
FUNCTION ohres_m(CONSTANT r : natural) RETURN natural IS
BEGIN
CASE r IS
WHEN 1024 | 2048 | 2304 => RETURN 256;
WHEN OTHERS => RETURN 512;
END CASE;
END FUNCTION;
CONSTANT OHRESH : natural := ohres_h(OHRES);
CONSTANT OHRESL : natural := ohres_l(OHRES);
CONSTANT OHRESM : natural := ohres_m(OHRES);
---------------------------------------------------------- ----------------------------------------------------------
CONSTANT NB_BURST : natural :=ilog2(N_BURST); CONSTANT NB_BURST : natural :=ilog2(N_BURST);
CONSTANT NB_LA : natural :=ilog2(N_DW/8); -- Low address bits CONSTANT NB_LA : natural :=ilog2(N_DW/8); -- Low address bits
CONSTANT BLEN : natural :=N_BURST / N_DW * 8; -- Burst length CONSTANT BLEN : natural :=N_BURST / N_DW * 8; -- Burst length
---------------------------------------------------------- ----------------------------------------------------------
TYPE arr_dw IS ARRAY (natural RANGE <>) OF unsigned(N_DW-1 DOWNTO 0); TYPE arr_dw IS ARRAY (natural RANGE <>) OF unsigned(N_DW-1 DOWNTO 0);
@@ -318,6 +352,7 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL i_pvs,i_pfl,i_pde,i_pce : std_logic; SIGNAL i_pvs,i_pfl,i_pde,i_pce : std_logic;
SIGNAL i_ppix : type_pix; SIGNAL i_ppix : type_pix;
SIGNAL i_freeze : std_logic; SIGNAL i_freeze : std_logic;
SIGNAL i_bob_deint : std_logic;
SIGNAL i_count : unsigned(2 DOWNTO 0); SIGNAL i_count : unsigned(2 DOWNTO 0);
SIGNAL i_hsize,i_hmin,i_hmax,i_hcpt : uint12; SIGNAL i_hsize,i_hmin,i_hmax,i_hcpt : uint12;
SIGNAL i_hrsize,i_vrsize : uint12; SIGNAL i_hrsize,i_vrsize : uint12;
@@ -333,6 +368,7 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL i_de_delay : natural RANGE 0 TO 31; SIGNAL i_de_delay : natural RANGE 0 TO 31;
SIGNAL i_intercnt : natural RANGE 0 TO 3; SIGNAL i_intercnt : natural RANGE 0 TO 3;
SIGNAL i_inter,i_half,i_flm : std_logic; SIGNAL i_inter,i_half,i_flm : std_logic;
SIGNAL i_wfl : std_logic_vector(2 DOWNTO 0);
SIGNAL i_write,i_wreq,i_alt,i_line,i_wline,i_wline_mem : std_logic; SIGNAL i_write,i_wreq,i_alt,i_line,i_wline,i_wline_mem : std_logic;
SIGNAL i_walt,i_walt_mem,i_wreq_mem : std_logic; SIGNAL i_walt,i_walt_mem,i_wreq_mem : std_logic;
SIGNAL i_wdelay : natural RANGE 0 TO 7; SIGNAL i_wdelay : natural RANGE 0 TO 7;
@@ -362,7 +398,7 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL i_hacc,i_vacc : uint13; SIGNAL i_hacc,i_vacc : uint13;
SIGNAL i_hdown,i_vdown : std_logic; SIGNAL i_hdown,i_vdown : std_logic;
SIGNAL i_divcpt : natural RANGE 0 TO 36; SIGNAL i_divcpt : natural RANGE 0 TO 36;
SIGNAL i_lwad,i_lrad : natural RANGE 0 TO OHRES-1; SIGNAL i_lwad,i_lrad : natural RANGE 0 TO OHRESH-1;
SIGNAL i_lwr,i_bil : std_logic; SIGNAL i_lwr,i_bil : std_logic;
SIGNAL i_ldw,i_ldrm : type_pix; SIGNAL i_ldw,i_ldrm : type_pix;
SIGNAL i_hpixp,i_hpix0,i_hpix1,i_hpix2,i_hpix3,i_hpix4 : type_pix; SIGNAL i_hpixp,i_hpix0,i_hpix1,i_hpix2,i_hpix3,i_hpix4 : type_pix;
@@ -410,6 +446,8 @@ ARCHITECTURE rtl OF ascal IS
-- Output -- Output
SIGNAL o_run : std_logic; SIGNAL o_run : std_logic;
SIGNAL o_freeze : std_logic; SIGNAL o_freeze : std_logic;
SIGNAL o_bob_deint : std_logic;
SIGNAL o_iwfl : std_logic_vector(2 DOWNTO 0);
SIGNAL o_mode,o_hmode,o_vmode : unsigned(4 DOWNTO 0); SIGNAL o_mode,o_hmode,o_vmode : unsigned(4 DOWNTO 0);
SIGNAL o_format : unsigned(5 DOWNTO 0); SIGNAL o_format : unsigned(5 DOWNTO 0);
SIGNAL o_fb_pal_dr : unsigned(23 DOWNTO 0); SIGNAL o_fb_pal_dr : unsigned(23 DOWNTO 0);
@@ -456,13 +494,21 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL o_reset_na : std_logic; SIGNAL o_reset_na : std_logic;
SIGNAL o_dpram : arr_dw(0 TO BLEN*2-1); SIGNAL o_dpram : arr_dw(0 TO BLEN*2-1);
ATTRIBUTE ramstyle OF o_dpram : SIGNAL IS "no_rw_check"; ATTRIBUTE ramstyle OF o_dpram : SIGNAL IS "no_rw_check";
SIGNAL o_line0,o_line1,o_line2,o_line3 : arr_pix(0 TO OHRES-1); SIGNAL o_line0,o_line1,o_line2,o_line3 : arr_pix(0 TO OHRESL-1);
SIGNAL o_linf0,o_linf1,o_linf2,o_linf3 : arr_pix(0 TO OHRESM-1);
ATTRIBUTE ramstyle OF o_line0 : SIGNAL IS "no_rw_check"; ATTRIBUTE ramstyle OF o_line0 : SIGNAL IS "no_rw_check";
ATTRIBUTE ramstyle OF o_line1 : SIGNAL IS "no_rw_check"; ATTRIBUTE ramstyle OF o_line1 : SIGNAL IS "no_rw_check";
ATTRIBUTE ramstyle OF o_line2 : SIGNAL IS "no_rw_check"; ATTRIBUTE ramstyle OF o_line2 : SIGNAL IS "no_rw_check";
ATTRIBUTE ramstyle OF o_line3 : SIGNAL IS "no_rw_check"; ATTRIBUTE ramstyle OF o_line3 : SIGNAL IS "no_rw_check";
SIGNAL o_wadl,o_radl0,o_radl1,o_radl2,o_radl3 : natural RANGE 0 TO OHRES-1; ATTRIBUTE ramstyle OF o_linf0 : SIGNAL IS "no_rw_check";
SIGNAL o_ldw,o_ldr0,o_ldr1,o_ldr2,o_ldr3 : type_pix; ATTRIBUTE ramstyle OF o_linf1 : SIGNAL IS "no_rw_check";
ATTRIBUTE ramstyle OF o_linf2 : SIGNAL IS "no_rw_check";
ATTRIBUTE ramstyle OF o_linf3 : SIGNAL IS "no_rw_check";
SIGNAL o_wadl,o_radl0,o_radl1,o_radl2,o_radl3 : natural RANGE 0 TO OHRESH-1;
SIGNAL o_ldr0,o_ldr1,o_ldr2,o_ldr3,o_ldw : type_pix;
SIGNAL o_ler0,o_ler1,o_ler2,o_ler3 : type_pix;
SIGNAL o_lex0,o_lex1,o_lex2,o_lex3 : std_logic;
SIGNAL o_wr : unsigned(3 DOWNTO 0); SIGNAL o_wr : unsigned(3 DOWNTO 0);
SIGNAL o_hcpt,o_vcpt,o_vcpt_pre,o_vcpt_pre2,o_vcpt_pre3,o_vcpt2 : uint12; SIGNAL o_hcpt,o_vcpt,o_vcpt_pre,o_vcpt_pre2,o_vcpt_pre3,o_vcpt2 : uint12;
SIGNAL o_ihsize,o_ihsizem,o_ivsize : uint12; SIGNAL o_ihsize,o_ihsizem,o_ivsize : uint12;
@@ -472,7 +518,7 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL o_hfrac : arr_frac(0 TO 9); SIGNAL o_hfrac : arr_frac(0 TO 9);
ATTRIBUTE ramstyle OF o_hfrac : SIGNAL IS "logic"; -- avoid blockram shift register ATTRIBUTE ramstyle OF o_hfrac : SIGNAL IS "logic"; -- avoid blockram shift register
SIGNAL o_hacc,o_hacc_ini,o_hacc_next,o_vacc,o_vacc_next,o_vacc_ini : natural RANGE 0 TO 4*OHRES-1; SIGNAL o_hacc,o_hacc_ini,o_hacc_next,o_vacc,o_vacc_next,o_vacc_ini : natural RANGE 0 TO 4*OHRESH-1;
SIGNAL o_hsv,o_vsv,o_dev,o_pev,o_end : unsigned(0 TO 11); SIGNAL o_hsv,o_vsv,o_dev,o_pev,o_end : unsigned(0 TO 11);
SIGNAL o_hsp,o_vss : std_logic; SIGNAL o_hsp,o_vss : std_logic;
SIGNAL o_vcarrym,o_prim : boolean; SIGNAL o_vcarrym,o_prim : boolean;
@@ -490,8 +536,9 @@ ARCHITECTURE rtl OF ascal IS
TYPE arr_uint4 IS ARRAY (natural RANGE <>) OF natural RANGE 0 TO 15; TYPE arr_uint4 IS ARRAY (natural RANGE <>) OF natural RANGE 0 TO 15;
SIGNAL o_off : arr_uint4(0 TO 2); SIGNAL o_off : arr_uint4(0 TO 2);
SIGNAL o_bibu : std_logic :='0'; SIGNAL o_bibu : std_logic :='0';
SIGNAL o_dcptv : arr_uint12(1 TO 14); SIGNAL o_dcptv : arr_uint12(13 TO 14);
SIGNAL o_dcpt : uint12; SIGNAL o_dcpt_clr, o_dcpt_inc : std_logic;
SIGNAL o_dcptv_clr, o_dcptv_inc : std_logic_vector(1 TO 12);
SIGNAL o_hpixs,o_hpix0,o_hpix1,o_hpix2,o_hpix3 : type_pix; SIGNAL o_hpixs,o_hpix0,o_hpix1,o_hpix2,o_hpix3 : type_pix;
SIGNAL o_hpixq : arr_pixq(2 TO 8); SIGNAL o_hpixq : arr_pixq(2 TO 8);
ATTRIBUTE ramstyle OF o_hpixq : SIGNAL IS "logic"; -- avoid blockram shift register ATTRIBUTE ramstyle OF o_hpixq : SIGNAL IS "logic"; -- avoid blockram shift register
@@ -499,7 +546,6 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL o_vpix_outer : arr_pix(0 TO 2); SIGNAL o_vpix_outer : arr_pix(0 TO 2);
SIGNAL o_vpix_inner : arr_pix(0 TO 6); SIGNAL o_vpix_inner : arr_pix(0 TO 6);
SIGNAL o_vpe : std_logic; SIGNAL o_vpe : std_logic;
SIGNAL o_div : arr_div(0 TO 2); --uint12; SIGNAL o_div : arr_div(0 TO 2); --uint12;
SIGNAL o_dir : arr_frac(0 TO 2); SIGNAL o_dir : arr_frac(0 TO 2);
@@ -510,6 +556,7 @@ ARCHITECTURE rtl OF ascal IS
SIGNAL o_divrun : std_logic; SIGNAL o_divrun : std_logic;
SIGNAL o_hacpt,o_vacpt : unsigned(11 DOWNTO 0); SIGNAL o_hacpt,o_vacpt : unsigned(11 DOWNTO 0);
SIGNAL o_vacptl : unsigned(1 DOWNTO 0); SIGNAL o_vacptl : unsigned(1 DOWNTO 0);
signal o_newres : integer range 0 to 3;
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
FUNCTION shift_ishift(shift : unsigned(0 TO 119); FUNCTION shift_ishift(shift : unsigned(0 TO 119);
@@ -528,11 +575,11 @@ ARCHITECTURE rtl OF ascal IS
END CASE; END CASE;
END FUNCTION; END FUNCTION;
FUNCTION shift_ipack( i_dw : unsigned(N_DW-1 DOWNTO 0); FUNCTION shift_ipack(i_dw : unsigned(N_DW-1 DOWNTO 0);
acpt : natural RANGE 0 TO 15; acpt : natural RANGE 0 TO 15;
shift : unsigned(0 TO 119); shift : unsigned(0 TO 119);
pix : type_pix; pix : type_pix;
format : unsigned(1 DOWNTO 0)) RETURN unsigned IS format : unsigned(1 DOWNTO 0)) RETURN unsigned IS
VARIABLE dw : unsigned(N_DW-1 DOWNTO 0); VARIABLE dw : unsigned(N_DW-1 DOWNTO 0);
BEGIN BEGIN
dw:=i_dw; dw:=i_dw;
@@ -1130,6 +1177,7 @@ BEGIN
i_pushhead<='0'; i_pushhead<='0';
i_eol<='0'; -- End Of Line i_eol<='0'; -- End Of Line
i_freeze <=freeze; -- <ASYNC> i_freeze <=freeze; -- <ASYNC>
i_bob_deint <= bob_deint;
i_iauto<=iauto; -- <ASYNC> i_iauto<=iauto; -- <ASYNC>
i_wreq<='0'; i_wreq<='0';
i_wr<='0'; i_wr<='0';
@@ -1190,11 +1238,13 @@ BEGIN
i_vcpt<=0; i_vcpt<=0;
IF i_inter='1' AND i_flm='0' AND i_half='0' AND INTER THEN IF i_inter='1' AND i_flm='0' AND i_half='0' AND INTER THEN
i_line<='1'; i_line<='1';
i_wfl(o_ibuf1) <= '0';
i_adrsi<=to_unsigned(N_BURST * i_hburst,32) + i_adrsi<=to_unsigned(N_BURST * i_hburst,32) +
to_unsigned(N_BURST * to_integer( to_unsigned(N_BURST * to_integer(
unsigned'("00") & to_std_logic(HEADER)),32); unsigned'("00") & to_std_logic(HEADER)),32);
ELSE ELSE
i_line<='0'; i_line<='0';
i_wfl(o_ibuf0) <= '1';
i_adrsi<=to_unsigned(N_BURST * to_integer( i_adrsi<=to_unsigned(N_BURST * to_integer(
unsigned'("00") & to_std_logic(HEADER)),32); unsigned'("00") & to_std_logic(HEADER)),32);
END IF; END IF;
@@ -1204,8 +1254,8 @@ BEGIN
i_vcpt>=i_vmin AND i_vcpt<=i_vmax); i_vcpt>=i_vmin AND i_vcpt<=i_vmax);
-- Detects end of frame for triple buffering. -- Detects end of frame for triple buffering.
i_endframe0<=i_vs AND (NOT i_inter OR i_flm); i_endframe0<=i_vs AND (NOT i_inter OR i_flm OR i_bob_deint);
i_endframe1<=i_vs AND (NOT i_inter OR NOT i_flm); i_endframe1<=i_vs AND (NOT i_inter OR NOT i_flm OR i_bob_deint);
i_vss<=to_std_logic(i_vcpt>=i_vmin AND i_vcpt<=i_vmax); i_vss<=to_std_logic(i_vcpt>=i_vmin AND i_vcpt<=i_vmax);
@@ -1453,12 +1503,12 @@ BEGIN
-- Push pixels to downscaling line buffer -- Push pixels to downscaling line buffer
i_lwr<=i_hnp4 AND i_ven5 AND i_pce; i_lwr<=i_hnp4 AND i_ven5 AND i_pce;
IF i_lwr='1' THEN IF i_lwr='1' THEN
i_lwad<=(i_lwad+1) MOD OHRES; i_lwad<=(i_lwad+1) MOD OHRESH;
END IF; END IF;
i_ldw<=i_hpix; i_ldw<=i_hpix;
IF i_hnp3='1' AND i_ven4='1' AND i_pce='1' THEN IF i_hnp3='1' AND i_ven4='1' AND i_pce='1' THEN
i_lrad<=(i_lrad+1) MOD OHRES; i_lrad<=(i_lrad+1) MOD OHRESH;
END IF; END IF;
------------------------------------------------------ ------------------------------------------------------
@@ -1817,7 +1867,7 @@ BEGIN
VARIABLE shift_v : unsigned(0 TO N_DW+15); VARIABLE shift_v : unsigned(0 TO N_DW+15);
VARIABLE hpix_v : type_pix; VARIABLE hpix_v : type_pix;
VARIABLE hcarry_v,vcarry_v : boolean; VARIABLE hcarry_v,vcarry_v : boolean;
VARIABLE dif_v : natural RANGE 0 TO 8*OHRES-1; VARIABLE dif_v : natural RANGE 0 TO 8*OHRESH-1;
VARIABLE off_v : natural RANGE 0 TO 15; VARIABLE off_v : natural RANGE 0 TO 15;
BEGIN BEGIN
IF o_reset_na='0' THEN IF o_reset_na='0' THEN
@@ -1862,6 +1912,8 @@ BEGIN
o_isync <= '0'; o_isync <= '0';
o_isync2 <= o_isync; o_isync2 <= o_isync;
o_freeze <= freeze; o_freeze <= freeze;
o_bob_deint <= bob_deint;
o_iwfl <= i_wfl;
o_inter <=i_inter; -- <ASYNC> o_inter <=i_inter; -- <ASYNC>
o_iendframe0<=i_endframe0; -- <ASYNC> o_iendframe0<=i_endframe0; -- <ASYNC>
o_iendframe02<=o_iendframe0; o_iendframe02<=o_iendframe0;
@@ -1890,6 +1942,14 @@ BEGIN
o_ivsize<=i_vrsize; -- <ASYNC> o_ivsize<=i_vrsize; -- <ASYNC>
o_hdown<=i_hdown; -- <ASYNC> o_hdown<=i_hdown; -- <ASYNC>
o_vdown<=i_vdown; -- <ASYNC> o_vdown<=i_vdown; -- <ASYNC>
IF (o_newres > 0) then
o_newres <= o_newres- 1;
END IF;
END IF;
IF (swblack = '1' and o_fb_ena = '0' and (o_ihsize /= i_hrsize or o_ivsize /= i_vrsize)) then
o_newres <= 3;
END IF; END IF;
-- Simultaneous change of input and output framebuffers -- Simultaneous change of input and output framebuffers
@@ -2086,7 +2146,26 @@ BEGIN
o_read<=o_read_pre AND o_run; o_read<=o_read_pre AND o_run;
o_rline<=o_vacpt(0); -- Even/Odd line for interlaced video o_rline<=o_vacpt(0); -- Even/Odd line for interlaced video
o_adrs_pre<=to_integer(o_vacpt) * to_integer(o_stride); ----
-- When bob deinterlacing we read lines from one buffer (the most current) but we read them twice
-- (in contrast to weave deinterlacing where we read each 480p line from alternating buffers)
-- To counteract the severe vibrating/motion with bob deinterlacing, we need to offset one field
-- by a half-line. This is done by only reading the first line of the 'even' frame once
IF o_inter='1' AND o_bob_deint='1' THEN
IF o_iwfl(o_obuf0)='0' THEN
IF o_vacpt=0 OR o_rline='1' THEN
o_adrs_pre <= to_integer(o_vacpt) * to_integer(o_stride);
ELSE
o_adrs_pre <= (to_integer(o_vacpt)-1) * to_integer(o_stride);
END IF;
ELSE
o_adrs_pre <= to_integer(o_vacpt(11 DOWNTO 1) & "0") * to_integer(o_stride);
END IF;
ELSE
o_adrs_pre<=to_integer(o_vacpt) * to_integer(o_stride);
END IF;
IF o_adrsa='1' THEN IF o_adrsa='1' THEN
IF o_fload=2 THEN IF o_fload=2 THEN
o_adrs<=to_unsigned(o_hbcpt * N_BURST,32); o_adrs<=to_unsigned(o_hbcpt * N_BURST,32);
@@ -2103,6 +2182,9 @@ BEGIN
------------------------------------------------------ ------------------------------------------------------
-- Copy from buffered memory to pixel lines -- Copy from buffered memory to pixel lines
o_sh<='0'; o_sh<='0';
o_dcpt_clr <= '0';
o_dcpt_inc <= '0';
CASE o_copy IS CASE o_copy IS
WHEN sWAIT => WHEN sWAIT =>
o_copyv(0)<='0'; o_copyv(0)<='0';
@@ -2121,7 +2203,7 @@ BEGIN
o_hacc <=o_hacc_ini; o_hacc <=o_hacc_ini;
o_hacc_next<=o_hacc_ini + 2*o_ihsize; o_hacc_next<=o_hacc_ini + 2*o_ihsize;
o_hacpt <=x"000"; o_hacpt <=x"000";
o_dcpt<=0; o_dcpt_clr <= '1';
o_dshi<=2; o_dshi<=2;
o_acpt<=0; o_acpt<=0;
o_first<='1'; o_first<='1';
@@ -2149,17 +2231,17 @@ BEGIN
WHEN sCOPY => WHEN sCOPY =>
-- dshi : Force shift first two or three pixels of each line -- dshi : Force shift first two or three pixels of each line
IF o_dshi=0 THEN IF o_dshi=0 THEN
dif_v:=(o_hacc_next - 2*o_hsize + (8*OHRES)) MOD (8*OHRES); dif_v:=(o_hacc_next - 2*o_hsize + (8*OHRESH)) MOD (8*OHRESH);
IF dif_v>=4*OHRES THEN IF dif_v>=4*OHRESH THEN
o_hacc<=o_hacc_next; o_hacc<=o_hacc_next;
o_hacc_next<=o_hacc_next + 2*o_ihsize; o_hacc_next<=o_hacc_next + 2*o_ihsize;
hcarry_v:=false; hcarry_v:=false;
ELSE ELSE
o_hacc<=dif_v; o_hacc<=dif_v;
o_hacc_next<=(dif_v + 2*o_ihsize + (4*OHRES)) MOD (4*OHRES); o_hacc_next<=(dif_v + 2*o_ihsize + (4*OHRESH)) MOD (4*OHRESH);
hcarry_v:=true; hcarry_v:=true;
END IF; END IF;
o_dcpt<=(o_dcpt+1) MOD 4096; o_dcpt_inc <= '1';
ELSE ELSE
o_dshi<=o_dshi-1; o_dshi<=o_dshi-1;
hcarry_v:=false; hcarry_v:=false;
@@ -2219,6 +2301,9 @@ BEGIN
hpix_v:=(r=>o_fb_pal_dr(23 DOWNTO 16),g=>o_fb_pal_dr(15 DOWNTO 8), hpix_v:=(r=>o_fb_pal_dr(23 DOWNTO 16),g=>o_fb_pal_dr(15 DOWNTO 8),
b=>o_fb_pal_dr(7 DOWNTO 0)); b=>o_fb_pal_dr(7 DOWNTO 0));
END IF; END IF;
IF (o_newres > 0) then
hpix_v := (others => (others => '0'));
END IF;
o_hpix0<=hpix_v; o_hpix0<=hpix_v;
o_hpix1<=o_hpix0; o_hpix1<=o_hpix0;
o_hpix2<=o_hpix1; o_hpix2<=o_hpix1;
@@ -2526,13 +2611,19 @@ BEGIN
o_hfrac(2 TO 9) <= o_hfrac(1 TO 8); o_hfrac(2 TO 9) <= o_hfrac(1 TO 8);
o_copyv(1 TO 14)<=o_copyv(0 TO 13); o_copyv(1 TO 14)<=o_copyv(0 TO 13);
o_dcptv_clr(1 TO 12)<=o_dcpt_clr & o_dcptv_clr(1 TO 11);
o_dcptv_inc(1 TO 12)<=o_dcpt_inc & o_dcptv_inc(1 TO 11);
o_dcptv(1)<=o_dcpt; IF o_dcptv_clr(12)='1' THEN
IF o_dcptv(1)>=o_hsize THEN o_dcptv(13) <= 0;
o_copyv(2)<='0'; ELSIF o_dcptv_inc(12)='1' THEN
o_dcptv(13) <= (o_dcptv(13) + 1) MOD OHRESH;
END IF;
o_dcptv(14)<=o_dcptv(13);
IF o_dcptv(13)>=o_hsize THEN
o_copyv(14)<='0';
END IF; END IF;
o_dcptv(2)<=o_dcptv(1) MOD OHRES;
o_dcptv(3 TO 14)<=o_dcptv(2 TO 13);
-- C2 -- C2
o_hpixq(2)<=(o_hpix3,o_hpix2,o_hpix1,o_hpix0); o_hpixq(2)<=(o_hpix3,o_hpix2,o_hpix1,o_hpix0);
@@ -2625,17 +2716,39 @@ BEGIN
OLBUF:PROCESS(o_clk) IS OLBUF:PROCESS(o_clk) IS
BEGIN BEGIN
IF rising_edge(o_clk) THEN IF rising_edge(o_clk) THEN
-----------------------------------------------
-- WRITES -- WRITES
IF o_wr(0)='1' THEN o_line0(o_wadl)<=o_ldw; END IF; IF o_wr(0)='1' AND o_wadl < OHRESL THEN o_line0(o_wadl MOD OHRESL)<=o_ldw; END IF;
IF o_wr(1)='1' THEN o_line1(o_wadl)<=o_ldw; END IF; IF o_wr(1)='1' AND o_wadl < OHRESL THEN o_line1(o_wadl MOD OHRESL)<=o_ldw; END IF;
IF o_wr(2)='1' THEN o_line2(o_wadl)<=o_ldw; END IF; IF o_wr(2)='1' AND o_wadl < OHRESL THEN o_line2(o_wadl MOD OHRESL)<=o_ldw; END IF;
IF o_wr(3)='1' THEN o_line3(o_wadl)<=o_ldw; END IF; IF o_wr(3)='1' AND o_wadl < OHRESL THEN o_line3(o_wadl MOD OHRESL)<=o_ldw; END IF;
IF OHRES = 2304 OR OHRES = 2560 THEN
IF o_wr(0)='1' AND o_wadl >= OHRESL THEN o_linf0(o_wadl MOD OHRESM)<=o_ldw; END IF;
IF o_wr(1)='1' AND o_wadl >= OHRESL THEN o_linf1(o_wadl MOD OHRESM)<=o_ldw; END IF;
IF o_wr(2)='1' AND o_wadl >= OHRESL THEN o_linf2(o_wadl MOD OHRESM)<=o_ldw; END IF;
IF o_wr(3)='1' AND o_wadl >= OHRESL THEN o_linf3(o_wadl MOD OHRESM)<=o_ldw; END IF;
END IF;
-----------------------------------------------
-- READS -- READS
o_ldr0<=o_line0(o_radl0); o_ldr0<=o_line0(o_radl0 MOD OHRESL);
o_ldr1<=o_line1(o_radl1); o_ldr1<=o_line1(o_radl1 MOD OHRESL);
o_ldr2<=o_line2(o_radl2); o_ldr2<=o_line2(o_radl2 MOD OHRESL);
o_ldr3<=o_line3(o_radl3); o_ldr3<=o_line3(o_radl3 MOD OHRESL);
IF OHRES = 2304 OR OHRES = 2560 THEN
o_ler0<=o_linf0(o_radl0 MOD OHRESM);
o_ler1<=o_linf1(o_radl1 MOD OHRESM);
o_ler2<=o_linf2(o_radl2 MOD OHRESM);
o_ler3<=o_linf3(o_radl3 MOD OHRESM);
END IF;
o_lex0 <= to_std_logic(o_radl0 >= OHRESL);
o_lex1 <= to_std_logic(o_radl1 >= OHRESL);
o_lex2 <= to_std_logic(o_radl2 >= OHRESL);
o_lex3 <= to_std_logic(o_radl3 >= OHRESL);
-----------------------------------------------
END IF; END IF;
END PROCESS OLBUF; END PROCESS OLBUF;
@@ -2721,16 +2834,17 @@ BEGIN
VSCAL:PROCESS(o_clk) IS VSCAL:PROCESS(o_clk) IS
VARIABLE pixq_v : arr_pix(0 TO 3); VARIABLE pixq_v : arr_pix(0 TO 3);
VARIABLE vlumpix_v : type_pix; VARIABLE vlumpix_v : type_pix;
VARIABLE r1_v, r2_v : natural RANGE 0 TO OHRES-1; VARIABLE r1_v, r2_v : natural RANGE 0 TO OHRESH-1;
VARIABLE fracnn_v : std_logic; VARIABLE fracnn_v : std_logic;
VARIABLE o_l0_v, o_l1_v, o_l2_v, o_l3_v : type_pix;
BEGIN BEGIN
IF rising_edge(o_clk) THEN IF rising_edge(o_clk) THEN
IF o_ce='1' THEN IF o_ce='1' THEN
o_v_hmin_adj<=o_hmin + 5; o_v_hmin_adj<=o_hmin + 5;
fracnn_v := o_vfrac(o_vfrac'left); fracnn_v := o_vfrac(o_vfrac'left);
r1_v := (o_hcpt - o_v_hmin_adj + OHRES) MOD OHRES; r1_v := (o_hcpt - o_v_hmin_adj + OHRESH) MOD OHRESH;
r2_v := (o_hcpt - o_hmin + OHRES) MOD OHRES; r2_v := (o_hcpt - o_hmin + OHRESH) MOD OHRESH;
-- CYCLE 1 ----------------------------------------- -- CYCLE 1 -----------------------------------------
-- Read mem -- Read mem
@@ -2757,11 +2871,16 @@ BEGIN
-- CYCLE 2 ----------------------------------------- -- CYCLE 2 -----------------------------------------
-- Lines reordering -- Lines reordering
IF o_lex0='0' THEN o_l0_v := o_ldr0; ELSE o_l0_v := o_ler0; END IF;
IF o_lex1='0' THEN o_l1_v := o_ldr1; ELSE o_l1_v := o_ler1; END IF;
IF o_lex2='0' THEN o_l2_v := o_ldr2; ELSE o_l2_v := o_ler2; END IF;
IF o_lex3='0' THEN o_l3_v := o_ldr3; ELSE o_l3_v := o_ler3; END IF;
CASE o_vacptl IS CASE o_vacptl IS
WHEN "10" => pixq_v:=(o_ldr0,o_ldr1,o_ldr2,o_ldr3); WHEN "10" => pixq_v:=(o_l0_v,o_l1_v,o_l2_v,o_l3_v);
WHEN "11" => pixq_v:=(o_ldr1,o_ldr2,o_ldr3,o_ldr0); WHEN "11" => pixq_v:=(o_l1_v,o_l2_v,o_l3_v,o_l0_v);
WHEN "00" => pixq_v:=(o_ldr2,o_ldr3,o_ldr0,o_ldr1); WHEN "00" => pixq_v:=(o_l2_v,o_l3_v,o_l0_v,o_l1_v);
WHEN OTHERS => pixq_v:=(o_ldr3,o_ldr0,o_ldr1,o_ldr2); WHEN OTHERS => pixq_v:=(o_l3_v,o_l0_v,o_l1_v,o_l2_v);
END CASE; END CASE;
IF fracnn_v = '0' THEN IF fracnn_v = '0' THEN
+11 -5
View File
@@ -27,7 +27,7 @@
// VDNUM 1..10 // VDNUM 1..10
// BLKSZ 0..7: 0 = 128, 1 = 256, 2 = 512(default), .. 7 = 16384 // BLKSZ 0..7: 0 = 128, 1 = 256, 2 = 512(default), .. 7 = 16384
// //
module hps_io #(parameter CONF_STR, CONF_STR_BRAM=1, PS2DIV=0, WIDE=0, VDNUM=1, BLKSZ=2, PS2WE=0) module hps_io #(parameter CONF_STR, CONF_STR_BRAM=0, PS2DIV=0, WIDE=0, VDNUM=1, BLKSZ=2, PS2WE=0, STRLEN=$size(CONF_STR)>>3)
( (
input clk_sys, input clk_sys,
inout [48:0] HPS_BUS, inout [48:0] HPS_BUS,
@@ -232,8 +232,7 @@ video_calc video_calc
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
localparam STRLEN = $size(CONF_STR)>>3; localparam MAX_W = $clog2((64 > (STRLEN+2)) ? 64 : (STRLEN+2))-1;
localparam MAX_W = $clog2((32 > (STRLEN+2)) ? 32 : (STRLEN+2))-1;
wire [7:0] conf_byte; wire [7:0] conf_byte;
generate generate
@@ -1032,8 +1031,15 @@ module confstr_rom #(parameter CONF_STR, STRLEN)
output reg [7:0] conf_byte output reg [7:0] conf_byte
); );
wire [7:0] rom[STRLEN]; reg [7:0] rom[STRLEN];
initial for(int i = 0; i < STRLEN; i++) rom[i] = CONF_STR[((STRLEN-i)*8)-1 -:8];
initial begin
if( CONF_STR=="" )
$readmemh("cfgstr.hex",rom);
else
for(int i = 0; i < STRLEN; i++) rom[i] = CONF_STR[((STRLEN-i)*8)-1 -:8];
end
always @ (posedge clk_sys) conf_byte <= rom[conf_addr]; always @ (posedge clk_sys) conf_byte <= rom[conf_addr];
endmodule endmodule
+1 -1
View File
@@ -75,7 +75,7 @@ always @(posedge CLK) begin
END <= 0; END <= 0;
rd <= READ; rd <= READ;
len <= I2C_WLEN; len <= I2C_WLEN;
if(READ) SD <= {2'b10, I2C_ADDR, 1'b1, 1'b1, 8'b11111111, 1'b0, 3'b011, 9'b111111111}; if(READ) SD <= {2'b10, I2C_ADDR, 1'b1, 1'b1, 8'b11111111, 1'b1, 3'b011, 9'b111111111};
else SD <= {2'b10, I2C_ADDR, 1'b0, 1'b1, I2C_WDATA1, 1'b1, I2C_WDATA2, 4'b1011}; else SD <= {2'b10, I2C_ADDR, 1'b0, 1'b1, I2C_WDATA1, 1'b1, I2C_WDATA2, 4'b1011};
SD_COUNTER <= 0; SD_COUNTER <= 0;
end else begin end else begin
+12 -5
View File
@@ -8,10 +8,12 @@ module mcp23009
output reg [2:0] btn, output reg [2:0] btn,
input [2:0] led, input [2:0] led,
output reg sd_cd, output reg flg_sd_cd,
output reg flg_present,
output reg flg_mode,
output scl, output scl,
inout sda inout sda
); );
@@ -50,7 +52,9 @@ always@(posedge clk) begin
idx <= 0; idx <= 0;
btn <= 0; btn <= 0;
rw <= 0; rw <= 0;
sd_cd <= 1; flg_sd_cd <= 1;
flg_present <= 0;
flg_mode <= 1;
end end
else begin else begin
if(~&init_data[idx]) begin if(~&init_data[idx]) begin
@@ -84,7 +88,10 @@ always@(posedge clk) begin
state <= 0; state <= 0;
rw <= 0; rw <= 0;
if(!error) begin if(!error) begin
if(rw) {sd_cd, btn} <= {dout[7], dout[5:3]}; if(rw) begin
{flg_sd_cd, flg_mode, btn} <= {dout[7:3]};
flg_present <= 1;
end
rw <= ~rw; rw <= ~rw;
end end
end end
+2 -41
View File
@@ -1,44 +1,5 @@
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_TOOL_NAME "altera_pll_reconfig"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_TOOL_VERSION "17.0"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_TOOL_ENV "mwpim"
set_global_assignment -library "pll_cfg" -name MISC_FILE [file join $::quartus(qip_path) "pll_cfg.cmp"]
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_TARGETED_DEVICE_FAMILY "Cyclone V"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_GENERATED_DEVICE_FAMILY "{Cyclone V}"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_QSYS_MODE "UNKNOWN"
set_global_assignment -name SYNTHESIS_ONLY_QIP ON set_global_assignment -name SYNTHESIS_ONLY_QIP ON
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_NAME "cGxsX2hkbWlfY2Zn" set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/pll_cfg.v"]
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_DISPLAY_NAME "QWx0ZXJhIFBMTCBSZWNvbmZpZw==" set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/pll_cfg_hdmi.v"]
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_REPORT_HIERARCHY "Off"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_INTERNAL "Off"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_AUTHOR "QWx0ZXJhIENvcnBvcmF0aW9u"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_VERSION "MTcuMA=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_DESCRIPTION "QWx0ZXJhIFBoYXNlLUxvY2tlZCBMb29wIFJlY29uZmlndXJhdGlvbiBCbG9jayhBTFRFUkFfUExMX1JFQ09ORklHKQ=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "RU5BQkxFX0JZVEVFTkFCTEU=::ZmFsc2U=::QWRkIGJ5dGVlbmFibGUgcG9ydA=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "QllURUVOQUJMRV9XSURUSA==::NA==::QllURUVOQUJMRV9XSURUSA=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "UkVDT05GSUdfQUREUl9XSURUSA==::Ng==::UkVDT05GSUdfQUREUl9XSURUSA=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "UkVDT05GSUdfREFUQV9XSURUSA==::MzI=::UkVDT05GSUdfREFUQV9XSURUSA=="
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "cmVjb25mX3dpZHRo::NjQ=::cmVjb25mX3dpZHRo"
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "V0FJVF9GT1JfTE9DSw==::dHJ1ZQ==::V0FJVF9GT1JfTE9DSw=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_NAME "YWx0ZXJhX3BsbF9yZWNvbmZpZ190b3A="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_DISPLAY_NAME "QWx0ZXJhIFBMTCBSZWNvbmZpZw=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_REPORT_HIERARCHY "Off"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_INTERNAL "Off"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_AUTHOR "QWx0ZXJhIENvcnBvcmF0aW9u"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_VERSION "MTcuMA=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_DESCRIPTION "QWx0ZXJhIFBoYXNlLUxvY2tlZCBMb29wIFJlY29uZmlndXJhdGlvbiBCbG9jayhBTFRFUkFfUExMX1JFQ09ORklHKQ=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "ZGV2aWNlX2ZhbWlseQ==::Q3ljbG9uZSBW::ZGV2aWNlX2ZhbWlseQ=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "RU5BQkxFX01JRg==::ZmFsc2U=::RW5hYmxlIE1JRiBTdHJlYW1pbmc="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "RU5BQkxFX0JZVEVFTkFCTEU=::ZmFsc2U=::QWRkIGJ5dGVlbmFibGUgcG9ydA=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "QllURUVOQUJMRV9XSURUSA==::NA==::QllURUVOQUJMRV9XSURUSA=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "UkVDT05GSUdfQUREUl9XSURUSA==::Ng==::UkVDT05GSUdfQUREUl9XSURUSA=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "UkVDT05GSUdfREFUQV9XSURUSA==::MzI=::UkVDT05GSUdfREFUQV9XSURUSA=="
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "cmVjb25mX3dpZHRo::NjQ=::cmVjb25mX3dpZHRo"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_COMPONENT_PARAMETER "V0FJVF9GT1JfTE9DSw==::dHJ1ZQ==::V0FJVF9GT1JfTE9DSw=="
set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg.v"]
set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/altera_pll_reconfig_top.v"] set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/altera_pll_reconfig_top.v"]
set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/altera_pll_reconfig_core.v"] set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/altera_pll_reconfig_core.v"]
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_TOOL_NAME "altera_pll_reconfig"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_TOOL_VERSION "17.0"
set_global_assignment -entity "altera_pll_reconfig_top" -library "pll_cfg" -name IP_TOOL_ENV "mwpim"
+3 -3
View File
@@ -16,7 +16,7 @@
module altera_pll_reconfig_core module altera_pll_reconfig_core
#( #(
parameter reconf_width = 64, parameter reconf_width = 64,
parameter device_family = "Stratix V", parameter device_family = "Cyclone V",
// MIF Streaming parameters // MIF Streaming parameters
parameter RECONFIG_ADDR_WIDTH = 6, parameter RECONFIG_ADDR_WIDTH = 6,
parameter RECONFIG_DATA_WIDTH = 32, parameter RECONFIG_DATA_WIDTH = 32,
@@ -1883,7 +1883,7 @@ module fpll_dprio_init (
endmodule endmodule
module dyn_phase_shift module dyn_phase_shift
#( #(
parameter device_family = "Stratix V" parameter device_family = "Cyclone V"
) ( ) (
input wire clk, input wire clk,
@@ -2112,7 +2112,7 @@ endmodule
module generic_lcell_comb module generic_lcell_comb
#( #(
//parameter //parameter
parameter family = "Stratix V", parameter family = "Cyclone V",
parameter lut_mask = 64'hAAAAAAAAAAAAAAAA, parameter lut_mask = 64'hAAAAAAAAAAAAAAAA,
parameter dont_touch = "on" parameter dont_touch = "on"
) ( ) (
+1 -1
View File
@@ -16,7 +16,7 @@
module altera_pll_reconfig_top module altera_pll_reconfig_top
#( #(
parameter reconf_width = 64, parameter reconf_width = 64,
parameter device_family = "Stratix V", parameter device_family = "Cyclone V",
parameter RECONFIG_ADDR_WIDTH = 6, parameter RECONFIG_ADDR_WIDTH = 6,
parameter RECONFIG_DATA_WIDTH = 32, parameter RECONFIG_DATA_WIDTH = 32,
+86
View File
@@ -0,0 +1,86 @@
// megafunction wizard: %Altera PLL Reconfig v17.0%
// GENERATION: XML
// pll_cfg.v
// Generated using ACDS version 17.0 598
`timescale 1 ps / 1 ps
module pll_cfg #(
parameter ENABLE_BYTEENABLE = 0,
parameter BYTEENABLE_WIDTH = 4,
parameter RECONFIG_ADDR_WIDTH = 6,
parameter RECONFIG_DATA_WIDTH = 32,
parameter reconf_width = 64,
parameter WAIT_FOR_LOCK = 1
) (
input wire mgmt_clk, // mgmt_clk.clk
input wire mgmt_reset, // mgmt_reset.reset
output wire mgmt_waitrequest, // mgmt_avalon_slave.waitrequest
input wire mgmt_read, // .read
input wire mgmt_write, // .write
output wire [31:0] mgmt_readdata, // .readdata
input wire [5:0] mgmt_address, // .address
input wire [31:0] mgmt_writedata, // .writedata
output wire [63:0] reconfig_to_pll, // reconfig_to_pll.reconfig_to_pll
input wire [63:0] reconfig_from_pll // reconfig_from_pll.reconfig_from_pll
);
altera_pll_reconfig_top #(
.device_family ("Cyclone V"),
.ENABLE_MIF (0),
.MIF_FILE_NAME ("sys/pll_cfg.mif"),
.ENABLE_BYTEENABLE (ENABLE_BYTEENABLE),
.BYTEENABLE_WIDTH (BYTEENABLE_WIDTH),
.RECONFIG_ADDR_WIDTH (RECONFIG_ADDR_WIDTH),
.RECONFIG_DATA_WIDTH (RECONFIG_DATA_WIDTH),
.reconf_width (reconf_width),
.WAIT_FOR_LOCK (WAIT_FOR_LOCK)
) pll_cfg_inst (
.mgmt_clk (mgmt_clk), // mgmt_clk.clk
.mgmt_reset (mgmt_reset), // mgmt_reset.reset
.mgmt_waitrequest (mgmt_waitrequest), // mgmt_avalon_slave.waitrequest
.mgmt_read (mgmt_read), // .read
.mgmt_write (mgmt_write), // .write
.mgmt_readdata (mgmt_readdata), // .readdata
.mgmt_address (mgmt_address), // .address
.mgmt_writedata (mgmt_writedata), // .writedata
.reconfig_to_pll (reconfig_to_pll), // reconfig_to_pll.reconfig_to_pll
.reconfig_from_pll (reconfig_from_pll), // reconfig_from_pll.reconfig_from_pll
.mgmt_byteenable (4'b0000) // (terminated)
);
endmodule
// Retrieval info: <?xml version="1.0"?>
//<!--
// Generated by Altera MegaWizard Launcher Utility version 1.0
// ************************************************************
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
// ************************************************************
// Copyright (C) 1991-2018 Altera Corporation
// Any megafunction design, and related net list (encrypted or decrypted),
// support information, device programming or simulation file, and any other
// associated documentation or information provided by Altera or a partner
// under Altera's Megafunction Partnership Program may be used only to
// program PLD devices (but not masked PLD devices) from Altera. Any other
// use of such megafunction design, net list, support information, device
// programming or simulation file, or any other related documentation or
// information is prohibited for any other purpose, including, but not
// limited to modification, reverse engineering, de-compiling, or use with
// any other silicon devices, unless such use is explicitly licensed under
// a separate agreement with Altera or a megafunction partner. Title to
// the intellectual property, including patents, copyrights, trademarks,
// trade secrets, or maskworks, embodied in any such megafunction design,
// net list, support information, device programming or simulation file, or
// any other related documentation or information provided by Altera or a
// megafunction partner, remains with Altera, the megafunction partner, or
// their respective licensors. No other licenses, including any licenses
// needed under any third party's intellectual property, are provided herein.
//-->
// Retrieval info: <instance entity-name="altera_pll_reconfig" version="17.0" >
// Retrieval info: <generic name="device_family" value="Cyclone V" />
// Retrieval info: <generic name="ENABLE_MIF" value="false" />
// Retrieval info: <generic name="MIF_FILE_NAME" value="sys/pll_cfg.mif" />
// Retrieval info: <generic name="ENABLE_BYTEENABLE" value="false" />
// Retrieval info: </instance>
// IPFS_FILES : pll_cfg.vo
// RELATED_FILES: pll_cfg.v, altera_pll_reconfig_top.v, altera_pll_reconfig_core.v, altera_std_synchronizer.v
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,2 +1,2 @@
set_instance_assignment -name PLL_COMPENSATION_MODE DIRECT -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*" set_instance_assignment -name PLL_COMPENSATION_MODE DIRECT -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*"
#set_instance_assignment -name UNFORCE_MERGE_PLL_OUTPUT_COUNTER ON -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*" set_instance_assignment -name UNFORCE_MERGE_PLL_OUTPUT_COUNTER ON -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*"
+1 -4
View File
@@ -1,7 +1,4 @@
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll.13.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll.13.qip ]
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_hdmi.13.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_hdmi.13.qip ]
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_audio.13.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_audio.13.qip ]
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) pll_cfg.v ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_cfg.qip ]
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) pll_cfg/altera_pll_reconfig_core.v ]
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) pll_cfg/altera_pll_reconfig_top.v ]
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) pll_cfg_hdmi.v ]
+1 -2
View File
@@ -1,5 +1,4 @@
set_global_assignment -name QIP_FILE rtl/pll.qip set_global_assignment -name QIP_FILE rtl/pll.qip
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_hdmi.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_hdmi.qip ]
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_audio.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_audio.qip ]
#set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_cfg.qip ] set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_cfg.qip ]
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) pll_cfg_hdmi.v ]
+4 -4
View File
@@ -58,10 +58,10 @@ localparam DW = WIDE ? 15 : 7;
localparam SZ = OCTAL ? 8 : 1; localparam SZ = OCTAL ? 8 : 1;
localparam SW = SZ-1; localparam SW = SZ-1;
wire [7:0] DATA_TOKEN_CMD25 = 8'hfc; localparam DATA_TOKEN_CMD25 = 8'hfc;
wire [7:0] STOP_TRAN = 8'hfd; localparam STOP_TRAN = 8'hfd;
wire [7:0] DATA_TOKEN = 8'hfe; localparam DATA_TOKEN = 8'hfe;
wire [7:0] WRITE_DATA_RESPONSE = 8'h05; localparam WRITE_DATA_RESPONSE = 8'he5;
// number of bytes to wait after a command before sending the reply // number of bytes to wait after a command before sending the reply
localparam NCR = 5+3; // 5 bytes are required (command length) localparam NCR = 5+3; // 5 bytes are required (command length)
+2 -9
View File
@@ -16,13 +16,6 @@ set_location_assignment PIN_V10 -to ADC_SCK
set_location_assignment PIN_AC4 -to ADC_SDI set_location_assignment PIN_AC4 -to ADC_SDI
set_location_assignment PIN_AD4 -to ADC_SDO set_location_assignment PIN_AD4 -to ADC_SDO
#============================================================
# ARDUINO
#============================================================
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to ARDUINO_IO[*]
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to ARDUINO_IO[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ARDUINO_IO[*]
#============================================================ #============================================================
# I2C LEDS/BUTTONS # I2C LEDS/BUTTONS
#============================================================ #============================================================
@@ -72,8 +65,8 @@ set_location_assignment PIN_AD17 -to SDRAM_A[11]
set_location_assignment PIN_D12 -to SDRAM_A[12] set_location_assignment PIN_D12 -to SDRAM_A[12]
set_location_assignment PIN_Y17 -to SDRAM_BA[0] set_location_assignment PIN_Y17 -to SDRAM_BA[0]
set_location_assignment PIN_AB25 -to SDRAM_BA[1] set_location_assignment PIN_AB25 -to SDRAM_BA[1]
set_location_assignment PIN_E8 -to SDRAM_DQ[0] set_location_assignment PIN_V12 -to SDRAM_DQ[0]
set_location_assignment PIN_V12 -to SDRAM_DQ[1] set_location_assignment PIN_E8 -to SDRAM_DQ[1]
set_location_assignment PIN_D11 -to SDRAM_DQ[2] set_location_assignment PIN_D11 -to SDRAM_DQ[2]
set_location_assignment PIN_W12 -to SDRAM_DQ[3] set_location_assignment PIN_W12 -to SDRAM_DQ[3]
set_location_assignment PIN_AH13 -to SDRAM_DQ[4] set_location_assignment PIN_AH13 -to SDRAM_DQ[4]
+5 -1
View File
@@ -25,6 +25,7 @@ set_false_path -from [get_ports {KEY*}]
set_false_path -from [get_ports {BTN_*}] set_false_path -from [get_ports {BTN_*}]
set_false_path -to [get_ports {LED_*}] set_false_path -to [get_ports {LED_*}]
set_false_path -to [get_ports {VGA_*}] set_false_path -to [get_ports {VGA_*}]
set_false_path -from [get_ports {VGA_EN}]
set_false_path -to [get_ports {AUDIO_SPDIF}] set_false_path -to [get_ports {AUDIO_SPDIF}]
set_false_path -to [get_ports {AUDIO_L}] set_false_path -to [get_ports {AUDIO_L}]
set_false_path -to [get_ports {AUDIO_R}] set_false_path -to [get_ports {AUDIO_R}]
@@ -34,6 +35,7 @@ set_false_path -from {cfg[*]}
set_false_path -from {VSET[*]} set_false_path -from {VSET[*]}
set_false_path -to {wcalc[*] hcalc[*]} set_false_path -to {wcalc[*] hcalc[*]}
set_false_path -to {hdmi_width[*] hdmi_height[*]} set_false_path -to {hdmi_width[*] hdmi_height[*]}
set_false_path -to {deb_* btn_en btn_up}
set_multicycle_path -to {*_osd|osd_vcnt*} -setup 2 set_multicycle_path -to {*_osd|osd_vcnt*} -setup 2
set_multicycle_path -to {*_osd|osd_vcnt*} -hold 1 set_multicycle_path -to {*_osd|osd_vcnt*} -hold 1
@@ -58,6 +60,7 @@ set_false_path -from {vol_att[*] scaler_flt[*] led_overtake[*] led_state[*]}
set_false_path -from {aflt_* acx* acy* areset* arc*} set_false_path -from {aflt_* acx* acy* areset* arc*}
set_false_path -from {arx* ary*} set_false_path -from {arx* ary*}
set_false_path -from {vs_line*} set_false_path -from {vs_line*}
set_false_path -from {ColorBurst_Range* PhaseInc* pal_en cvbs yc_en}
set_false_path -from {ascal|o_ihsize*} set_false_path -from {ascal|o_ihsize*}
set_false_path -from {ascal|o_ivsize*} set_false_path -from {ascal|o_ivsize*}
@@ -70,4 +73,5 @@ set_false_path -from {ascal|o_htotal* ascal|o_vtotal*}
set_false_path -from {ascal|o_hsstart* ascal|o_vsstart* ascal|o_hsend* ascal|o_vsend*} set_false_path -from {ascal|o_hsstart* ascal|o_vsstart* ascal|o_hsend* ascal|o_vsend*}
set_false_path -from {ascal|o_hsize* ascal|o_vsize*} set_false_path -from {ascal|o_hsize* ascal|o_vsize*}
set_false_path -from {mcp23009|sd_cd} set_false_path -from {mcp23009|flg_*}
set_false_path -to {sysmem|fpga_interfaces|clocks_resets|f2h*}
+494 -420
View File
File diff suppressed because it is too large. Load diff
+6 -3
View File
@@ -7,13 +7,15 @@ module vga_out
input hsync, input hsync,
input vsync, input vsync,
input csync, input csync,
input de,
input [23:0] din, input [23:0] din,
output [23:0] dout, output [23:0] dout,
output reg hsync_o, output reg hsync_o,
output reg vsync_o, output reg vsync_o,
output reg csync_o output reg csync_o,
output reg de_o
); );
wire [7:0] red = din[23:16]; wire [7:0] red = din[23:16];
@@ -35,8 +37,8 @@ always @(posedge clk) begin
reg [18:0] y_1b, pb_1b, pr_1b; reg [18:0] y_1b, pb_1b, pr_1b;
reg [18:0] y_2, pb_2, pr_2; reg [18:0] y_2, pb_2, pr_2;
reg [23:0] din1, din2; reg [23:0] din1, din2;
reg hsync2, vsync2, csync2; reg hsync2, vsync2, csync2, de2;
reg hsync1, vsync1, csync1; reg hsync1, vsync1, csync1, de1;
y_1r <= {red, 6'd0} + {red, 3'd0} + {red, 2'd0} + red; y_1r <= {red, 6'd0} + {red, 3'd0} + {red, 2'd0} + red;
pb_1r <= 19'd32768 - ({red, 5'd0} + {red, 3'd0} + {red, 1'd0}); pb_1r <= 19'd32768 - ({red, 5'd0} + {red, 3'd0} + {red, 1'd0});
@@ -61,6 +63,7 @@ always @(posedge clk) begin
hsync_o <= hsync2; hsync2 <= hsync1; hsync1 <= hsync; hsync_o <= hsync2; hsync2 <= hsync1; hsync1 <= hsync;
vsync_o <= vsync2; vsync2 <= vsync1; vsync1 <= vsync; vsync_o <= vsync2; vsync2 <= vsync1; vsync1 <= vsync;
csync_o <= csync2; csync2 <= csync1; csync1 <= csync; csync_o <= csync2; csync2 <= csync1; csync1 <= csync;
de_o <= de2; de2 <= de1; de1 <= de;
rgb <= din2; din2 <= din1; din1 <= din; rgb <= din2; din2 <= din1; din1 <= din;
end end
+11 -2
View File
@@ -26,6 +26,10 @@ module video_cleaner
//optional de //optional de
input DE_in, input DE_in,
//optional interlace support
input interlace,
input f1,
// video output signals // video output signals
output reg [7:0] VGA_R, output reg [7:0] VGA_R,
output reg [7:0] VGA_G, output reg [7:0] VGA_G,
@@ -56,14 +60,19 @@ always @(posedge clk_vid) begin
HBlank_out <= hbl; HBlank_out <= hbl;
VGA_HS <= hs; VGA_HS <= hs;
if(~VGA_HS & hs) VGA_VS <= vs;
VGA_R <= R; VGA_R <= R;
VGA_G <= G; VGA_G <= G;
VGA_B <= B; VGA_B <= B;
DE_out <= DE_in; DE_out <= DE_in;
if(HBlank_out & ~hbl) VBlank_out <= vbl; if (interlace & f1) begin
VGA_VS <= vs;
VBlank_out <= vbl;
end else begin
if(~VGA_HS & hs) VGA_VS <= vs;
if(HBlank_out & ~hbl) VBlank_out <= vbl;
end
end end
end end
+22 -11
View File
@@ -170,10 +170,8 @@ reg [11:0] mul_arg1, mul_arg2;
wire [23:0] mul_res; wire [23:0] mul_res;
sys_umul #(12,12) mul(CLK_VIDEO,mul_start,mul_run, mul_arg1,mul_arg2,mul_res); sys_umul #(12,12) mul(CLK_VIDEO,mul_start,mul_run, mul_arg1,mul_arg2,mul_res);
wire [11:0] wideres = mul_res[11:0] + hsize;
always @(posedge CLK_VIDEO) begin always @(posedge CLK_VIDEO) begin
reg [11:0] oheight,htarget,wres; reg [11:0] oheight,htarget,wres,hinteger,wideres;
reg [12:0] arxf,aryf; reg [12:0] arxf,aryf;
reg [3:0] cnt; reg [3:0] cnt;
reg narrow; reg narrow;
@@ -264,7 +262,8 @@ always @(posedge CLK_VIDEO) begin
// [3] 1080 / 512 * 512 * 4 / 3 / 512 * 512 -> 1024 // [3] 1080 / 512 * 512 * 4 / 3 / 512 * 512 -> 1024
7: if(mul_res <= HDMI_WIDTH) begin 7: if(mul_res <= HDMI_WIDTH) begin
cnt <= 10; hinteger = mul_res[11:0];
cnt <= 12;
end end
8: begin 8: begin
@@ -285,9 +284,21 @@ always @(posedge CLK_VIDEO) begin
// [2] 1920 / 640 * 640 -> 1920 // [2] 1920 / 640 * 640 -> 1920
// [3] 1920 / 512 * 512 -> 1536 // [3] 1920 / 512 * 512 -> 1536
10: begin 10: begin
narrow <= ((htarget - mul_res[11:0]) <= (wideres - htarget)) || (wideres > HDMI_WIDTH); hinteger <= mul_res[11:0];
wres <= mul_res[11:0] == htarget ? mul_res[11:0] : wideres; mul_arg1 <= vsize;
mul_arg2 <= div_res[11:0] ? div_res[11:0] : 12'd1;
mul_start <= 1;
end
11: begin
oheight <= mul_res[11:0];
end
12: begin
wideres <= hinteger + hsize;
narrow <= ((htarget - hinteger) <= (wideres - htarget)) || (wideres > HDMI_WIDTH);
wres <= hinteger == htarget ? hinteger : wideres;
end end
// [1] 1066 - 720 = 346 <= 1440 - 1066 = 374 || 1440 > 1920 -> true // [1] 1066 - 720 = 346 <= 1440 - 1066 = 374 || 1440 > 1920 -> true
// [2] 1280 - 1280 = 0 <= 1920 - 1280 = 640 || 1920 > 1920 -> true // [2] 1280 - 1280 = 0 <= 1920 - 1280 = 640 || 1920 > 1920 -> true
@@ -299,11 +310,11 @@ always @(posedge CLK_VIDEO) begin
// to target width, meaning it is not optimal for source aspect ratio. // to target width, meaning it is not optimal for source aspect ratio.
// otherwise it is set to narrow width that is optimal. // otherwise it is set to narrow width that is optimal.
11: begin 13: begin
case(SCALE) case(SCALE)
2: arxf <= {1'b1, mul_res[11:0]}; 2: arxf <= {1'b1, hinteger};
3: arxf <= {1'b1, (wres > HDMI_WIDTH) ? mul_res[11:0] : wres}; 3: arxf <= {1'b1, (wres > HDMI_WIDTH) ? hinteger : wres};
4: arxf <= {1'b1, narrow ? mul_res[11:0] : wres}; 4: arxf <= {1'b1, narrow ? hinteger : wres};
default: arxf <= {1'b1, div_num[11:0]}; default: arxf <= {1'b1, div_num[11:0]};
endcase endcase
aryf <= {1'b1, oheight}; aryf <= {1'b1, oheight};
+9 -6
View File
@@ -36,13 +36,15 @@ module yc_out
input hsync, input hsync,
input vsync, input vsync,
input csync, input csync,
input de,
input [23:0] din, input [23:0] din,
output [23:0] dout, output [23:0] dout,
output reg hsync_o, output reg hsync_o,
output reg vsync_o, output reg vsync_o,
output reg csync_o output reg csync_o,
output reg de_o
); );
wire [7:0] red = din[23:16]; wire [7:0] red = din[23:16];
@@ -61,6 +63,7 @@ typedef struct {
logic hsync; logic hsync;
logic vsync; logic vsync;
logic csync; logic csync;
logic de;
} phase_t; } phase_t;
localparam MAX_PHASES = 7'd8; localparam MAX_PHASES = 7'd8;
@@ -211,11 +214,11 @@ always_ff @(posedge clk) begin
end end
// Adjust sync timing correctly // Adjust sync timing correctly
phase[1].hsync <= hsync; phase[1].vsync <= vsync; phase[1].csync <= csync; phase[1].hsync <= hsync; phase[1].vsync <= vsync; phase[1].csync <= csync; phase[1].de <= de;
phase[2].hsync <= phase[1].hsync; phase[2].vsync <= phase[1].vsync; phase[2].csync <= phase[1].csync; phase[2].hsync <= phase[1].hsync; phase[2].vsync <= phase[1].vsync; phase[2].csync <= phase[1].csync; phase[2].de <= phase[1].de;
phase[3].hsync <= phase[2].hsync; phase[3].vsync <= phase[2].vsync; phase[3].csync <= phase[2].csync; phase[3].hsync <= phase[2].hsync; phase[3].vsync <= phase[2].vsync; phase[3].csync <= phase[2].csync; phase[3].de <= phase[2].de;
phase[4].hsync <= phase[3].hsync; phase[4].vsync <= phase[3].vsync; phase[4].csync <= phase[3].csync; phase[4].hsync <= phase[3].hsync; phase[4].vsync <= phase[3].vsync; phase[4].csync <= phase[3].csync; phase[4].de <= phase[3].de;
hsync_o <= phase[4].hsync; vsync_o <= phase[4].vsync; csync_o <= phase[4].csync; hsync_o <= phase[4].hsync; vsync_o <= phase[4].vsync; csync_o <= phase[4].csync; de_o <= phase[4].de;
phase[1].y <= phase[0].y; phase[2].y <= phase[1].y; phase[3].y <= phase[2].y; phase[4].y <= phase[3].y; phase[5].y <= phase[4].y; phase[1].y <= phase[0].y; phase[2].y <= phase[1].y; phase[3].y <= phase[2].y; phase[4].y <= phase[3].y; phase[5].y <= phase[4].y;