Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaf622a2aa | ||
|
|
992956095d | ||
|
|
1da70a7929 | ||
|
|
a3373d34b9 | ||
|
|
06e91ee2ae | ||
|
|
f940be1a2b |
No files matched your search
@@ -10,3 +10,4 @@ jtag.cdf
|
||||
greybox_tmp/cbx_args.txt
|
||||
*/greybox_tmp/cbx_args.txt
|
||||
changes.txt
|
||||
rtl/config_inc.sv
|
||||
Binary file not shown.
@@ -9,9 +9,9 @@
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
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_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
|
||||
set_global_assignment -name PARTITION_COLOR 16764057 -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_COLOR 16764057 -section_id Top
|
||||
|
||||
set_global_assignment -name LAST_QUARTUS_VERSION "17.0.2 Lite Edition"
|
||||
|
||||
@@ -28,7 +28,6 @@ set_global_assignment -name TIMEQUEST_MULTICORNER_ANALYSIS OFF
|
||||
set_global_assignment -name OPTIMIZE_POWER_DURING_FITTING OFF
|
||||
set_global_assignment -name FINAL_PLACEMENT_OPTIMIZATION ALWAYS
|
||||
set_global_assignment -name FITTER_EFFORT "STANDARD FIT"
|
||||
set_global_assignment -name OPTIMIZATION_MODE "AGGRESSIVE PERFORMANCE"
|
||||
set_global_assignment -name ALLOW_POWER_UP_DONT_CARE ON
|
||||
set_global_assignment -name QII_AUTO_PACKED_REGISTERS NORMAL
|
||||
set_global_assignment -name ROUTER_LCELL_INSERTION_AND_LOGIC_DUPLICATION ON
|
||||
@@ -74,9 +73,9 @@ 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_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*
|
||||
@@ -164,7 +163,7 @@ 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_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
|
||||
@@ -232,8 +231,6 @@ 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"
|
||||
set_global_assignment -name CDF_FILE jtag.cdf
|
||||
set_global_assignment -name QIP_FILE sys/sys.qip
|
||||
source sys/sys_analog.tcl
|
||||
set_location_assignment PIN_AF25 -to SDIO_DAT[0]
|
||||
set_location_assignment PIN_AF23 -to SDIO_DAT[1]
|
||||
@@ -284,6 +281,22 @@ 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
|
||||
set_global_assignment -name OPTIMIZATION_MODE "AGGRESSIVE PERFORMANCE"
|
||||
set_global_assignment -name USE_SIGNALTAP_FILE Video_Explorer2.stp
|
||||
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to USER_IO[2]
|
||||
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_COLOR 16764057 -section_id Top
|
||||
set_global_assignment -name CDF_FILE jtag.cdf
|
||||
set_global_assignment -name QIP_FILE sys/sys.qip
|
||||
set_global_assignment -name VERILOG_FILE rtl/Mister_Video_GIMEX.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/pll.v -library pll
|
||||
set_global_assignment -name VERILOG_FILE rtl/pll/pll_0002.v -library pll
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Cassette_Write.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/config.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Auto_Run.sv
|
||||
set_global_assignment -name VHDL_FILE rtl/sram/coco_ram.vhd
|
||||
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_cart.vhd
|
||||
set_global_assignment -name VHDL_FILE rtl/rom/coco3_char_rom.vhd
|
||||
@@ -301,7 +314,6 @@ set_global_assignment -name VERILOG_FILE rtl/cassette.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/rtc.sv
|
||||
set_global_assignment -name VERILOG_FILE rtl/AMW.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/square_gen.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/config.v
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/fdc.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc_top.sv
|
||||
@@ -316,19 +328,5 @@ 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_16.vhd
|
||||
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc
|
||||
|
||||
set_global_assignment -name ENABLE_SIGNALTAP ON
|
||||
set_global_assignment -name SIGNALTAP_FILE Video_Explorer.stp
|
||||
set_global_assignment -name SIGNALTAP_FILE rom_Exploror.stp1
|
||||
set_global_assignment -name SOURCE_FILE rom_Exploror.stp1
|
||||
set_global_assignment -name SIGNALTAP_FILE Serial.stp
|
||||
set_global_assignment -name SIGNALTAP_FILE AMW.stp
|
||||
set_global_assignment -name SIGNALTAP_FILE HD.stp
|
||||
set_global_assignment -name SIGNALTAP_FILE reset.stp
|
||||
set_global_assignment -name SIGNALTAP_FILE Vsync.stp
|
||||
set_global_assignment -name ENABLE_SIGNALTAP OFF
|
||||
set_global_assignment -name OPTIMIZATION_MODE "HIGH PERFORMANCE EFFORT"
|
||||
set_global_assignment -name USE_SIGNALTAP_FILE Video_Explorer2.stp
|
||||
set_global_assignment -name VERILOG_FILE rtl/mc6809glb/mc6809glb.v
|
||||
set_global_assignment -name SIGNALTAP_FILE Video_Explorer2.stp
|
||||
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
|
||||
@@ -1,6 +1,6 @@
|
||||
//============================================================================
|
||||
// CoCo3 port to MiSTer
|
||||
// Copyright (c) 2019 Alan Steremberg - alanswx
|
||||
// Copyright (c) 2019 Alan Steremberg - alanswx, Stan Hodge - MasterS3263827
|
||||
//
|
||||
//
|
||||
//============================================================================
|
||||
@@ -43,6 +43,8 @@ module emu
|
||||
input [11:0] HDMI_WIDTH,
|
||||
input [11:0] HDMI_HEIGHT,
|
||||
output HDMI_FREEZE,
|
||||
output HDMI_BLACKOUT,
|
||||
output HDMI_BOB_DEINT,
|
||||
|
||||
`ifdef MISTER_FB
|
||||
// Use framebuffer in DDRAM
|
||||
@@ -180,6 +182,8 @@ assign LED_POWER = 0;
|
||||
|
||||
assign VGA_SCALER = 0;
|
||||
assign HDMI_FREEZE = 0;
|
||||
assign HDMI_BLACKOUT = 0;
|
||||
assign HDMI_BOB_DEINT = 0;
|
||||
|
||||
wire [1:0] ar = status[9:8];
|
||||
|
||||
@@ -189,6 +193,8 @@ assign VIDEO_ARY = (!ar) ? 12'd3 : 12'd0;
|
||||
|
||||
|
||||
`include "build_id.v"
|
||||
`include "build_id_num.v"
|
||||
|
||||
localparam CONF_STR = {
|
||||
"COCO3;UART19200:9600:4800:2400:1200:300;",
|
||||
"-;",
|
||||
@@ -213,8 +219,11 @@ localparam CONF_STR = {
|
||||
"F2,CAS,Load Cassette;",
|
||||
"TF,Stop & Rewind;",
|
||||
"OH,Monitor Tape Sound,No,Yes;",
|
||||
|
||||
"-;",
|
||||
"S6,CAS,Save Cassette;",
|
||||
"OE,Cass Rwd=0 / Rec=1,0,1;",
|
||||
"-;",
|
||||
|
||||
"P1,Video Settings;",
|
||||
"P1-;",
|
||||
"P1-, -= Video Settings =-;",
|
||||
@@ -249,7 +258,7 @@ localparam CONF_STR = {
|
||||
"J,Button1,Button2;",
|
||||
"jn,A,B;",
|
||||
"v,51;",
|
||||
"V,v",`BUILD_DATE
|
||||
"V,v",{`BUILD_DATE,"-",`BUILD_NUMBER}
|
||||
};
|
||||
|
||||
// Status bits Directory
|
||||
@@ -261,9 +270,9 @@ localparam CONF_STR = {
|
||||
// 0123456789ABCDEFGHIJKLMNOPQRSTUV 0123456789ABCDEFGHIJKLMNOPQRSTUV
|
||||
//
|
||||
|
||||
// R OOOO OOR OO TOOOOOOROOOOOO ooo oo oo
|
||||
// R OOOO OOR OOOTOOOOOOROOOOOO ooo oo oo
|
||||
//F FF
|
||||
//S SSSSSS
|
||||
//S SSSSSSS
|
||||
|
||||
//////////////////// CLOCKS ///////////////////
|
||||
|
||||
@@ -274,7 +283,7 @@ assign clk_sys=CLK_57;
|
||||
wire pll_locked, pll2_locked;
|
||||
wire CLK_114, CLK_57, CLK_28, CLK_14;
|
||||
|
||||
|
||||
assign VGA_DISABLE = 1'b0;
|
||||
|
||||
pll pll
|
||||
(
|
||||
@@ -314,9 +323,10 @@ wire [21:0] gamma_bus;
|
||||
assign CLK_VIDEO = clk_sys;
|
||||
|
||||
wire [64:0] RTC;
|
||||
wire [15:0] sdram_sz;
|
||||
|
||||
// SD - 6 drives [4 fdc and 2 sdc] 512 size blocks [the wd1793 translates to a 256 byte sector size]
|
||||
hps_io #(.CONF_STR(CONF_STR),.PS2DIV(2400), .VDNUM(6), .BLKSZ(2)) hps_io
|
||||
// SD - 7 drives [4 fdc, 2 sdc and 1 cass_wr] 512 size blocks [the wd1793 translates to a 256 byte sector size]
|
||||
hps_io #(.CONF_STR(CONF_STR),.PS2DIV(2400), .VDNUM(7), .BLKSZ(2)) hps_io
|
||||
(
|
||||
.clk_sys(clk_sys),
|
||||
.HPS_BUS(HPS_BUS),
|
||||
@@ -339,6 +349,8 @@ hps_io #(.CONF_STR(CONF_STR),.PS2DIV(2400), .VDNUM(6), .BLKSZ(2)) hps_io
|
||||
.ioctl_dout(ioctl_data),
|
||||
.ioctl_index(ioctl_index),
|
||||
|
||||
.sdram_sz(sdram_sz),
|
||||
|
||||
// SD block level interface
|
||||
|
||||
.img_mounted(img_mounted), // signaling that new image has been mounted
|
||||
@@ -373,21 +385,21 @@ hps_io #(.CONF_STR(CONF_STR),.PS2DIV(2400), .VDNUM(6), .BLKSZ(2)) hps_io
|
||||
);
|
||||
|
||||
// SD block level interface
|
||||
wire [5:0] img_mounted;
|
||||
wire [6:0] img_mounted;
|
||||
wire img_readonly;
|
||||
wire [63:0] img_size;
|
||||
|
||||
wire [31:0] sd_lba[6];
|
||||
wire [5:0] sd_blk_cnt[6];
|
||||
wire [31:0] sd_lba[7];
|
||||
wire [5:0] sd_blk_cnt[7];
|
||||
|
||||
wire [5:0] sd_rd;
|
||||
wire [5:0] sd_wr;
|
||||
wire [5:0] sd_ack;
|
||||
wire [6:0] sd_rd;
|
||||
wire [6:0] sd_wr;
|
||||
wire [6:0] sd_ack;
|
||||
|
||||
// SD byte level access. Signals for 2-PORT altsyncram.
|
||||
wire [8:0] sd_buff_addr;
|
||||
wire [7:0] sd_buff_dout;
|
||||
wire [7:0] sd_buff_din[6];
|
||||
wire [7:0] sd_buff_din[7];
|
||||
wire sd_buff_wr;
|
||||
|
||||
|
||||
@@ -452,7 +464,9 @@ wire Programmed_EE;
|
||||
|
||||
EE_Cold_Bt COCO3_EE_Cold_Bt (
|
||||
.CLK(CLK_14),
|
||||
.RESET(1'b0),
|
||||
|
||||
// .Display_EE(1'b0), // from MISTer subsystem
|
||||
.Display_EE(easter_egg), // from MISTer subsystem
|
||||
.Cold_Boot(AMW_ACK), // from AMW system
|
||||
|
||||
@@ -471,11 +485,15 @@ wire [7:0] r;
|
||||
wire [7:0] g;
|
||||
wire [7:0] b;
|
||||
|
||||
wire easter_egg = ~status[10];
|
||||
wire easter_egg = status[10];
|
||||
wire [31:0] probe;
|
||||
|
||||
assign USER_OUT[6:0] = probe[6:0];
|
||||
|
||||
wire [71:0] Config_Data;
|
||||
|
||||
assign Config_Data = {`BUILD_DATE, `BUILD_NUMBER};
|
||||
|
||||
coco3fpga coco3 (
|
||||
// CLOCKS
|
||||
|
||||
@@ -519,7 +537,7 @@ coco3fpga coco3 (
|
||||
// R1, L2, R2, L1
|
||||
.P_SWITCH(~{coco_joy2[4],coco_joy1[5],coco_joy2[5],coco_joy1[4]}),
|
||||
.SWITCH(switch),
|
||||
.SOUND_OUT(cocosound),
|
||||
// .SOUND_OUT(cocosound),
|
||||
.SOUND_LEFT(audio_left),
|
||||
.SOUND_RIGHT(AUDIO_R),
|
||||
|
||||
@@ -530,6 +548,9 @@ coco3fpga coco3 (
|
||||
.ioctl_index(ioctl_index),
|
||||
.ioctl_wr(ioctl_wr),
|
||||
|
||||
// SDRAM Info
|
||||
.sdram_sz(sdram_sz),
|
||||
|
||||
// SD block level interface
|
||||
|
||||
.img_mounted(img_mounted), // signaling that new image has been mounted
|
||||
@@ -577,6 +598,7 @@ coco3fpga coco3 (
|
||||
.RTC(RTC),
|
||||
|
||||
.AMW_Trigger(coldboot | mpi_reset | mem_reset),
|
||||
// .AMW_Trigger(coldboot),
|
||||
.AMW_ACK(AMW_ACK),
|
||||
|
||||
.F_Turbo(F_Turbo),
|
||||
@@ -585,6 +607,8 @@ coco3fpga coco3 (
|
||||
|
||||
.AUTO_MODE(Auto_Mode),
|
||||
|
||||
.Config_Data(Config_Data),
|
||||
|
||||
.UART_TXD(UART_TXD),
|
||||
.UART_RXD(UART_RXD),
|
||||
.UART_RTS(UART_RTS),
|
||||
@@ -595,7 +619,7 @@ coco3fpga coco3 (
|
||||
|
||||
assign status_set = 1'b0;
|
||||
|
||||
wire [5:0] cocosound;
|
||||
//wire [5:0] cocosound;
|
||||
|
||||
wire [2:0] turbo_speed = status[34:32];
|
||||
wire [2:0] assigned_turbo_speed;
|
||||
@@ -604,10 +628,11 @@ wire [1:0] Auto_Mode = status[41:40];
|
||||
|
||||
wire AMW_ACK;
|
||||
|
||||
wire cpu_speed = status[11];
|
||||
//wire cpu_speed = status[11];
|
||||
|
||||
wire [1:0] mpi = status[13:12] + 1'b1;
|
||||
wire video=status[14];
|
||||
//wire video=status[14];
|
||||
wire CASS_REW_RECORD=status[14];
|
||||
wire cartint=status[16];
|
||||
wire sg4v6 = status[21];
|
||||
|
||||
@@ -655,7 +680,7 @@ begin
|
||||
end
|
||||
|
||||
// Set bit 9 to swap serial ports...
|
||||
wire [9:0] switch = { 2'b10,art,sg4v6,cartint,video,mpi,cpu_speed} ;
|
||||
wire [9:0] switch = { 2'b10,art,sg4v6,cartint,CASS_REW_RECORD,mpi,1'b0};
|
||||
|
||||
|
||||
wire reset = RESET | status[0] | buttons[1];
|
||||
@@ -737,7 +762,7 @@ cassette cassette(
|
||||
|
||||
.sdram_addr(ram_addr),
|
||||
.sdram_data(ram_data_o),
|
||||
.sdram_rd(ram_rd), // Not connected for sram
|
||||
// .sdram_rd(ram_rd), // Not connected for sram
|
||||
|
||||
.data(casdout)
|
||||
);
|
||||
|
||||
+229
-101
@@ -1,130 +1,264 @@
|
||||
<session jtag_chain="DE-SoC on 192.168.2.129 [USB-1]" jtag_device="@2: 5CSEBA6(.|ES)/5CSEMA6/.. (0x02D020DD)" sof_file="">
|
||||
<display_tree gui_logging_enabled="0">
|
||||
<display_branch instance="auto_signaltap_0" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
|
||||
<display_branch instance="auto_signaltap_0" log="USE_GLOBAL_TEMP" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
|
||||
</display_tree>
|
||||
<instance enabled="false" entity_name="sld_signaltap" is_auto_node="yes" is_expanded="true" name="auto_signaltap_0" source_file="sld_signaltap.vhd">
|
||||
<instance enabled="true" entity_name="sld_signaltap" is_auto_node="yes" is_expanded="true" name="auto_signaltap_0" source_file="sld_signaltap.vhd">
|
||||
<node_ip_info instance_id="0" mfg_id="110" node_id="0" version="6"/>
|
||||
<signal_set global_temp="1" is_expanded="true" name="signal_set: 2024/02/02 23:05:26 #0">
|
||||
<clock name="emu:emu|coco3fpga:coco3|CLK_14" polarity="posedge" tap_mode="classic"/>
|
||||
<config pipeline_level="0" ram_type="AUTO" reserved_data_nodes="0" reserved_storage_qualifier_nodes="0" reserved_trigger_nodes="0" sample_depth="256" trigger_in_enable="no" trigger_out_enable="no"/>
|
||||
<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="296"/>
|
||||
<single attribute="setup vertical scroll position" value="2"/>
|
||||
<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="129024"/>
|
||||
<multi attribute="timebars" size="0" value=""/>
|
||||
</position_info>
|
||||
<signal_set global_temp="1" name="signal_set: 2024/03/24 14:53:29 #0">
|
||||
<clock name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|clk_sample" polarity="posedge" tap_mode="classic"/>
|
||||
<config pipeline_level="1" ram_type="AUTO" reserved_data_nodes="0" reserved_storage_qualifier_nodes="0" reserved_trigger_nodes="0" sample_depth="2048" trigger_in_enable="no" trigger_out_enable="no"/>
|
||||
<top_entity/>
|
||||
<signal_vec>
|
||||
<trigger_input_vec>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" tap_mode="classic"/>
|
||||
</trigger_input_vec>
|
||||
<data_input_vec>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" tap_mode="classic"/>
|
||||
</data_input_vec>
|
||||
<storage_qualifier_input_vec>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" tap_mode="classic"/>
|
||||
<wire name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" tap_mode="classic"/>
|
||||
</storage_qualifier_input_vec>
|
||||
</signal_vec>
|
||||
<presentation>
|
||||
<unified_setup_data_view>
|
||||
<node is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
|
||||
<node data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<node data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<node data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<node data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<node data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<node data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||
<node data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<node data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
<node data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<node data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<node data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<node data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<node is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
|
||||
<node data_index="26" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="26" tap_mode="classic" trigger_index="26" type="unknown"/>
|
||||
<node data_index="25" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="25" tap_mode="classic" trigger_index="25" type="unknown"/>
|
||||
<node data_index="24" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="24" tap_mode="classic" trigger_index="24" type="unknown"/>
|
||||
<node data_index="23" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="23" tap_mode="classic" trigger_index="23" type="unknown"/>
|
||||
<node data_index="22" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="22" tap_mode="classic" trigger_index="22" type="unknown"/>
|
||||
<node data_index="21" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="21" tap_mode="classic" trigger_index="21" type="unknown"/>
|
||||
<node data_index="20" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="20" tap_mode="classic" trigger_index="20" type="unknown"/>
|
||||
<node data_index="19" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="19" tap_mode="classic" trigger_index="19" type="unknown"/>
|
||||
</node>
|
||||
<node data_index="27" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="27" tap_mode="classic" trigger_index="27" type="unknown"/>
|
||||
<node is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8..0]" order="msb_to_lsb" type="register">
|
||||
<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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" storage_index="18" tap_mode="classic" trigger_index="18" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" storage_index="17" tap_mode="classic" trigger_index="17" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" storage_index="16" tap_mode="classic" trigger_index="16" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" storage_index="15" tap_mode="classic" trigger_index="15" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" storage_index="13" tap_mode="classic" trigger_index="13" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" storage_index="12" tap_mode="classic" trigger_index="12" type="unknown"/>
|
||||
<node data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
</node>
|
||||
<node is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7..0]" order="msb_to_lsb" type="register">
|
||||
<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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<node data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<node data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<node data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<node data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<node data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" 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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<node data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
</node>
|
||||
<node data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
<node data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
|
||||
</unified_setup_data_view>
|
||||
<data_view>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
|
||||
<net data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
|
||||
<net data_index="26" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="26" tap_mode="classic" trigger_index="26" type="unknown"/>
|
||||
<net data_index="25" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="25" tap_mode="classic" trigger_index="25" type="unknown"/>
|
||||
<net data_index="24" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="24" tap_mode="classic" trigger_index="24" type="unknown"/>
|
||||
<net data_index="23" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="23" tap_mode="classic" trigger_index="23" type="unknown"/>
|
||||
<net data_index="22" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="22" tap_mode="classic" trigger_index="22" type="unknown"/>
|
||||
<net data_index="21" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="21" tap_mode="classic" trigger_index="21" type="unknown"/>
|
||||
<net data_index="20" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="20" tap_mode="classic" trigger_index="20" type="unknown"/>
|
||||
<net data_index="19" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="19" tap_mode="classic" trigger_index="19" type="unknown"/>
|
||||
</bus>
|
||||
<net data_index="27" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="27" tap_mode="classic" trigger_index="27" type="unknown"/>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8..0]" order="msb_to_lsb" type="register">
|
||||
<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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" storage_index="18" tap_mode="classic" trigger_index="18" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" storage_index="17" tap_mode="classic" trigger_index="17" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" storage_index="16" tap_mode="classic" trigger_index="16" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" storage_index="15" tap_mode="classic" trigger_index="15" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" storage_index="13" tap_mode="classic" trigger_index="13" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" storage_index="12" tap_mode="classic" trigger_index="12" type="unknown"/>
|
||||
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
</bus>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7..0]" order="msb_to_lsb" type="register">
|
||||
<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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" 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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
</bus>
|
||||
<net data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
|
||||
</data_view>
|
||||
<setup_view>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="combinatorial">
|
||||
<net data_index="9" duplicate_name_allowed="false" is_data_input="true" is_node_valid="false" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[9]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[8]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|CCOLOR[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|MOTOR_ON" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|CASS_REWIND_RECORD" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7..0]" order="msb_to_lsb" storage-0="alt_or" storage-1="alt_or" storage-2="alt_or" type="register">
|
||||
<net data_index="26" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[7]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="26" tap_mode="classic" trigger_index="26" type="unknown"/>
|
||||
<net data_index="25" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[6]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="25" tap_mode="classic" trigger_index="25" type="unknown"/>
|
||||
<net data_index="24" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[5]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="24" tap_mode="classic" trigger_index="24" type="unknown"/>
|
||||
<net data_index="23" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[4]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="23" tap_mode="classic" trigger_index="23" type="unknown"/>
|
||||
<net data_index="22" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[3]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="22" tap_mode="classic" trigger_index="22" type="unknown"/>
|
||||
<net data_index="21" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[2]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="21" tap_mode="classic" trigger_index="21" type="unknown"/>
|
||||
<net data_index="20" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[1]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="20" tap_mode="classic" trigger_index="20" type="unknown"/>
|
||||
<net data_index="19" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_data_in[0]" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="19" tap_mode="classic" trigger_index="19" type="unknown"/>
|
||||
</bus>
|
||||
<net data_index="27" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="27" tap_mode="classic" trigger_index="27" type="unknown"/>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8..0]" order="msb_to_lsb" type="register">
|
||||
<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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[8]" storage_index="18" tap_mode="classic" trigger_index="18" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[7]" storage_index="17" tap_mode="classic" trigger_index="17" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[6]" storage_index="16" tap_mode="classic" trigger_index="16" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[5]" storage_index="15" tap_mode="classic" trigger_index="15" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[4]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[3]" storage_index="13" tap_mode="classic" trigger_index="13" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[2]" storage_index="12" tap_mode="classic" trigger_index="12" type="unknown"/>
|
||||
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[1]" 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" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|buf_address[0]" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
</bus>
|
||||
<bus is_selected="false" level-0="alt_or" level-1="alt_or" level-2="alt_or" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7..0]" order="msb_to_lsb" type="register">
|
||||
<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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]" storage_index="9" tap_mode="classic" trigger_index="9" type="unknown"/>
|
||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]" 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-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-1="low" level-2="high" name="emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||
</bus>
|
||||
<net data_index="10" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="10" tap_mode="classic" trigger_index="10" type="unknown"/>
|
||||
<net data_index="11" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="falling edge" level-1="dont_care" level-2="dont_care" name="emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING" pwr_level-0="dont_care" pwr_level-1="dont_care" pwr_level-2="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="11" tap_mode="classic" trigger_index="11" type="unknown"/>
|
||||
</setup_view>
|
||||
<trigger_in_editor/>
|
||||
<trigger_out_editor/>
|
||||
</presentation>
|
||||
<trigger CRC="EA9E4B56" attribute_mem_mode="false" gap_record="true" global_temp="1" is_expanded="true" name="trigger: 2024/02/03 00:21:54 #0" position="center" power_up_trigger_mode="false" record_data_gap="true" segment_size="64" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="false" storage_qualifier_port_name="auto_stp_external_storage_qualifier" storage_qualifier_port_tap_mode="classic" trigger_type="circular">
|
||||
<trigger CRC="3B99A6F0" attribute_mem_mode="false" gap_record="true" global_temp="1" name="trigger: 2024/03/24 15:44:31 #0" position="pre" power_up_trigger_mode="false" record_data_gap="true" segment_size="512" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="false" storage_qualifier_port_name="auto_stp_external_storage_qualifier" storage_qualifier_port_tap_mode="classic" trigger_type="circular">
|
||||
<power_up_trigger position="pre" storage_qualifier_disabled="no"/>
|
||||
<events use_custom_flow_control="no">
|
||||
<level enabled="yes" name="condition1" type="basic">'emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|HBLANKING' == falling edge && 'emu:emu|coco3fpga:coco3|COCO3VIDEO:MISTER_COCOVID|VBLANKING' == falling edge
|
||||
<level enabled="yes" name="condition1" type="basic">'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|look_for_sync' == falling edge
|
||||
<power_up enabled="yes">
|
||||
</power_up><op_node>
|
||||
</power_up>
|
||||
<op_node>
|
||||
<op_node left="608" selected="1" top="80" type="Advanced Trigger Level Result"/>
|
||||
</op_node>
|
||||
</level>
|
||||
<level enabled="yes" name="condition2" type="basic">
|
||||
<level enabled="yes" name="condition2" type="basic">'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]' == low && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]' == low
|
||||
<power_up enabled="yes">
|
||||
</power_up><op_node/>
|
||||
</power_up>
|
||||
<op_node>
|
||||
<op_node left="362" top="95" type="Advanced Trigger Level Result"/>
|
||||
</op_node>
|
||||
</level>
|
||||
<level enabled="yes" name="condition3" type="basic">
|
||||
<level enabled="yes" name="condition3" type="basic">'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[0]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[1]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[2]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[3]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[4]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[5]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[6]' == high && 'emu:emu|coco3fpga:coco3|Cassette_Write:CoCo3_Cassette_Write|blk_type[7]' == high
|
||||
<power_up enabled="yes">
|
||||
</power_up><op_node/>
|
||||
</power_up>
|
||||
<op_node/>
|
||||
</level>
|
||||
<custom_flow_control>
|
||||
<runtime_configurable comparison_operator="yes" counter_action="no" flag_action="no" logical_operator="yes" numerical_value="yes" state_transition="yes"/>
|
||||
<flow_expression><![CDATA[state ST1:
|
||||
trigger;]]>
|
||||
</flow_expression>
|
||||
<power_up_flow_expression><![CDATA[state ST1:
|
||||
trigger;]]>
|
||||
</power_up_flow_expression>
|
||||
</custom_flow_control>
|
||||
</events>
|
||||
<storage_qualifier_events>
|
||||
<transitional>111111111111
|
||||
<pwr_up_transitional>111111111111</pwr_up_transitional>
|
||||
<transitional>1111111111111111111111111111
|
||||
<pwr_up_transitional>1111111111111111111111111111</pwr_up_transitional>
|
||||
</transitional>
|
||||
<storage_qualifier_level type="basic">
|
||||
<power_up>
|
||||
@@ -142,19 +276,12 @@
|
||||
<op_node/>
|
||||
</storage_qualifier_level>
|
||||
</storage_qualifier_events>
|
||||
<log>
|
||||
<data global_temp="1" name="log: Trig @ 2024/03/24 16:48:19 (0:0:12.7 elapsed)" power_up_mode="false" sample_depth="2048" trigger_position="256">11100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000101101001101010101111000000010110100110101010111100000001011010011010101011110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000111000000001110100100111100011100000000111010010011110001110000000011101001001111000Line truncated
|
||||
<extradata>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111T111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</extradata>
|
||||
</log>
|
||||
</trigger>
|
||||
</signal_set>
|
||||
<position_info>
|
||||
<single attribute="active tab" value="1"/>
|
||||
<single attribute="data horizontal scroll position" value="0"/>
|
||||
<single attribute="data vertical scroll position" value="0"/>
|
||||
<single attribute="setup horizontal scroll position" value="0"/>
|
||||
<single attribute="setup vertical scroll position" value="0"/>
|
||||
<single attribute="zoom level denominator" value="2"/>
|
||||
<single attribute="zoom level numerator" value="1"/>
|
||||
<single attribute="zoom offset denominator" value="1"/>
|
||||
<single attribute="zoom offset numerator" value="261888"/>
|
||||
</position_info>
|
||||
</instance>
|
||||
<mnemonics/>
|
||||
<static_plugin_mnemonics/>
|
||||
@@ -162,11 +289,12 @@
|
||||
<single attribute="active instance" value="0"/>
|
||||
<single attribute="config widget visible" value="1"/>
|
||||
<single attribute="data log widget visible" value="1"/>
|
||||
<single attribute="hierarchy widget height" value="96"/>
|
||||
<single attribute="hierarchy widget visible" value="1"/>
|
||||
<single attribute="instance widget visible" value="1"/>
|
||||
<single attribute="jtag widget visible" value="1"/>
|
||||
<single attribute="lock mode" value="0"/>
|
||||
<multi attribute="column width" size="23" value="34,34,192,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,78"/>
|
||||
<multi attribute="column width" size="23" value="34,34,323,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,78"/>
|
||||
<multi attribute="frame size" size="2" value="1024,705"/>
|
||||
<multi attribute="jtag widget size" size="2" value="348,135"/>
|
||||
</global_info>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
`define BUILD_NUMBER "004"
|
||||
+66
@@ -1,3 +1,69 @@
|
||||
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
|
||||
Cassette'. C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
|
||||
E) When done, set 'Cass Rwd=0 / Rec=1' to 0 to complete the write. The file can
|
||||
now be loaded or copied. Note a dummy file of a specific size can be created in
|
||||
the MiSTer SSH shell in the /media/fat/games/coco3 with the command:
|
||||
'truncate -s 65536 tapefileame.cas'. [Note do NOT use over 65536 file length]
|
||||
2. Fixed serial interrupt [6551] to not be functional on slot 3 [carts].
|
||||
3. Modification of sys_top.v to override use of USER_IO for HDMI - so it can be used
|
||||
for logic analyzer debug. This will only occur when `define Config_Debug is
|
||||
enabled in config.v.
|
||||
4. Fixed MUGS of powerup issue occurring on some MiSTer units.
|
||||
5. Fixed incorrect application of GIME_IRQ on legacy interrupts. Fixed race condition
|
||||
on reading IRQ status vs clearing the interrupt.
|
||||
6. Improved Castle of Tharoggad. App now loads but locks as the graphics animate. This
|
||||
change improved mmu usage through to CARTS.
|
||||
7. Builds now keep track of multiple builds in the same date. It shows as V240512-001 in
|
||||
the menus. Its also exposed to BASIC and a boot.vhd which can be enabled to autorun is
|
||||
supplied in the archive to show how it works.
|
||||
8. Additionally, on the boot.vhd disk, is a program which demonstrated how to load a font -
|
||||
IBMFONT.BAS. Run it and it maps a font much like the IBM font to the 80 column format.
|
||||
Also, a file called TESTRTC.BAS pulls the MiSTer RTC values exposed in BASIC to display
|
||||
a clock.
|
||||
9. Large improvement in the Timer function. Code closer emulates COCO3 Timer. Fixes
|
||||
Sliphead cart.
|
||||
10. In the 20231023 release the wd1773 instances were reduced to 1 for the FDC and one for
|
||||
the FDC. This saved space but introduced a bug when using multiple drives at the same
|
||||
time - like a copy command. This change was removed and the copy command works again.
|
||||
|
||||
To Do...
|
||||
1. Add Speech / Music cart
|
||||
2. Fix Castle of Tharoggad
|
||||
|
||||
|
||||
|
||||
|
||||
1. Changed PIA 2 addressing to align with real CoCo3 hardware and end at FF2F.
|
||||
2. Re-arranged MiSTer drive LUNs to support future auto-boot from SDC drive 0.
|
||||
3. Added 'Auto Run' feature. You must use slot 2 [SDC]. Take your floppy or HD
|
||||
and copy it to a file name of 'boot.vhd'. This will be auto mounted to drive 0
|
||||
on the SDC. In the menu, find a new item Auto Run:. It can be set to No, DOS or
|
||||
AUTO.BAS. Choosing dos causes the 'DOS' command to be executed on power up. Setting
|
||||
the option to 'AUTO.BAS' will cause a 'RUN"AUTO' command to be executed upon powerup.
|
||||
Save your settings to cause the changes to be remembered. The Auto Run system re-arms
|
||||
upon using the 'Cold Boot' menu item.
|
||||
4. Fixed MiSTer / CoCo3 interface preventing the joysticks ever reaching the
|
||||
max value of 63. Specifically '>' was changed to '>=' the DTOA values.
|
||||
This fixes DonPan and is verified in Diagnostics 2.0.
|
||||
5. HiRES[3] is used to enable some of the higher resolution graphics modes
|
||||
Gary Becker designed into CoCo3FPGA, and while these are not fully
|
||||
supported, the control signals such as HiRES[3] at $FF98 bit 6 affectt
|
||||
the graphics engine. For some reason Color File II manipulates this bit
|
||||
and was causing it not to work. This change requires the SG6 extensions
|
||||
to be enabled to set HiRES[3]. So specifically in the Video Settings
|
||||
insure CoCo3 LC is set to Yes. Color File II now works properly.
|
||||
|
||||
To Do...
|
||||
1. Add support for cassette save.
|
||||
2. Add Speech / Music cart
|
||||
3. Fix Castle of Tharoggod
|
||||
|
||||
FYI - If you plan on playing with the build process - there is a new compile time feature
|
||||
in config.v called CoCo3_Select_GIMEX_RAST. It is inactive and I suggest you leave
|
||||
it as its is a upcoming change which is not ready.
|
||||
|
||||
|
||||
1. Changed PIA 2 addressing to align with real CoCo3 hardware and end at FF2F.
|
||||
2. Removal of 16 bit sound extentions as they overlap speach / sound cart. This is
|
||||
accompanied by a rework of the sound mixing to be more correct.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,6 +5,7 @@ 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 VERILOG_FILE rtl/VDAC.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/UART_6551/uart_6551.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/UART_6551/6551tx.v
|
||||
@@ -16,10 +17,11 @@ set_global_assignment -name SYSTEMVERILOG_FILE rtl/coco3fpga.sv
|
||||
set_global_assignment -name VERILOG_FILE rtl/pll.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/pll/pll_0002.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/cassette.v
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Cassette_Write.sv
|
||||
set_global_assignment -name VERILOG_FILE rtl/rtc.sv
|
||||
set_global_assignment -name VERILOG_FILE rtl/AMW.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/square_gen.v
|
||||
set_global_assignment -name VERILOG_FILE rtl/config.v
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/config.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/fdc.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdc_top.sv
|
||||
@@ -27,12 +29,7 @@ set_global_assignment -name SYSTEMVERILOG_FILE rtl/Auto_Run.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/ps2_mouse.v
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram/sdram2.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/wd1793.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/music_speech.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sp0256.vhd
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/ym2149_audio.vhd
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Music_Speech_SOC.sv
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE CoCo3.sv
|
||||
set_global_assignment -name VHDL_FILE rtl/sram/CoCo_ram_6116.vhd
|
||||
set_global_assignment -name VHDL_FILE rtl/sram/coco_vid_ram_buf.vhd
|
||||
set_global_assignment -name SYSTEMVERILOG_FILE rtl/coco_mem_fetch.sv
|
||||
set_global_assignment -name VERILOG_FILE rtl/EE_Cold_Bt.v
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,533 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 5.x.x
|
||||
// File Name: Cassette_Write.sv
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Stan Hodge
|
||||
//
|
||||
// Cassette_Write by Stan Hodge 03/18/24
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module Cassette_Write(
|
||||
input RESET_N,
|
||||
input CLK,
|
||||
input CLK_1_78,
|
||||
|
||||
input CASS_REWIND_RECORD,
|
||||
input MOTOR_ON,
|
||||
input [5:0] DTOA_CODE,
|
||||
|
||||
// SD block level interface
|
||||
|
||||
input img_mounted, // signaling that new image has been mounted
|
||||
input img_readonly, // mounted as read only. valid only for active bit in img_mounted
|
||||
input [63:0] img_size, // size of image in bytes.
|
||||
|
||||
output [31:0] sd_lba,
|
||||
output [5:0] sd_blk_cnt, // number of blocks-1, total size ((sd_blk_cnt+1)*(1<<(BLKSZ+7))) must be <= 16384!
|
||||
output reg sd_rd,
|
||||
output reg sd_wr,
|
||||
input sd_ack,
|
||||
|
||||
// SD byte level access. Signals for 2-PORT altsyncram.
|
||||
input [8:0] sd_buff_addr,
|
||||
input [7:0] sd_buff_dout,
|
||||
output [7:0] sd_buff_din,
|
||||
input sd_buff_wr
|
||||
|
||||
);
|
||||
|
||||
|
||||
// Create 16x sample clock for the 2400 Baud rate...
|
||||
// ~26us based on 1.78Mhz [562 ns]- divide by 46....
|
||||
// Generate 1.78 Mhz [enable] GP clk
|
||||
reg clk_sample;
|
||||
reg [5:0] clk_sample_ctr;
|
||||
|
||||
localparam Divide_Rate = 6'd45;
|
||||
|
||||
always @ (negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
clk_sample <= 1'b0;
|
||||
clk_sample_ctr <= 6'b000000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
clk_sample <= 1'b0;
|
||||
if (CLK_1_78)
|
||||
begin
|
||||
clk_sample_ctr <= clk_sample_ctr + 1'b1;
|
||||
if (clk_sample_ctr == Divide_Rate)
|
||||
begin
|
||||
clk_sample <= 1'b1;
|
||||
clk_sample_ctr <= 6'b000000;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
// Mounted SD Image [for the cass]
|
||||
// This is not used and only here for completeness
|
||||
|
||||
//reg drive_wp;
|
||||
//reg [31:0] drive_size;
|
||||
|
||||
//always @(negedge img_mounted)
|
||||
//begin
|
||||
// drive_wp <= img_readonly;
|
||||
// drive_size <= img_size[31:0]; //Size / 256 on [31:8]
|
||||
//end
|
||||
|
||||
// Set to 1 512 byte block per r/w
|
||||
assign sd_blk_cnt = 6'd0;
|
||||
|
||||
|
||||
// Byte Receiver
|
||||
|
||||
reg [15:0] incomming_reg;
|
||||
|
||||
reg [5:0] bit_time;
|
||||
reg [2:0] bit_count;
|
||||
reg wave_negative;
|
||||
|
||||
localparam time_out = 6'h3f;
|
||||
localparam wave_zero_level = 6'd32;
|
||||
localparam bit_time_1 = 6'd22;
|
||||
localparam sync = 15'b0111_1000_1010_101; // Pre shift $553C [L -> R]
|
||||
localparam sync_proper = 8'h3C;
|
||||
localparam leader = 8'h55;
|
||||
localparam pre_rollover = 9'h1FF;
|
||||
localparam rollover = 9'h000;
|
||||
|
||||
reg byte_clk;
|
||||
reg look_for_sync;
|
||||
reg flush_end, flush_end_que;
|
||||
reg sd_hold;
|
||||
reg pre_roll;
|
||||
reg [7:0] blk_type;
|
||||
reg [7:0] protocol_data_count;
|
||||
reg gap;
|
||||
|
||||
// Buffer interface
|
||||
wire [8:0] buf_address;
|
||||
wire [7:0] buf_data_in;
|
||||
wire [7:0] buf_data_out;
|
||||
wire buf_write;
|
||||
|
||||
// State Mach states
|
||||
localparam st_beg0 = 4'd0;
|
||||
localparam st_start = 4'd1;
|
||||
localparam st_st1 = 4'd2;
|
||||
localparam st_st2 = 4'd3;
|
||||
localparam st_wr = 4'd4;
|
||||
localparam st_wr1 = 4'd5;
|
||||
|
||||
reg [3:0] st_state;
|
||||
reg [3:0] state_stack;
|
||||
|
||||
localparam p_sync = 3'd0;
|
||||
localparam p_blk_type = 3'd1;
|
||||
localparam p_len = 3'd2;
|
||||
localparam p_dta = 3'd3;
|
||||
localparam p_cksum = 3'd4;
|
||||
|
||||
reg [2:0] p_state;
|
||||
|
||||
localparam sd_wr_st = 2'd0;
|
||||
localparam sd_wr_st1 = 2'd1;
|
||||
localparam sd_wr_st2 = 2'd2;
|
||||
|
||||
reg [1:0] sd_wr_state;
|
||||
|
||||
|
||||
always @ (negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
buf_address <= 9'b000000000;
|
||||
byte_clk <= 1'b0;
|
||||
bit_count <= 3'b000;
|
||||
incomming_reg <= 16'h0000;
|
||||
bit_time <= 6'b000000;
|
||||
wave_negative <= 1'b0;
|
||||
look_for_sync <= 1'b1;
|
||||
|
||||
buf_write <= 1'b0;
|
||||
st_state <= st_beg0;
|
||||
p_state <= p_sync;
|
||||
flush_end <= 1'b0;
|
||||
flush_end_que <= 1'b0;
|
||||
|
||||
sd_lba <= 32'd0;
|
||||
sd_wr <= 1'b0;
|
||||
sd_rd <= 1'b0;
|
||||
|
||||
sd_wr_state <= sd_wr_st;
|
||||
sd_hold <= 1'b0;
|
||||
pre_roll <= 1'b0;
|
||||
gap <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
// Synchronus Clears
|
||||
if (!MOTOR_ON)
|
||||
begin
|
||||
// Receiver Resets
|
||||
byte_clk <= 1'b0;
|
||||
bit_count <= 3'b000;
|
||||
incomming_reg <= 16'h0000;
|
||||
bit_time <= 6'b000000;
|
||||
wave_negative <= 1'b0;
|
||||
look_for_sync <= 1'b1;
|
||||
end
|
||||
|
||||
if (!CASS_REWIND_RECORD)
|
||||
begin
|
||||
// Eject Tape
|
||||
byte_clk <= 1'b0;
|
||||
bit_count <= 3'b000;
|
||||
incomming_reg <= 16'h0000;
|
||||
bit_time <= 6'b000000;
|
||||
wave_negative <= 1'b0;
|
||||
look_for_sync <= 1'b1;
|
||||
|
||||
st_state <= st_beg0;
|
||||
p_state <= p_sync;
|
||||
buf_write <= 1'b0;
|
||||
flush_end <= 1'b0;
|
||||
flush_end_que <= 1'b0;
|
||||
|
||||
sd_lba <= 32'd0;
|
||||
sd_wr <= 1'b0;
|
||||
sd_rd <= 1'b0;
|
||||
|
||||
sd_wr_state <= sd_wr_st;
|
||||
sd_hold <= 1'b0;
|
||||
pre_roll <= 1'b0;
|
||||
gap <= 1'b0;
|
||||
end
|
||||
|
||||
byte_clk <= 1'b0;
|
||||
|
||||
// 2400/1200 baud receiver
|
||||
if (clk_sample)
|
||||
begin
|
||||
if (DTOA_CODE < wave_zero_level)
|
||||
wave_negative <= 1'b1;
|
||||
else
|
||||
wave_negative <= 1'b0;
|
||||
bit_time <= bit_time + 1'b1;
|
||||
|
||||
// Zero crossing detect
|
||||
if ((DTOA_CODE >= wave_zero_level) && wave_negative)
|
||||
begin
|
||||
// Initially we are not collecting the leader bytes just collecting them and
|
||||
// waiting for the sync $3C55. The write to file stage will automatically
|
||||
// write the 128 leader bytes befor we start transfering data.
|
||||
if (!look_for_sync)
|
||||
begin
|
||||
bit_count <= bit_count + 1'b1;
|
||||
if (bit_count == 3'b111)
|
||||
byte_clk <= 1'b1;
|
||||
end
|
||||
// Shift
|
||||
incomming_reg[14:0] <= incomming_reg[15:1];
|
||||
if (bit_time < bit_time_1)
|
||||
incomming_reg[15] <= 1'b1;
|
||||
else
|
||||
begin
|
||||
incomming_reg[15] <= 1'b0;
|
||||
if (incomming_reg[15:1] == sync)
|
||||
begin
|
||||
look_for_sync <= 1'b0;
|
||||
byte_clk <= 1'b1;
|
||||
end
|
||||
end
|
||||
bit_time <= 6'b000000;
|
||||
end
|
||||
end
|
||||
|
||||
// Normal clocking starts here
|
||||
case(st_state)
|
||||
|
||||
st_beg0:
|
||||
begin
|
||||
// When we start we write 128 bytes of leader to the buffer
|
||||
// before we start with the protocol stuff
|
||||
if (MOTOR_ON)
|
||||
begin
|
||||
buf_address <= 9'b000000000;
|
||||
buf_data_in <= leader;
|
||||
protocol_data_count <= 8'h80; // We will use this to count the 128 bytes
|
||||
|
||||
st_state <= st_start;
|
||||
end
|
||||
end
|
||||
|
||||
st_start:
|
||||
begin
|
||||
state_stack <= st_start; // We come back here
|
||||
st_state <= st_wr; // Write a byte
|
||||
protocol_data_count <= protocol_data_count - 1'b1;
|
||||
if (protocol_data_count == 8'h00) // 128 bytes
|
||||
begin
|
||||
st_state <= st_st1; // No, don't write any more - were done
|
||||
end
|
||||
end
|
||||
|
||||
st_st1:
|
||||
begin
|
||||
if (byte_clk)
|
||||
begin
|
||||
case(p_state)
|
||||
|
||||
p_sync:
|
||||
begin
|
||||
if (incomming_reg[15:8] == sync_proper)
|
||||
begin
|
||||
buf_data_in <= incomming_reg[15:8];
|
||||
state_stack <= st_st1; // We come back here
|
||||
st_state <= st_wr; // Write a byte
|
||||
p_state <= p_blk_type;
|
||||
end
|
||||
end
|
||||
|
||||
p_blk_type:
|
||||
begin
|
||||
buf_data_in <= incomming_reg[15:8];
|
||||
blk_type <= incomming_reg[15:8];
|
||||
state_stack <= st_st1; // We come back here
|
||||
st_state <= st_wr; // Write a byte
|
||||
p_state <= p_len;
|
||||
end
|
||||
|
||||
p_len:
|
||||
begin
|
||||
buf_data_in <= incomming_reg[15:8];
|
||||
protocol_data_count <= incomming_reg[15:8];
|
||||
state_stack <= st_st1; // We come back here
|
||||
st_state <= st_wr; // Write a byte
|
||||
if (incomming_reg[15:8] == 8'h00)
|
||||
p_state <= p_cksum;
|
||||
else
|
||||
p_state <= p_dta;
|
||||
end
|
||||
|
||||
p_dta:
|
||||
begin
|
||||
buf_data_in <= incomming_reg[15:8];
|
||||
protocol_data_count <= protocol_data_count - 1'b1;
|
||||
state_stack <= st_st1; // We come back here
|
||||
st_state <= st_wr; // Write a byte
|
||||
p_state <= p_dta;
|
||||
if ((blk_type == 8'h00) & (protocol_data_count == 8'h05) & (incomming_reg[15:8] == 8'hff))
|
||||
gap <= 1'b1;
|
||||
if (protocol_data_count == 8'h01)
|
||||
p_state <= p_cksum;
|
||||
end
|
||||
|
||||
p_cksum:
|
||||
begin
|
||||
buf_data_in <= incomming_reg[15:8];
|
||||
look_for_sync <= 1'b1;
|
||||
if (blk_type == 8'hff)
|
||||
begin
|
||||
flush_end_que <= 1'b1;
|
||||
state_stack <= st_st1; // We come back here [close it]
|
||||
end
|
||||
else
|
||||
state_stack <= st_st2; // We come back here [next block]
|
||||
st_state <= st_wr; // Write a byte
|
||||
p_state <= p_sync;
|
||||
end
|
||||
|
||||
default:;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
||||
st_st2:
|
||||
begin
|
||||
buf_data_in <= leader;
|
||||
if ((blk_type == 8'h00) || gap)
|
||||
protocol_data_count <= 8'h80; // We will use this to count the 128 bytes
|
||||
else
|
||||
protocol_data_count <= 8'h02; // We will use this to count the 2 bytes
|
||||
st_state <= st_start; // No, don't write any more - were done
|
||||
end
|
||||
|
||||
// Perform the byte writes to the buffer
|
||||
// This acts like a sub routine....
|
||||
st_wr:
|
||||
begin
|
||||
if (!sd_hold)
|
||||
begin
|
||||
buf_write <= 1'b1;
|
||||
st_state <= st_wr1;
|
||||
end
|
||||
end
|
||||
|
||||
st_wr1:
|
||||
begin
|
||||
buf_address <= buf_address + 1'b1;
|
||||
buf_write <= 1'b0;
|
||||
flush_end <= flush_end_que;
|
||||
flush_end_que <= 1'b0;
|
||||
st_state <= state_stack;
|
||||
end
|
||||
|
||||
default:;
|
||||
endcase
|
||||
|
||||
// Handle SD buf clear
|
||||
case(sd_wr_state)
|
||||
|
||||
sd_wr_st:
|
||||
begin
|
||||
if (buf_address == pre_rollover)
|
||||
pre_roll <= 1'b1; // Stop writing to buffer
|
||||
if ((buf_address == rollover) & pre_roll) // If buffer full - write it to SD
|
||||
begin
|
||||
pre_roll <= 1'b0;
|
||||
|
||||
sd_wr <= 1'b1;
|
||||
sd_wr_state <= sd_wr_st1;
|
||||
|
||||
sd_hold <= 1'b1; // Hold writes
|
||||
end
|
||||
if (flush_end) // Write remainder of the buffer at th end...
|
||||
begin
|
||||
sd_wr <= 1'b1;
|
||||
flush_end <= 1'b0;
|
||||
sd_hold <= 1'b1;
|
||||
sd_wr_state <= sd_wr_st1;
|
||||
end
|
||||
end
|
||||
|
||||
sd_wr_st1:
|
||||
begin
|
||||
if (sd_ack)
|
||||
begin
|
||||
sd_wr <= 1'b0;
|
||||
sd_wr_state <= sd_wr_st2;
|
||||
end
|
||||
end
|
||||
|
||||
sd_wr_st2:
|
||||
begin
|
||||
if (!sd_ack)
|
||||
begin
|
||||
sd_hold <= 1'b0;
|
||||
sd_lba <= sd_lba + 1'b1;
|
||||
sd_wr_state <= sd_wr_st;
|
||||
end
|
||||
end
|
||||
|
||||
default:;
|
||||
endcase
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
cass_dpram cas_wr_buff
|
||||
(
|
||||
.clock(CLK),
|
||||
.address_a(sd_buff_addr),
|
||||
.data_a(sd_buff_dout),
|
||||
.wren_a(sd_buff_wr),
|
||||
.q_a(sd_buff_din),
|
||||
|
||||
.address_b(buf_address),
|
||||
.data_b(buf_data_in),
|
||||
.wren_b(buf_write),
|
||||
.q_b(buf_data_out)
|
||||
);
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
|
||||
module cass_dpram
|
||||
(
|
||||
input clock,
|
||||
|
||||
input [8:0] address_a,
|
||||
input [7:0] data_a,
|
||||
input wren_a,
|
||||
output reg [7:0] q_a,
|
||||
|
||||
input [8:0] address_b,
|
||||
input [7:0] data_b,
|
||||
input wren_b,
|
||||
output reg [7:0] q_b
|
||||
);
|
||||
|
||||
logic [7:0] ram[0:511];
|
||||
|
||||
always_ff@(posedge clock) begin
|
||||
if(wren_a) begin
|
||||
ram[address_a] <= data_a;
|
||||
q_a <= data_a;
|
||||
end else begin
|
||||
q_a <= ram[address_a];
|
||||
end
|
||||
end
|
||||
|
||||
always_ff@(posedge clock) begin
|
||||
if(wren_b) begin
|
||||
ram[address_b] <= data_b;
|
||||
q_b <= data_b;
|
||||
end else begin
|
||||
q_b <= ram[address_b];
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
||||
@@ -5,6 +5,7 @@ create_clock -period 1000.000 -name img_mounted[2] [get_nodes emu:emu|hps_io:hps
|
||||
create_clock -period 1000.000 -name img_mounted[1] [get_nodes emu:emu|hps_io:hps_io|img_mounted[1]]
|
||||
create_clock -period 1000.000 -name img_mounted[0] [get_nodes emu:emu|hps_io:hps_io|img_mounted[0]]
|
||||
create_clock -period 1000.000 -name RESET_N [get_nodes emu:emu|coco3fpga:coco3|RESET_N]
|
||||
create_clock -period 1000.000 -name NMISample2 [get_nodes emu:emu|coco3fpga:coco3|mc6809x:GLBCPU09|NMISample2]
|
||||
#set_false_path -from [get_nodes sysmem_lite:sysmem|sysmem_HPS_fpga_interfaces:fpga_interfaces|clocks_resets~FF_4365]
|
||||
#create_clock -period 17.46 -name PH_2 [get_nodes emu:emu|coco3fpga:coco3|PH_2_RAW]
|
||||
#create_clock -period 1000.000 -name CLK_6551[4] [get_nodes emu:emu|coco3fpga:coco3|CLK_6551[4]]
|
||||
|
||||
+15
-2
@@ -55,6 +55,7 @@
|
||||
|
||||
module EE_Cold_Bt(
|
||||
input CLK,
|
||||
input RESET,
|
||||
|
||||
input Display_EE, // from MISTer subsystem
|
||||
input Cold_Boot, // from MISTer subsystem
|
||||
@@ -106,9 +107,20 @@ assign Start_Display_EE = ((Display_EE == 1'b1) & (Display_EE_D == 1'b0));
|
||||
assign Start_Cold_Boot = ((Cold_Boot == 1'b1) & (Cold_Boot_D == 1'b0));
|
||||
|
||||
|
||||
always @(posedge CLK)
|
||||
always @ (posedge CLK or posedge RESET)
|
||||
begin
|
||||
if(RESET)
|
||||
begin
|
||||
Display_EE_D <= 1'b0;
|
||||
Cold_Boot_D <= 1'b0;
|
||||
EE <= 1'b1;
|
||||
N_RESET <= 1'b1;
|
||||
prog <= 48'h000000000000;
|
||||
next_instruction <= 1'b0;
|
||||
timer <= 24'h000000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
||||
Display_EE_D <= Display_EE;
|
||||
Cold_Boot_D <= Cold_Boot;
|
||||
|
||||
@@ -206,5 +218,6 @@ begin
|
||||
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
||||
+14
-4
@@ -1827,15 +1827,25 @@ always @ (negedge MASTER_CLK)
|
||||
// Adjust HSYNC here
|
||||
**************************************************************************************/
|
||||
// Width from 87 GIME 5.08 uS = 73 clocks
|
||||
11'd751: // 824 - 751 = 73 (approx 5.09 uS)
|
||||
// 11'd751: // 824 - 751 = 73 (approx 5.09 uS)
|
||||
// begin
|
||||
// HSYNC_N <= 1'b0; // Turn on Sync
|
||||
// PIXEL_COUNT <= 11'd752;
|
||||
// end
|
||||
// 11'd810: // End of SYNC start of front porch 804 + 80 - 1, End of Sync to Video = 167 816 + 167 =
|
||||
// begin
|
||||
// HSYNC_N <= 1'b1; // SYNC OFF
|
||||
// PIXEL_COUNT <= 11'd811;
|
||||
// end
|
||||
11'd752: // 824 - 751 = 73 (approx 5.09 uS)
|
||||
begin
|
||||
HSYNC_N <= 1'b0; // Turn on Sync
|
||||
PIXEL_COUNT <= 11'd752;
|
||||
PIXEL_COUNT <= 11'd753;
|
||||
end
|
||||
11'd810: // End of SYNC start of front porch 804 + 80 - 1, End of Sync to Video = 167 816 + 167 =
|
||||
11'd811: // End of SYNC start of front porch 804 + 80 - 1, End of Sync to Video = 167 816 + 167 =
|
||||
begin
|
||||
HSYNC_N <= 1'b1; // SYNC OFF
|
||||
PIXEL_COUNT <= 11'd811;
|
||||
PIXEL_COUNT <= 11'd812;
|
||||
end
|
||||
/**************************************************************************************
|
||||
* End of HSYNC adjustment
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,112 +0,0 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 5.x.x
|
||||
// File Name: Music_Speech.sv
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Stan Hodge
|
||||
//
|
||||
// Music_Speech.sv by Stan Hodge 02/16/24
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module Music_Speech_SOC(
|
||||
input RESET_N,
|
||||
input CLKIN,
|
||||
input CLK_1_78,
|
||||
|
||||
input INT1_N,
|
||||
input INT3_N,
|
||||
|
||||
output [7:0] PORT_A,
|
||||
output [7:0] PORT_B,
|
||||
output [7:0] PORT_C,
|
||||
output [7:0] PORT_D_OUT,
|
||||
input [7:0] PORT_D_IN
|
||||
);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
// 09 Processor
|
||||
|
||||
wire VMA, RW_N, HALT, CPU_IRQ_N, CPU_FIRQ_N, NMI_09;
|
||||
wire [15:0] ADDRESS;
|
||||
wire [7:0] DATA_IN, DATA_OUT;
|
||||
|
||||
// CPU section copyrighted by John Kent
|
||||
cpu09 GLBCPU09(
|
||||
.clk(CLKIN),
|
||||
.rst(!RESET_N),
|
||||
.vma(VMA),
|
||||
.addr(ADDRESS),
|
||||
.rw(RW_N),
|
||||
.data_in(DATA_IN),
|
||||
.data_out(DATA_OUT),
|
||||
.halt(HALT),
|
||||
.hold(hold | ~cpu_ena), // ???
|
||||
.irq(!CPU_IRQ_N),
|
||||
.firq(!CPU_FIRQ_N),
|
||||
.nmi(NMI_09)
|
||||
);
|
||||
|
||||
assign DATA_IN = (ADDRESS[15:7] == 8'b00000000) ? ram_data_out:
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// SRAM Chip
|
||||
|
||||
wire [7:0] ram_data_out;
|
||||
wire sram_write_enable;
|
||||
|
||||
COCO_SRAM_128x8 CoCo3_SRAM_128x8(
|
||||
.CLK(CLK),
|
||||
.ENA(sram_write_enable),
|
||||
.ADDR(ADDRESS[6:0]),
|
||||
.R_N(RW_N),
|
||||
.DATA_O(ram_data_out),
|
||||
.DATA_I(DATA_OUT)
|
||||
);
|
||||
|
||||
|
||||
endmodule
|
||||
@@ -1,66 +0,0 @@
|
||||
//============================================================================
|
||||
// Audio compressor (signed samples)
|
||||
//
|
||||
// Copyright (C) 2018 Sorgelig
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by the Free
|
||||
// Software Foundation; either version 2 of the License, or (at your option)
|
||||
// any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
// more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License along
|
||||
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
//============================================================================
|
||||
|
||||
module compressor
|
||||
(
|
||||
input clk,
|
||||
input [9:0] din,
|
||||
output [8:0] dout
|
||||
);
|
||||
|
||||
always @(posedge clk) dout <= {din[9], din[9] ? ~tbl[~din[8:0]] : tbl[din[8:0]]};
|
||||
|
||||
wire [7:0] tbl[0:511] =
|
||||
'{
|
||||
8'h00, 8'h01, 8'h02, 8'h03, 8'h04, 8'h06, 8'h07, 8'h08, 8'h09, 8'h0B, 8'h0C, 8'h0D, 8'h0E, 8'h0F, 8'h11, 8'h12,
|
||||
8'h13, 8'h14, 8'h16, 8'h17, 8'h18, 8'h19, 8'h1B, 8'h1C, 8'h1D, 8'h1E, 8'h1F, 8'h21, 8'h22, 8'h23, 8'h24, 8'h25,
|
||||
8'h27, 8'h28, 8'h29, 8'h2A, 8'h2C, 8'h2D, 8'h2E, 8'h2F, 8'h30, 8'h32, 8'h33, 8'h34, 8'h35, 8'h36, 8'h37, 8'h39,
|
||||
8'h3A, 8'h3B, 8'h3C, 8'h3D, 8'h3F, 8'h40, 8'h41, 8'h42, 8'h43, 8'h44, 8'h46, 8'h47, 8'h48, 8'h49, 8'h4A, 8'h4B,
|
||||
8'h4D, 8'h4E, 8'h4F, 8'h50, 8'h51, 8'h52, 8'h53, 8'h55, 8'h56, 8'h57, 8'h58, 8'h59, 8'h5A, 8'h5B, 8'h5C, 8'h5E,
|
||||
8'h5F, 8'h60, 8'h61, 8'h62, 8'h63, 8'h64, 8'h65, 8'h66, 8'h67, 8'h69, 8'h6A, 8'h6B, 8'h6C, 8'h6D, 8'h6E, 8'h6F,
|
||||
8'h70, 8'h71, 8'h72, 8'h73, 8'h74, 8'h75, 8'h76, 8'h77, 8'h78, 8'h79, 8'h7A, 8'h7B, 8'h7C, 8'h7D, 8'h7E, 8'h7F,
|
||||
8'h80, 8'h81, 8'h82, 8'h83, 8'h84, 8'h85, 8'h86, 8'h87, 8'h88, 8'h89, 8'h8A, 8'h8B, 8'h8C, 8'h8D, 8'h8E, 8'h8F,
|
||||
8'h90, 8'h91, 8'h92, 8'h93, 8'h94, 8'h95, 8'h96, 8'h96, 8'h97, 8'h98, 8'h99, 8'h9A, 8'h9B, 8'h9C, 8'h9D, 8'h9E,
|
||||
8'h9E, 8'h9F, 8'hA0, 8'hA1, 8'hA2, 8'hA3, 8'hA4, 8'hA4, 8'hA5, 8'hA6, 8'hA7, 8'hA8, 8'hA9, 8'hA9, 8'hAA, 8'hAB,
|
||||
8'hAC, 8'hAD, 8'hAD, 8'hAE, 8'hAF, 8'hB0, 8'hB1, 8'hB1, 8'hB2, 8'hB3, 8'hB4, 8'hB4, 8'hB5, 8'hB6, 8'hB7, 8'hB7,
|
||||
8'hB8, 8'hB9, 8'hB9, 8'hBA, 8'hBB, 8'hBC, 8'hBC, 8'hBD, 8'hBE, 8'hBE, 8'hBF, 8'hC0, 8'hC0, 8'hC1, 8'hC2, 8'hC2,
|
||||
8'hC3, 8'hC4, 8'hC4, 8'hC5, 8'hC6, 8'hC6, 8'hC7, 8'hC8, 8'hC8, 8'hC9, 8'hC9, 8'hCA, 8'hCB, 8'hCB, 8'hCC, 8'hCC,
|
||||
8'hCD, 8'hCE, 8'hCE, 8'hCF, 8'hCF, 8'hD0, 8'hD0, 8'hD1, 8'hD2, 8'hD2, 8'hD3, 8'hD3, 8'hD4, 8'hD4, 8'hD5, 8'hD5,
|
||||
8'hD6, 8'hD6, 8'hD7, 8'hD7, 8'hD8, 8'hD8, 8'hD9, 8'hD9, 8'hDA, 8'hDA, 8'hDB, 8'hDB, 8'hDC, 8'hDC, 8'hDD, 8'hDD,
|
||||
8'hDE, 8'hDE, 8'hDE, 8'hDF, 8'hDF, 8'hE0, 8'hE0, 8'hE1, 8'hE1, 8'hE1, 8'hE2, 8'hE2, 8'hE3, 8'hE3, 8'hE3, 8'hE4,
|
||||
8'hE4, 8'hE5, 8'hE5, 8'hE5, 8'hE6, 8'hE6, 8'hE6, 8'hE7, 8'hE7, 8'hE7, 8'hE8, 8'hE8, 8'hE9, 8'hE9, 8'hE9, 8'hEA,
|
||||
8'hEA, 8'hEA, 8'hEA, 8'hEB, 8'hEB, 8'hEB, 8'hEC, 8'hEC, 8'hEC, 8'hED, 8'hED, 8'hED, 8'hEE, 8'hEE, 8'hEE, 8'hEE,
|
||||
8'hEF, 8'hEF, 8'hEF, 8'hEF, 8'hF0, 8'hF0, 8'hF0, 8'hF0, 8'hF1, 8'hF1, 8'hF1, 8'hF1, 8'hF2, 8'hF2, 8'hF2, 8'hF2,
|
||||
8'hF3, 8'hF3, 8'hF3, 8'hF3, 8'hF3, 8'hF4, 8'hF4, 8'hF4, 8'hF4, 8'hF4, 8'hF5, 8'hF5, 8'hF5, 8'hF5, 8'hF5, 8'hF6,
|
||||
8'hF6, 8'hF6, 8'hF6, 8'hF6, 8'hF6, 8'hF7, 8'hF7, 8'hF7, 8'hF7, 8'hF7, 8'hF7, 8'hF8, 8'hF8, 8'hF8, 8'hF8, 8'hF8,
|
||||
8'hF8, 8'hF8, 8'hF9, 8'hF9, 8'hF9, 8'hF9, 8'hF9, 8'hF9, 8'hF9, 8'hF9, 8'hFA, 8'hFA, 8'hFA, 8'hFA, 8'hFA, 8'hFA,
|
||||
8'hFA, 8'hFA, 8'hFA, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFB, 8'hFC, 8'hFC,
|
||||
8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFC, 8'hFD, 8'hFD, 8'hFD,
|
||||
8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD, 8'hFD,
|
||||
8'hFD, 8'hFD, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE,
|
||||
8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFE, 8'hFF
|
||||
};
|
||||
|
||||
endmodule
|
||||
@@ -1,444 +0,0 @@
|
||||
---------------------------------------------------------------------------------
|
||||
-- sp0256 by Dar ([email protected]) (14/04/2018)
|
||||
-- http://darfpga.blogspot.fr
|
||||
---------------------------------------------------------------------------------
|
||||
-- Educational use only
|
||||
-- Do not redistribute synthetized file with roms
|
||||
-- Do not redistribute roms whatever the form
|
||||
-- Use at your own risk
|
||||
---------------------------------------------------------------------------------
|
||||
--
|
||||
-- SP0256-al2 prom decoding scheme and speech synthesis algorithm are from :
|
||||
--
|
||||
-- Copyright Joseph Zbiciak, all rights reserved.
|
||||
-- Copyright tim lindner, all rights reserved.
|
||||
--
|
||||
-- See C source code and license in sp0256.c from MAME source
|
||||
--
|
||||
-- VHDL code is by Dar.
|
||||
--
|
||||
---------------------------------------------------------------------------------
|
||||
--
|
||||
-- One allophone is made of N parts (called here after lines), each part has a
|
||||
-- 16 bytes descriptor. One descriptor (for one part) contains one repeat value
|
||||
-- one amplitude value, one period value and 2x6 filtering coefficients.
|
||||
--
|
||||
-- for line_cnt from 0 to nb_line-1 (part)
|
||||
-- for line_rpt from 0 to line_rpt-1 (repeat)
|
||||
-- for per_cnt from 0 to line_per-1 (period)
|
||||
-- produce 1 sample
|
||||
--
|
||||
-- One sample is the output of the 6 stages filter. Each filter stage is fed by
|
||||
-- the output of the previous stage, the first stage is fed by the source sample
|
||||
--
|
||||
-- when line_per != 0 source sample is set to amplitude value only once at the
|
||||
-- begin of each repeat (per_cnt==0) then source sample is set to 0
|
||||
--
|
||||
-- when line_per == 0 source sample is set to amplitude value only at the begin
|
||||
-- of each repeat (per_cnt==0) then source sample sign is toggled (+/-) when then
|
||||
-- random noise generator lsb equal 1. In that case actual line_per is set to 64
|
||||
--
|
||||
--
|
||||
-- Sound sample frequency is 10kHz. I make a 25 stages linear state machine
|
||||
-- running at 250kHz that produce one sound sample per cycle.
|
||||
--
|
||||
-- As long as one allophones is available the state machine runs permanently and
|
||||
-- there is zero latency between allophones.
|
||||
--
|
||||
-- During one (each) cycle the state machine:
|
||||
--
|
||||
-- - fetch new allophone or go on with current one if not finished
|
||||
-- - get allophone first line descriptor address from rom entry table
|
||||
-- - get allophone nb_line from rom entry table and jump to first line address
|
||||
-- - get allophone line_rpt from rom current line descriptor
|
||||
-- - get allophone amplitude from rom current line descriptor
|
||||
-- manage source amplitude, reset filter if needed
|
||||
-- - get allophone line_per from rom current line descriptor
|
||||
-- - address filter coefficients F/B within rom current line descriptor,
|
||||
-- feed filter input, update filter state with computation output
|
||||
-- - rescale last filter stage output to audio output
|
||||
-- - manage per_cnt, rpt_cnt, line_cnt and random noise generator
|
||||
--
|
||||
-- Filter computation:
|
||||
--
|
||||
-- Filter coefficients F or B index is get from rom current line descriptor
|
||||
-- (address managed by state machine), value is converted thru coeff_array
|
||||
-- table. Coefficient index has a sign bit to be managed:
|
||||
--
|
||||
-- if index sign bit = 0, filter coefficient <= -coeff_array(index)
|
||||
-- if index sign bit = 1, filter coefficient <= coeff_array(-index)
|
||||
--
|
||||
-- During one state machine cycle each filter is updated once.
|
||||
-- One filter update require two state machine steps:
|
||||
--
|
||||
-- step 1
|
||||
-- sum_in1 <= filter input
|
||||
-- sum_in2 <= filter coefficient F * filter state z1 / 256
|
||||
-- sum_out <= sum_in1 + sum_in2
|
||||
-- step 2
|
||||
-- sum_in1 <= sum_out
|
||||
-- sum_in2 <= filter coefficient B * filter state z2 / 512
|
||||
-- sum_out <= sum_in1 + sum_in2
|
||||
-- filter state z1 <= sum_in1 + sum_in2
|
||||
-- filter state z2 <= filter state z1
|
||||
--
|
||||
-- (sum_out will be limited to -32768/+32767)
|
||||
--
|
||||
-- Audio output scaling to 10bits unsigned:
|
||||
--
|
||||
-- what :
|
||||
-- Last filter output is limited to -8192/+8191
|
||||
-- Then divided by 16 => -512/+511
|
||||
-- Then offset by 512 => 0/1023
|
||||
--
|
||||
-- how:
|
||||
-- if X > 8191, Y <= 1023
|
||||
-- elsif X < -8192, Y <= 0
|
||||
-- else Y <= (X/16)+512
|
||||
--
|
||||
---------------------------------------------------------------------------------
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.ALL;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity sp0256 is
|
||||
port
|
||||
(
|
||||
clock : in std_logic;
|
||||
ce : in std_logic;
|
||||
reset : in std_logic;
|
||||
|
||||
input_rdy : out std_logic;
|
||||
allophone : in std_logic_vector(5 downto 0);
|
||||
trig_allophone : in std_logic;
|
||||
|
||||
audio_out : out signed(9 downto 0)
|
||||
);
|
||||
end sp0256;
|
||||
|
||||
architecture syn of sp0256 is
|
||||
|
||||
signal rom_addr : std_logic_vector(11 downto 0);
|
||||
signal rom_do : std_logic_vector( 7 downto 0);
|
||||
|
||||
signal stage : integer range 0 to 24; -- stage counter 0-24;
|
||||
|
||||
signal allo_entry : std_logic_vector(7 downto 0);
|
||||
signal allo_addr_lsb, allo_addr_msb : std_logic_vector(7 downto 0);
|
||||
signal allo_nb_line : std_logic_vector(7 downto 0);
|
||||
signal line_rpt, line_per : std_logic_vector(7 downto 0);
|
||||
signal line_amp_lsb, line_amp_msb : std_logic_vector(7 downto 0);
|
||||
|
||||
signal amp, filter, coeff : signed(15 downto 0);
|
||||
signal sum_in2 : signed(31 downto 0);
|
||||
signal sum_in1,sum_out_ul : signed(15 downto 0);
|
||||
signal sum_out : signed(15 downto 0);
|
||||
signal divider : std_logic;
|
||||
signal audio : signed(9 downto 0);
|
||||
signal audio_int : signed(8 downto 0);
|
||||
|
||||
signal is_noise : std_logic;
|
||||
signal noise_rng : std_logic_vector(15 downto 0) := X"0001";
|
||||
|
||||
signal f0_z1,f0_z2 : signed(15 downto 0);
|
||||
signal f1_z1,f1_z2 : signed(15 downto 0);
|
||||
signal f2_z1,f2_z2 : signed(15 downto 0);
|
||||
signal f3_z1,f3_z2 : signed(15 downto 0);
|
||||
signal f4_z1,f4_z2 : signed(15 downto 0);
|
||||
signal f5_z1,f5_z2 : signed(15 downto 0);
|
||||
|
||||
signal input_rdy_in : std_logic;
|
||||
signal sound_on : std_logic := '0';
|
||||
signal trig_allophone_r : std_logic;
|
||||
signal line_cnt, rpt_cnt, per_cnt : std_logic_vector(7 downto 0);
|
||||
|
||||
signal coeff_idx : std_logic_vector(6 downto 0);
|
||||
|
||||
type coeff_array_t is array(0 to 127) of integer range 0 to 511;
|
||||
constant coeff_array : coeff_array_t := (
|
||||
0, 9, 17, 25, 33, 41, 49, 57,
|
||||
65, 73, 81, 89, 97, 105, 113, 121,
|
||||
129, 137, 145, 153, 161, 169, 177, 185,
|
||||
193, 201, 209, 217, 225, 233, 241, 249,
|
||||
257, 265, 273, 281, 289, 297, 301, 305,
|
||||
309, 313, 317, 321, 325, 329, 333, 337,
|
||||
341, 345, 349, 353, 357, 361, 365, 369,
|
||||
373, 377, 381, 385, 389, 393, 397, 401,
|
||||
405, 409, 413, 417, 421, 425, 427, 429,
|
||||
431, 433, 435, 437, 439, 441, 443, 445,
|
||||
447, 449, 451, 453, 455, 457, 459, 461,
|
||||
463, 465, 467, 469, 471, 473, 475, 477,
|
||||
479, 481, 482, 483, 484, 485, 486, 487,
|
||||
488, 489, 490, 491, 492, 493, 494, 495,
|
||||
496, 497, 498, 499, 500, 501, 502, 503,
|
||||
504, 505, 506, 507, 508, 509, 510, 511);
|
||||
|
||||
component compressor is port
|
||||
(
|
||||
clk : in std_logic;
|
||||
din : in signed(9 downto 0);
|
||||
dout : out signed(8 downto 0)
|
||||
);
|
||||
end component;
|
||||
|
||||
begin
|
||||
|
||||
input_rdy <= input_rdy_in;
|
||||
|
||||
-- stage counter : Fs=250k/25 = 10kHz
|
||||
process (clock, reset)
|
||||
begin
|
||||
if reset='1' then
|
||||
stage <= 0;
|
||||
else
|
||||
if rising_edge(clock) then
|
||||
if ce = '1' then
|
||||
if stage >= 24 then
|
||||
stage <= 0;
|
||||
else
|
||||
stage <= stage + 1;
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
process (clock, reset)
|
||||
begin
|
||||
if reset='1' then
|
||||
input_rdy_in <= '1';
|
||||
sound_on <= '0';
|
||||
noise_rng <= X"0001";
|
||||
else
|
||||
if rising_edge(clock) then if ce = '1' then
|
||||
|
||||
trig_allophone_r <= trig_allophone;
|
||||
if trig_allophone = '1' and trig_allophone_r = '0' then
|
||||
input_rdy_in <= '0';
|
||||
end if;
|
||||
|
||||
if sound_on = '0' then
|
||||
|
||||
if stage = 0 and input_rdy_in = '0' then
|
||||
allo_entry <= allophone*"11";
|
||||
rom_addr <= X"0"&(allophone*"11");
|
||||
line_cnt <= (others => '0');
|
||||
rpt_cnt <= (others => '0');
|
||||
per_cnt <= (others => '0');
|
||||
sound_on <= '1';
|
||||
input_rdy_in <= '1';
|
||||
end if;
|
||||
|
||||
else -- sound is on
|
||||
|
||||
case stage is
|
||||
when 0 =>
|
||||
rom_addr <= X"0"&allo_entry;
|
||||
when 1 =>
|
||||
--allo_addr_msb <= rom_do;
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 2 =>
|
||||
allo_addr_lsb <= rom_do;
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 3 =>
|
||||
allo_nb_line <= rom_do - '1';
|
||||
rom_addr <= (allo_addr_lsb +line_cnt) & X"0";
|
||||
when 4 =>
|
||||
line_rpt <= rom_do - '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 5 =>
|
||||
line_amp_msb <= rom_do;
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 6 =>
|
||||
|
||||
if per_cnt = X"00" then
|
||||
amp <= signed(line_amp_msb & rom_do);
|
||||
else
|
||||
if is_noise = '1' then
|
||||
if noise_rng(0) = '1' then
|
||||
amp <= -amp;
|
||||
end if;
|
||||
else
|
||||
amp <= (others => '0');
|
||||
end if;
|
||||
end if;
|
||||
|
||||
if per_cnt = X"00"then
|
||||
f0_z1 <= (others => '0'); f0_z2 <= (others => '0');
|
||||
f1_z1 <= (others => '0'); f1_z2 <= (others => '0');
|
||||
f2_z1 <= (others => '0'); f2_z2 <= (others => '0');
|
||||
f3_z1 <= (others => '0'); f3_z2 <= (others => '0');
|
||||
f4_z1 <= (others => '0'); f4_z2 <= (others => '0');
|
||||
f5_z1 <= (others => '0'); f5_z2 <= (others => '0');
|
||||
end if;
|
||||
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 7 =>
|
||||
if rom_do = X"00" then
|
||||
line_per <= X"40";
|
||||
is_noise <= '1';
|
||||
else
|
||||
line_per <= rom_do - '1';
|
||||
is_noise <= '0';
|
||||
end if;
|
||||
sum_in1 <= amp;
|
||||
filter <= f0_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 8 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f0_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 9 =>
|
||||
f0_z1 <= sum_out;
|
||||
f0_z2 <= f0_z1;
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f1_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 10 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f1_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 11 =>
|
||||
f1_z1 <= sum_out;
|
||||
f1_z2 <= f1_z1;
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f2_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 12 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f2_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 13 =>
|
||||
f2_z1 <= sum_out;
|
||||
f2_z2 <= f2_z1;
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f3_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 14 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f3_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 15 =>
|
||||
f3_z1 <= sum_out;
|
||||
f3_z2 <= f3_z1;
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f4_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 16 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f4_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 17 =>
|
||||
f4_z1 <= sum_out;
|
||||
f4_z2 <= f4_z1;
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f5_z1;
|
||||
divider <= '0';
|
||||
rom_addr <= rom_addr + '1';
|
||||
when 18 =>
|
||||
sum_in1 <= sum_out;
|
||||
filter <= f5_z2;
|
||||
divider <= '1';
|
||||
rom_addr <= rom_addr + '1';
|
||||
|
||||
when 19 =>
|
||||
f5_z1 <= sum_out;
|
||||
f5_z2 <= f5_z1;
|
||||
|
||||
if sum_out > 510*16 then
|
||||
audio <= to_signed(511,10);
|
||||
elsif sum_out < -511*16 then
|
||||
audio <= to_signed(-512,10);
|
||||
else
|
||||
audio <= sum_out(13 downto 4);
|
||||
end if;
|
||||
|
||||
when 20 =>
|
||||
if per_cnt >= line_per then
|
||||
per_cnt <= (others => '0');
|
||||
if rpt_cnt >= line_rpt then
|
||||
rpt_cnt <= (others => '0');
|
||||
if line_cnt >= allo_nb_line then
|
||||
line_cnt <= (others => '0');
|
||||
sound_on <= '0';
|
||||
else
|
||||
line_cnt <= line_cnt + '1';
|
||||
end if;
|
||||
is_noise <= '0';
|
||||
else
|
||||
rpt_cnt <= rpt_cnt + '1';
|
||||
end if;
|
||||
else
|
||||
per_cnt <= per_cnt + '1';
|
||||
end if;
|
||||
|
||||
if noise_rng(0) = '1' then
|
||||
noise_rng <= ('0' & noise_rng(15 downto 1) ) xor X"4001";
|
||||
else
|
||||
noise_rng <= '0' & noise_rng(15 downto 1);
|
||||
end if;
|
||||
|
||||
when others => null;
|
||||
end case;
|
||||
|
||||
end if;
|
||||
|
||||
end if; end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
compr: compressor
|
||||
port map
|
||||
(
|
||||
clk => clock,
|
||||
din => audio,
|
||||
dout => audio_int
|
||||
);
|
||||
|
||||
audio_out <= audio_int(8) & audio_int;
|
||||
|
||||
-- filter computation
|
||||
coeff_idx <= rom_do(6 downto 0) when rom_do(7)='0' else
|
||||
not(rom_do(6 downto 0)) + '1';
|
||||
|
||||
coeff <= -to_signed(coeff_array(to_integer(unsigned(coeff_idx))),16) when rom_do(7)='0' else
|
||||
to_signed(coeff_array(to_integer(unsigned(coeff_idx))),16);
|
||||
|
||||
sum_in2 <= (filter * coeff) / 256 when divider = '0' else
|
||||
(filter * coeff) / 512 ;
|
||||
|
||||
sum_out_ul <= sum_in1 + sum_in2(15 downto 0);
|
||||
|
||||
sum_out <= to_signed( 32767,16) when sum_out_ul > 32767 else
|
||||
to_signed(-32768,16) when sum_out_ul < -32768 else
|
||||
sum_out_ul;
|
||||
|
||||
|
||||
-- sp0256-al2 prom (decoded)
|
||||
sp0256_al2_decoded : entity work.sp0256_al2_decoded
|
||||
port map(
|
||||
clk => clock,
|
||||
addr => rom_addr,
|
||||
data => rom_do
|
||||
);
|
||||
|
||||
|
||||
end syn;
|
||||
@@ -1,373 +0,0 @@
|
||||
---------------------------------------------------------------------------------
|
||||
-- sp0256 by Dar ([email protected]) (14/04/2018)
|
||||
-- http://darfpga.blogspot.fr
|
||||
---------------------------------------------------------------------------------
|
||||
-- Educational use only
|
||||
-- Do not redistribute synthetized file with roms
|
||||
-- Do not redistribute roms whatever the form
|
||||
-- Use at your own risk
|
||||
---------------------------------------------------------------------------------
|
||||
--
|
||||
-- SP0256-al2 prom decoding scheme and speech synthesis algorithm are from :
|
||||
--
|
||||
-- Copyright Joseph Zbiciak, all rights reserved.
|
||||
-- Copyright tim lindner, all rights reserved.
|
||||
--
|
||||
-- See C source code and license in sp0256.c from MAME source
|
||||
--
|
||||
-- VHDL code is by Dar.
|
||||
--
|
||||
---------------------------------------------------------------------------------
|
||||
-- Original sp0256 prom is bit compressed. I used sp0256.c from MAME to produce
|
||||
-- an uncompressed and more easy format to be used in FPGA.
|
||||
--
|
||||
-- Original prom is 2K, uncompressed prom is 4k.
|
||||
--
|
||||
-- Uncompressed format is :
|
||||
--
|
||||
-- 64 entries table of 3 bytes/entry : adr_msb, adr_lsb, nb_line (nb parts)
|
||||
-- (1 entry per allophone)
|
||||
--
|
||||
-- Each allophone is made of #nb_line parts
|
||||
--
|
||||
-- Each part is described by 16 bytes (one line) :
|
||||
--
|
||||
-- rpt : repeat nb
|
||||
-- amp_msb, amp_lsb : amplitude
|
||||
-- per : periode (number of sample to be produced for each rpt)
|
||||
-- F0|B0|F1|B1|F2|B2|F3|B3|F4|B4|F5|B5 : filtering coefficients
|
||||
--
|
||||
---------------------------------------------------------------------------------
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all,ieee.numeric_std.all;
|
||||
|
||||
entity sp0256_al2_decoded is
|
||||
port (
|
||||
clk : in std_logic;
|
||||
addr : in std_logic_vector(11 downto 0);
|
||||
data : out std_logic_vector(7 downto 0)
|
||||
);
|
||||
end entity;
|
||||
|
||||
architecture prom of sp0256_al2_decoded is
|
||||
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
|
||||
signal rom_data: rom := (
|
||||
-- adr_msb|adr_lsb|nb_line
|
||||
X"00",X"0C",X"01", -- #00 : 000-002
|
||||
X"00",X"0D",X"01", -- #01 : 003-005
|
||||
X"00",X"0E",X"01", -- #02 : 006-008
|
||||
X"00",X"0F",X"01", -- #03 : 009-00B
|
||||
X"00",X"10",X"01", -- #04 : 00C-00E
|
||||
X"00",X"11",X"0A", -- #05 : 00F-011
|
||||
X"00",X"1B",X"0A", -- #06 : 012-014
|
||||
X"00",X"25",X"01", -- #07 : 015-017
|
||||
X"00",X"26",X"03", -- #08 : 018-01A
|
||||
X"00",X"29",X"03", -- #09 : 01B-01D
|
||||
X"00",X"2C",X"03", -- #0A : 01E-020
|
||||
X"00",X"2F",X"03", -- #0B : 021-023
|
||||
X"00",X"32",X"01", -- #0C : 024-026
|
||||
X"00",X"33",X"04", -- #0D : 027-029
|
||||
X"00",X"37",X"06", -- #0E : 02A-02C
|
||||
X"00",X"3D",X"01", -- #0F : 02D-02F
|
||||
X"00",X"3E",X"04", -- #10 : 030-032
|
||||
X"00",X"42",X"03", -- #11 : 033-035
|
||||
X"00",X"45",X"02", -- #12 : 036-038
|
||||
X"00",X"47",X"06", -- #13 : 039-03B
|
||||
X"00",X"4D",X"08", -- #14 : 03C-03E
|
||||
X"00",X"55",X"02", -- #15 : 03F-041
|
||||
X"00",X"57",X"03", -- #16 : 042-044
|
||||
X"00",X"5A",X"01", -- #17 : 045-047
|
||||
X"00",X"5B",X"03", -- #18 : 048-04A
|
||||
X"00",X"5E",X"06", -- #19 : 04B-04D
|
||||
X"00",X"64",X"01", -- #1A : 04E-050
|
||||
X"00",X"65",X"03", -- #1B : 051-053
|
||||
X"00",X"68",X"02", -- #1C : 054-056
|
||||
X"00",X"6A",X"01", -- #1D : 057-059
|
||||
X"00",X"6B",X"01", -- #1E : 05A-05C
|
||||
X"00",X"6C",X"03", -- #1F : 05D-05F
|
||||
X"00",X"6F",X"05", -- #20 : 060-062
|
||||
X"00",X"74",X"03", -- #21 : 063-065
|
||||
X"00",X"77",X"03", -- #22 : 066-068
|
||||
X"00",X"7A",X"03", -- #23 : 069-06B
|
||||
X"00",X"7D",X"03", -- #24 : 06C-06E
|
||||
X"00",X"80",X"04", -- #25 : 06F-071
|
||||
X"00",X"84",X"02", -- #26 : 072-074
|
||||
X"00",X"86",X"03", -- #27 : 075-077
|
||||
X"00",X"89",X"01", -- #28 : 078-07A
|
||||
X"00",X"8A",X"03", -- #29 : 07B-07D
|
||||
X"00",X"8D",X"04", -- #2A : 07E-080
|
||||
X"00",X"91",X"03", -- #2B : 081-083
|
||||
X"00",X"94",X"04", -- #2C : 084-086
|
||||
X"00",X"98",X"03", -- #2D : 087-089
|
||||
X"00",X"9B",X"03", -- #2E : 08A-08C
|
||||
X"00",X"9E",X"0D", -- #2F : 08D-08F
|
||||
X"00",X"AB",X"04", -- #30 : 090-092
|
||||
X"00",X"AF",X"04", -- #31 : 093-095
|
||||
X"00",X"B3",X"03", -- #32 : 096-098
|
||||
X"00",X"B6",X"09", -- #33 : 099-09B
|
||||
X"00",X"BF",X"0A", -- #34 : 09C-09E
|
||||
X"00",X"C9",X"06", -- #35 : 09F-0A1
|
||||
X"00",X"CF",X"02", -- #36 : 0A2-0A4
|
||||
X"00",X"D1",X"01", -- #37 : 0A5-0A7
|
||||
X"00",X"D2",X"06", -- #38 : 0A8-0AA
|
||||
X"00",X"D8",X"02", -- #39 : 0AB-0AD
|
||||
X"00",X"DA",X"09", -- #3A : 0AE-0B0
|
||||
X"00",X"E3",X"09", -- #3B : 0B1-0B3
|
||||
X"00",X"EC",X"08", -- #3C : 0B4-0B6
|
||||
X"00",X"F4",X"03", -- #3D : 0B7-0B9
|
||||
X"00",X"F7",X"03", -- #3E : 0BA-0BC
|
||||
X"00",X"FA",X"03", -- #3F : 0BD-0BF
|
||||
-- rpt|amp_msb mp_lsb|per|F0|B0|F1|B1|F2|B2|F3|B3|F4|B4|F5|B5
|
||||
X"01",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #00.0 : 0C0-0CF
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #01.0 : 0D0-0DF
|
||||
X"07",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #02.0 : 0E0-0EF
|
||||
X"0F",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #03.0 : 0F0-0FF
|
||||
X"1F",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #04.0 : 100-10F
|
||||
X"03",X"01",X"40",X"5B",X"A0",X"60",X"B8",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.0 : 110-11F
|
||||
X"03",X"00",X"C0",X"5B",X"A0",X"60",X"B0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.1 : 120-12F
|
||||
X"01",X"00",X"50",X"5B",X"A0",X"60",X"A8",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.2 : 130-13F
|
||||
X"03",X"00",X"80",X"5B",X"A0",X"60",X"B0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.3 : 140-14F
|
||||
X"01",X"00",X"70",X"5B",X"A0",X"60",X"B0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.4 : 150-15F
|
||||
X"04",X"00",X"A0",X"5B",X"A0",X"60",X"B8",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.5 : 160-16F
|
||||
X"02",X"01",X"C0",X"5B",X"A8",X"60",X"C0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.6 : 170-17F
|
||||
X"04",X"02",X"80",X"5B",X"A8",X"60",X"D0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.7 : 180-18F
|
||||
X"02",X"02",X"80",X"5B",X"A8",X"60",X"E0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.8 : 190-19F
|
||||
X"09",X"01",X"00",X"5B",X"A0",X"60",X"E8",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #05.9 : 1A0-1AF
|
||||
X"01",X"03",X"00",X"5B",X"B0",X"70",X"C8",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.0 : 1B0-1BF
|
||||
X"01",X"02",X"80",X"5B",X"C8",X"70",X"B0",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.1 : 1C0-1CF
|
||||
X"02",X"03",X"00",X"5B",X"C8",X"70",X"B0",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.2 : 1D0-1DF
|
||||
X"02",X"02",X"80",X"5B",X"B0",X"70",X"C8",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.3 : 1E0-1EF
|
||||
X"02",X"02",X"00",X"5B",X"C8",X"70",X"F8",X"70",X"B8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.4 : 1F0-1FF
|
||||
X"02",X"02",X"80",X"5B",X"B0",X"70",X"D0",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.5 : 200-20F
|
||||
X"03",X"03",X"80",X"5B",X"B0",X"70",X"F8",X"70",X"E0",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.6 : 210-21F
|
||||
X"01",X"03",X"00",X"5B",X"A8",X"70",X"E0",X"70",X"F8",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.7 : 220-22F
|
||||
X"03",X"02",X"80",X"5B",X"A0",X"70",X"E8",X"70",X"00",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.8 : 230-23F
|
||||
X"02",X"01",X"00",X"5B",X"A0",X"70",X"F0",X"70",X"00",X"60",X"18",X"50",X"3C",X"44",X"00",X"00", -- #06.9 : 240-24F
|
||||
X"06",X"06",X"00",X"5B",X"00",X"50",X"28",X"50",X"40",X"50",X"F8",X"10",X"E8",X"58",X"AA",X"64", -- #07.0 : 250-25F
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #08.0 : 260-26F
|
||||
X"03",X"00",X"28",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"38",X"40",X"FC",X"04",X"CB",X"68", -- #08.1 : 270-27F
|
||||
X"05",X"00",X"20",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"18",X"20",X"40",X"C5",X"62", -- #08.2 : 280-28F
|
||||
X"0D",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #09.0 : 290-29F
|
||||
X"04",X"00",X"14",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"40",X"F4",X"2C",X"BF",X"3B", -- #09.1 : 2A0-2AF
|
||||
X"06",X"00",X"20",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"50",X"F8",X"44",X"CF",X"3A", -- #09.2 : 2B0-2BF
|
||||
X"04",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"20",X"18",X"42",X"FA",X"30", -- #0A.0 : 2C0-2CF
|
||||
X"04",X"01",X"C0",X"5B",X"18",X"60",X"30",X"50",X"38",X"20",X"00",X"10",X"00",X"60",X"E6",X"38", -- #0A.1 : 2D0-2DF
|
||||
X"04",X"01",X"40",X"5B",X"18",X"50",X"28",X"40",X"40",X"30",X"FC",X"68",X"E8",X"52",X"DD",X"16", -- #0A.2 : 2E0-2EF
|
||||
X"07",X"00",X"38",X"5B",X"00",X"30",X"18",X"20",X"38",X"40",X"FC",X"60",X"E0",X"2A",X"A1",X"54", -- #0B.0 : 2F0-2FF
|
||||
X"03",X"00",X"50",X"5B",X"08",X"30",X"20",X"30",X"20",X"10",X"FC",X"68",X"E8",X"1C",X"A2",X"50", -- #0B.1 : 300-30F
|
||||
X"09",X"00",X"60",X"5B",X"08",X"30",X"20",X"40",X"20",X"10",X"FC",X"68",X"E0",X"24",X"9B",X"5B", -- #0B.2 : 310-31F
|
||||
X"05",X"06",X"00",X"5B",X"00",X"50",X"10",X"20",X"30",X"50",X"E8",X"60",X"34",X"1E",X"A0",X"6E", -- #0C.0 : 320-32F
|
||||
X"05",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #0D.0 : 330-33F
|
||||
X"03",X"00",X"A0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"34",X"28",X"1C",X"4E",X"F4",X"21", -- #0D.1 : 340-34F
|
||||
X"04",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"30",X"20",X"1C",X"44",X"EA",X"53", -- #0D.2 : 350-35F
|
||||
X"03",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"18",X"1C",X"46",X"E7",X"5A", -- #0D.3 : 360-36F
|
||||
X"05",X"00",X"1C",X"5B",X"98",X"60",X"C0",X"60",X"E0",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.0 : 370-37F
|
||||
X"03",X"00",X"50",X"5B",X"98",X"60",X"C0",X"60",X"E8",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.1 : 380-38F
|
||||
X"01",X"00",X"C0",X"5B",X"98",X"60",X"C0",X"60",X"E8",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.2 : 390-39F
|
||||
X"02",X"02",X"80",X"5B",X"A0",X"60",X"C0",X"60",X"F0",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.3 : 3A0-3AF
|
||||
X"01",X"01",X"C0",X"5B",X"A0",X"60",X"B8",X"60",X"F0",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.4 : 3B0-3BF
|
||||
X"02",X"02",X"00",X"5B",X"A0",X"60",X"B8",X"60",X"F0",X"50",X"0C",X"40",X"20",X"3C",X"32",X"2B", -- #0E.5 : 3C0-3CF
|
||||
X"06",X"06",X"00",X"5B",X"F0",X"50",X"18",X"20",X"28",X"60",X"D0",X"60",X"28",X"18",X"A8",X"61", -- #0F.0 : 3D0-3DF
|
||||
X"06",X"00",X"A0",X"5B",X"F0",X"50",X"C0",X"30",X"E0",X"20",X"00",X"10",X"20",X"44",X"00",X"00", -- #10.0 : 3E0-3EF
|
||||
X"05",X"00",X"C0",X"5B",X"F0",X"50",X"C0",X"30",X"E0",X"20",X"00",X"10",X"20",X"44",X"00",X"00", -- #10.1 : 3F0-3FF
|
||||
X"05",X"00",X"E0",X"5B",X"F0",X"50",X"E0",X"30",X"C8",X"20",X"00",X"10",X"20",X"44",X"00",X"00", -- #10.2 : 400-40F
|
||||
X"04",X"01",X"40",X"5B",X"F0",X"50",X"E0",X"30",X"C8",X"20",X"00",X"10",X"20",X"44",X"00",X"00", -- #10.3 : 410-41F
|
||||
X"06",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #11.0 : 420-42F
|
||||
X"01",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"48",X"10",X"40",X"DF",X"3F", -- #11.1 : 430-43F
|
||||
X"05",X"00",X"28",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"18",X"28",X"40",X"E8",X"3F", -- #11.2 : 440-44F
|
||||
X"0C",X"00",X"A0",X"5B",X"08",X"30",X"18",X"30",X"38",X"40",X"EC",X"30",X"D4",X"2E",X"CB",X"20", -- #12.0 : 450-45F
|
||||
X"03",X"02",X"80",X"5B",X"00",X"60",X"18",X"50",X"38",X"50",X"F4",X"08",X"DC",X"5E",X"A1",X"5C", -- #12.1 : 460-46F
|
||||
X"03",X"06",X"00",X"5B",X"08",X"00",X"28",X"40",X"38",X"40",X"04",X"60",X"F0",X"66",X"A1",X"5A", -- #13.0 : 470-47F
|
||||
X"03",X"06",X"00",X"5B",X"28",X"40",X"38",X"40",X"08",X"00",X"04",X"50",X"F4",X"62",X"A4",X"57", -- #13.1 : 480-48F
|
||||
X"02",X"06",X"00",X"5B",X"08",X"10",X"28",X"50",X"38",X"40",X"04",X"48",X"F4",X"64",X"9A",X"62", -- #13.2 : 490-49F
|
||||
X"03",X"06",X"00",X"5B",X"08",X"20",X"28",X"50",X"38",X"40",X"04",X"38",X"F8",X"60",X"96",X"66", -- #13.3 : 4A0-4AF
|
||||
X"04",X"04",X"00",X"5B",X"08",X"30",X"28",X"50",X"38",X"50",X"FC",X"20",X"F8",X"62",X"92",X"6E", -- #13.4 : 4B0-4BF
|
||||
X"04",X"01",X"40",X"5B",X"08",X"40",X"28",X"40",X"38",X"40",X"F8",X"60",X"F4",X"0C",X"90",X"71", -- #13.5 : 4C0-4CF
|
||||
X"03",X"03",X"00",X"5B",X"A0",X"70",X"E8",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.0 : 4D0-4DF
|
||||
X"01",X"03",X"00",X"5B",X"A0",X"70",X"F0",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.1 : 4E0-4EF
|
||||
X"03",X"02",X"80",X"5B",X"A0",X"70",X"F0",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.2 : 4F0-4FF
|
||||
X"01",X"01",X"C0",X"5B",X"98",X"70",X"F8",X"60",X"F8",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.3 : 500-50F
|
||||
X"05",X"01",X"C0",X"5B",X"98",X"70",X"F8",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.4 : 510-51F
|
||||
X"01",X"01",X"C0",X"5B",X"98",X"70",X"F8",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.5 : 520-52F
|
||||
X"06",X"00",X"A0",X"5B",X"90",X"70",X"F8",X"60",X"00",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.6 : 530-53F
|
||||
X"02",X"00",X"70",X"5B",X"90",X"70",X"F8",X"60",X"F8",X"20",X"04",X"30",X"28",X"52",X"00",X"00", -- #14.7 : 540-54F
|
||||
X"03",X"02",X"80",X"5B",X"90",X"70",X"E0",X"70",X"00",X"60",X"10",X"10",X"1C",X"56",X"3A",X"49", -- #15.0 : 550-55F
|
||||
X"02",X"02",X"00",X"5B",X"98",X"70",X"E0",X"70",X"00",X"60",X"10",X"10",X"1C",X"56",X"3A",X"49", -- #15.1 : 560-56F
|
||||
X"03",X"05",X"00",X"5B",X"98",X"60",X"F0",X"60",X"D8",X"60",X"1C",X"58",X"24",X"4E",X"39",X"2C", -- #16.0 : 570-57F
|
||||
X"02",X"05",X"00",X"5B",X"D0",X"60",X"F0",X"60",X"A0",X"60",X"1C",X"58",X"24",X"4E",X"39",X"2C", -- #16.1 : 580-58F
|
||||
X"02",X"04",X"00",X"5B",X"F0",X"60",X"C8",X"60",X"A0",X"60",X"1C",X"58",X"24",X"4E",X"39",X"2C", -- #16.2 : 590-59F
|
||||
X"08",X"04",X"00",X"5B",X"20",X"50",X"18",X"20",X"40",X"30",X"F8",X"60",X"C0",X"60",X"B2",X"5A", -- #17.0 : 5A0-5AF
|
||||
X"03",X"05",X"00",X"5B",X"C8",X"60",X"B8",X"60",X"F8",X"60",X"14",X"28",X"1C",X"36",X"44",X"41", -- #18.0 : 5B0-5BF
|
||||
X"02",X"05",X"00",X"5B",X"C8",X"60",X"B8",X"60",X"F8",X"60",X"14",X"28",X"1C",X"36",X"44",X"41", -- #18.1 : 5C0-5CF
|
||||
X"02",X"05",X"00",X"5B",X"B8",X"60",X"C8",X"60",X"F8",X"60",X"14",X"28",X"1C",X"36",X"44",X"41", -- #18.2 : 5D0-5DF
|
||||
X"03",X"01",X"C0",X"5B",X"10",X"50",X"28",X"40",X"30",X"30",X"08",X"30",X"F0",X"64",X"8E",X"70", -- #19.0 : 5E0-5EF
|
||||
X"02",X"01",X"80",X"5B",X"10",X"50",X"28",X"50",X"38",X"30",X"04",X"28",X"F4",X"5E",X"8C",X"76", -- #19.1 : 5F0-5FF
|
||||
X"04",X"02",X"80",X"5B",X"08",X"30",X"28",X"40",X"30",X"20",X"08",X"40",X"F4",X"5C",X"90",X"70", -- #19.2 : 600-60F
|
||||
X"01",X"04",X"00",X"5B",X"10",X"30",X"20",X"50",X"38",X"40",X"00",X"38",X"F0",X"5A",X"95",X"69", -- #19.3 : 610-61F
|
||||
X"03",X"07",X"00",X"5B",X"20",X"40",X"28",X"40",X"18",X"10",X"00",X"48",X"F0",X"60",X"98",X"69", -- #19.4 : 620-62F
|
||||
X"01",X"06",X"00",X"5B",X"18",X"30",X"28",X"40",X"20",X"10",X"00",X"48",X"F0",X"5E",X"9C",X"68", -- #19.5 : 630-63F
|
||||
X"09",X"03",X"00",X"5B",X"F8",X"40",X"20",X"50",X"30",X"50",X"F0",X"20",X"DC",X"4C",X"AE",X"66", -- #1A.0 : 640-64F
|
||||
X"06",X"00",X"1C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"28",X"08",X"4E",X"EB",X"0C", -- #1B.0 : 650-65F
|
||||
X"06",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"34",X"38",X"0C",X"3E",X"F1",X"1A", -- #1B.1 : 660-66F
|
||||
X"02",X"00",X"14",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"30",X"E8",X"F2",X"03",X"3F", -- #1B.2 : 670-67F
|
||||
X"03",X"00",X"04",X"5B",X"F8",X"30",X"18",X"40",X"40",X"30",X"E4",X"20",X"18",X"04",X"88",X"76", -- #1C.0 : 680-68F
|
||||
X"01",X"03",X"00",X"5B",X"20",X"50",X"18",X"10",X"30",X"40",X"F8",X"78",X"E0",X"74",X"98",X"6C", -- #1C.1 : 690-69F
|
||||
X"14",X"00",X"28",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"30",X"30",X"10",X"24",X"E5",X"3B", -- #1D.0 : 6A0-6AF
|
||||
X"08",X"02",X"80",X"5B",X"F8",X"70",X"20",X"50",X"28",X"50",X"C0",X"68",X"18",X"06",X"A4",X"5E", -- #1E.0 : 6B0-6BF
|
||||
X"08",X"02",X"80",X"5B",X"F0",X"60",X"18",X"60",X"20",X"40",X"D8",X"60",X"20",X"0C",X"9D",X"61", -- #1F.0 : 6C0-6CF
|
||||
X"04",X"03",X"00",X"5B",X"18",X"50",X"20",X"50",X"38",X"30",X"F0",X"60",X"D0",X"66",X"A6",X"53", -- #1F.1 : 6D0-6DF
|
||||
X"07",X"02",X"00",X"5B",X"18",X"60",X"28",X"50",X"40",X"40",X"F0",X"60",X"C8",X"62",X"9D",X"61", -- #1F.2 : 6E0-6EF
|
||||
X"08",X"01",X"C0",X"5B",X"B8",X"60",X"D0",X"60",X"F8",X"50",X"0C",X"20",X"20",X"44",X"00",X"00", -- #20.0 : 6F0-6FF
|
||||
X"05",X"01",X"00",X"5B",X"B0",X"60",X"C8",X"60",X"F8",X"50",X"0C",X"20",X"20",X"44",X"00",X"00", -- #20.1 : 700-70F
|
||||
X"04",X"00",X"A0",X"5B",X"B0",X"60",X"C0",X"60",X"F8",X"50",X"0C",X"20",X"20",X"44",X"00",X"00", -- #20.2 : 710-71F
|
||||
X"04",X"00",X"80",X"5B",X"A8",X"60",X"C0",X"60",X"00",X"50",X"0C",X"20",X"20",X"44",X"00",X"00", -- #20.3 : 720-72F
|
||||
X"07",X"00",X"28",X"5B",X"A0",X"60",X"B8",X"60",X"00",X"50",X"0C",X"20",X"20",X"44",X"00",X"00", -- #20.4 : 730-73F
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #21.0 : 740-74F
|
||||
X"03",X"00",X"38",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"20",X"14",X"32",X"E7",X"23", -- #21.1 : 750-75F
|
||||
X"03",X"06",X"00",X"5B",X"18",X"50",X"20",X"50",X"40",X"30",X"F8",X"60",X"E4",X"72",X"9D",X"5D", -- #21.2 : 760-76F
|
||||
X"08",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #22.0 : 770-77F
|
||||
X"05",X"00",X"38",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"30",X"48",X"F4",X"42",X"EA",X"2A", -- #22.1 : 780-78F
|
||||
X"03",X"01",X"40",X"5B",X"20",X"30",X"30",X"50",X"18",X"10",X"F8",X"68",X"E8",X"58",X"9C",X"68", -- #22.2 : 790-79F
|
||||
X"06",X"00",X"20",X"5B",X"08",X"30",X"28",X"50",X"50",X"40",X"F0",X"48",X"C8",X"68",X"A8",X"47", -- #23.0 : 7A0-7AF
|
||||
X"06",X"00",X"E0",X"5B",X"10",X"40",X"28",X"40",X"50",X"50",X"F0",X"40",X"D0",X"1A",X"DE",X"3A", -- #23.1 : 7B0-7BF
|
||||
X"02",X"01",X"40",X"5B",X"F0",X"60",X"18",X"40",X"20",X"40",X"D0",X"68",X"2C",X"18",X"C7",X"25", -- #23.2 : 7C0-7CF
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #24.0 : 7D0-7DF
|
||||
X"03",X"00",X"20",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"14",X"30",X"FC",X"F0",X"FB",X"41", -- #24.1 : 7E0-7EF
|
||||
X"03",X"03",X"80",X"5B",X"10",X"40",X"20",X"60",X"38",X"30",X"F8",X"30",X"F4",X"5E",X"A1",X"5C", -- #24.2 : 7F0-7FF
|
||||
X"06",X"00",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"1C",X"50",X"0C",X"0E",X"FB",X"5C", -- #25.0 : 800-80F
|
||||
X"03",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"18",X"18",X"42",X"FA",X"56", -- #25.1 : 810-81F
|
||||
X"12",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"18",X"18",X"4A",X"FC",X"5B", -- #25.2 : 820-82F
|
||||
X"04",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"18",X"10",X"2E",X"F8",X"4C", -- #25.3 : 830-83F
|
||||
X"07",X"01",X"40",X"5B",X"C0",X"30",X"E0",X"40",X"F8",X"60",X"14",X"58",X"24",X"48",X"00",X"00", -- #26.0 : 840-84F
|
||||
X"0B",X"00",X"80",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"42",X"FE",X"3F", -- #26.1 : 850-85F
|
||||
X"02",X"00",X"38",X"5B",X"08",X"40",X"20",X"30",X"38",X"30",X"DC",X"48",X"BC",X"58",X"A4",X"54", -- #27.0 : 860-86F
|
||||
X"03",X"00",X"60",X"5B",X"D0",X"60",X"10",X"70",X"20",X"30",X"BC",X"60",X"1C",X"08",X"A1",X"5D", -- #27.1 : 870-87F
|
||||
X"04",X"00",X"A0",X"5B",X"D0",X"50",X"10",X"60",X"18",X"50",X"BC",X"60",X"20",X"0E",X"A3",X"5C", -- #27.2 : 880-88F
|
||||
X"11",X"00",X"38",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"38",X"04",X"28",X"E3",X"27", -- #28.0 : 890-89F
|
||||
X"12",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #29.0 : 8A0-8AF
|
||||
X"01",X"00",X"38",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"34",X"30",X"04",X"12",X"DE",X"56", -- #29.1 : 8B0-8BF
|
||||
X"02",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"2C",X"28",X"F4",X"1E",X"DC",X"49", -- #29.2 : 8C0-8CF
|
||||
X"07",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #2A.0 : 8D0-8DF
|
||||
X"01",X"00",X"A0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"30",X"38",X"0C",X"62",X"E2",X"37", -- #2A.1 : 8E0-8EF
|
||||
X"01",X"00",X"1C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"2C",X"20",X"10",X"36",X"F9",X"44", -- #2A.2 : 8F0-8FF
|
||||
X"09",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"2C",X"28",X"0C",X"44",X"E7",X"1B", -- #2A.3 : 900-90F
|
||||
X"06",X"04",X"00",X"5B",X"20",X"50",X"40",X"60",X"58",X"50",X"00",X"58",X"DC",X"54",X"A7",X"4D", -- #2B.0 : 910-91F
|
||||
X"09",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"58",X"EC",X"00",X"21",X"30", -- #2B.1 : 920-92F
|
||||
X"04",X"05",X"00",X"5B",X"20",X"50",X"40",X"50",X"48",X"40",X"00",X"40",X"DC",X"60",X"B9",X"37", -- #2B.2 : 930-93F
|
||||
X"05",X"03",X"80",X"5B",X"D8",X"40",X"B8",X"40",X"F8",X"40",X"04",X"58",X"2C",X"3C",X"55",X"5A", -- #2C.0 : 940-94F
|
||||
X"03",X"02",X"00",X"5B",X"F0",X"40",X"B0",X"40",X"D8",X"40",X"04",X"58",X"2C",X"3C",X"55",X"5A", -- #2C.1 : 950-95F
|
||||
X"06",X"01",X"C0",X"5B",X"B0",X"40",X"F0",X"40",X"D8",X"40",X"04",X"58",X"2C",X"3C",X"55",X"5A", -- #2C.2 : 960-96F
|
||||
X"08",X"01",X"40",X"5B",X"F0",X"40",X"B0",X"40",X"D0",X"40",X"04",X"58",X"2C",X"3C",X"55",X"5A", -- #2C.3 : 970-97F
|
||||
X"03",X"00",X"C0",X"5B",X"98",X"60",X"C8",X"60",X"08",X"40",X"18",X"30",X"28",X"44",X"2E",X"25", -- #2D.0 : 980-98F
|
||||
X"03",X"02",X"80",X"5B",X"A0",X"60",X"C8",X"60",X"08",X"40",X"18",X"30",X"28",X"44",X"2E",X"25", -- #2D.1 : 990-99F
|
||||
X"03",X"02",X"00",X"5B",X"A0",X"60",X"C0",X"60",X"00",X"40",X"18",X"30",X"28",X"44",X"2E",X"25", -- #2D.2 : 9A0-9AF
|
||||
X"05",X"00",X"28",X"5B",X"F8",X"20",X"18",X"40",X"28",X"30",X"C0",X"38",X"10",X"F8",X"A0",X"5A", -- #2E.0 : 9B0-9BF
|
||||
X"05",X"00",X"38",X"5B",X"08",X"30",X"20",X"60",X"38",X"40",X"FC",X"08",X"B0",X"50",X"9E",X"5F", -- #2E.1 : 9C0-9CF
|
||||
X"06",X"00",X"50",X"5B",X"00",X"50",X"18",X"60",X"20",X"50",X"A8",X"70",X"14",X"02",X"93",X"72", -- #2E.2 : 9D0-9DF
|
||||
X"03",X"02",X"80",X"5B",X"A0",X"60",X"E8",X"60",X"F8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.0 : 9E0-9EF
|
||||
X"02",X"02",X"80",X"5B",X"A0",X"60",X"E8",X"60",X"F8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.1 : 9F0-9FF
|
||||
X"02",X"01",X"C0",X"5B",X"A0",X"60",X"E8",X"60",X"F0",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.2 : A00-A0F
|
||||
X"02",X"02",X"80",X"5B",X"A0",X"60",X"E0",X"60",X"F0",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.3 : A10-A1F
|
||||
X"02",X"03",X"00",X"5B",X"A8",X"60",X"E0",X"60",X"F0",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.4 : A20-A2F
|
||||
X"02",X"02",X"80",X"5B",X"A8",X"60",X"D8",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.5 : A30-A3F
|
||||
X"03",X"02",X"00",X"5B",X"A8",X"60",X"D8",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.6 : A40-A4F
|
||||
X"01",X"01",X"C0",X"5B",X"A8",X"60",X"D8",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.7 : A50-A5F
|
||||
X"03",X"00",X"E0",X"5B",X"A8",X"60",X"D0",X"60",X"E0",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.8 : A60-A6F
|
||||
X"01",X"00",X"80",X"5B",X"A0",X"60",X"D0",X"60",X"E0",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.9 : A70-A7F
|
||||
X"02",X"00",X"C0",X"5B",X"A8",X"60",X"D0",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.A : A80-A8F
|
||||
X"01",X"00",X"70",X"5B",X"A8",X"60",X"D0",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.B : A90-A9F
|
||||
X"03",X"00",X"50",X"5B",X"A8",X"60",X"D8",X"60",X"E8",X"60",X"00",X"10",X"1C",X"52",X"42",X"59", -- #2F.C : AA0-AAF
|
||||
X"06",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"20",X"FC",X"1C",X"D2",X"28", -- #30.0 : AB0-ABF
|
||||
X"0B",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"24",X"38",X"04",X"18",X"B4",X"55", -- #30.1 : AC0-ACF
|
||||
X"02",X"00",X"C0",X"5B",X"F8",X"40",X"30",X"70",X"20",X"20",X"C4",X"38",X"10",X"FC",X"A3",X"5D", -- #30.2 : AD0-ADF
|
||||
X"02",X"01",X"40",X"5B",X"F8",X"60",X"28",X"50",X"28",X"50",X"B0",X"68",X"1C",X"06",X"A3",X"58", -- #30.3 : AE0-AEF
|
||||
X"03",X"01",X"C0",X"5B",X"10",X"50",X"28",X"40",X"30",X"30",X"08",X"30",X"F0",X"64",X"8E",X"70", -- #31.0 : AF0-AFF
|
||||
X"02",X"01",X"80",X"5B",X"10",X"50",X"28",X"50",X"38",X"30",X"04",X"28",X"F4",X"5E",X"8C",X"76", -- #31.1 : B00-B0F
|
||||
X"04",X"02",X"80",X"5B",X"08",X"30",X"28",X"40",X"30",X"20",X"08",X"40",X"F4",X"5C",X"90",X"70", -- #31.2 : B10-B1F
|
||||
X"01",X"04",X"00",X"5B",X"10",X"30",X"20",X"50",X"38",X"40",X"00",X"38",X"F0",X"5A",X"95",X"69", -- #31.3 : B20-B2F
|
||||
X"05",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #32.0 : B30-B3F
|
||||
X"05",X"00",X"14",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"28",X"40",X"08",X"4E",X"E4",X"19", -- #32.1 : B40-B4F
|
||||
X"0D",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"34",X"50",X"10",X"66",X"F6",X"49", -- #32.2 : B50-B5F
|
||||
X"01",X"02",X"80",X"5B",X"18",X"40",X"20",X"40",X"30",X"20",X"E4",X"60",X"CC",X"68",X"A5",X"5F", -- #33.0 : B60-B6F
|
||||
X"02",X"02",X"80",X"5B",X"18",X"40",X"20",X"40",X"28",X"10",X"E4",X"58",X"D0",X"60",X"A5",X"5F", -- #33.1 : B70-B7F
|
||||
X"01",X"02",X"80",X"5B",X"E0",X"60",X"18",X"40",X"20",X"40",X"D0",X"60",X"24",X"12",X"A8",X"5B", -- #33.2 : B80-B8F
|
||||
X"01",X"02",X"00",X"5B",X"E0",X"60",X"18",X"50",X"28",X"40",X"D0",X"60",X"20",X"0A",X"A3",X"63", -- #33.3 : B90-B9F
|
||||
X"01",X"01",X"C0",X"5B",X"E0",X"60",X"18",X"60",X"28",X"40",X"D0",X"68",X"20",X"0A",X"A5",X"61", -- #33.4 : BA0-BAF
|
||||
X"02",X"02",X"00",X"5B",X"E0",X"60",X"18",X"50",X"28",X"40",X"D0",X"60",X"24",X"12",X"A2",X"69", -- #33.5 : BB0-BBF
|
||||
X"01",X"01",X"40",X"5B",X"E0",X"60",X"18",X"60",X"28",X"40",X"D4",X"68",X"1C",X"0A",X"A0",X"6E", -- #33.6 : BC0-BCF
|
||||
X"02",X"00",X"E0",X"5B",X"18",X"60",X"20",X"20",X"20",X"10",X"E0",X"60",X"D4",X"68",X"A0",X"6E", -- #33.7 : BD0-BDF
|
||||
X"01",X"01",X"00",X"5B",X"18",X"60",X"18",X"20",X"30",X"20",X"E4",X"60",X"D4",X"6A",X"A3",X"63", -- #33.8 : BE0-BEF
|
||||
X"02",X"02",X"80",X"5B",X"18",X"40",X"20",X"40",X"30",X"20",X"E4",X"60",X"CC",X"68",X"A5",X"5F", -- #34.0 : BF0-BFF
|
||||
X"02",X"02",X"80",X"5B",X"18",X"40",X"20",X"40",X"28",X"10",X"E4",X"58",X"D0",X"60",X"A5",X"5F", -- #34.1 : C00-C0F
|
||||
X"02",X"02",X"00",X"5B",X"E0",X"60",X"18",X"40",X"28",X"40",X"D0",X"60",X"24",X"10",X"A9",X"59", -- #34.2 : C10-C1F
|
||||
X"02",X"02",X"00",X"5B",X"E0",X"60",X"18",X"40",X"20",X"40",X"D0",X"60",X"24",X"12",X"A8",X"5B", -- #34.3 : C20-C2F
|
||||
X"02",X"01",X"C0",X"5B",X"E0",X"60",X"18",X"50",X"28",X"40",X"D0",X"60",X"20",X"0A",X"A3",X"63", -- #34.4 : C30-C3F
|
||||
X"02",X"01",X"C0",X"5B",X"E0",X"60",X"18",X"60",X"28",X"40",X"D0",X"68",X"20",X"0A",X"A5",X"61", -- #34.5 : C40-C4F
|
||||
X"02",X"01",X"C0",X"5B",X"E0",X"60",X"18",X"50",X"28",X"40",X"D0",X"60",X"24",X"12",X"A2",X"69", -- #34.6 : C50-C5F
|
||||
X"03",X"01",X"40",X"5B",X"E0",X"60",X"18",X"60",X"28",X"40",X"D4",X"68",X"1C",X"0A",X"A0",X"6E", -- #34.7 : C60-C6F
|
||||
X"03",X"00",X"C0",X"5B",X"18",X"60",X"20",X"20",X"20",X"10",X"E0",X"60",X"D4",X"68",X"A0",X"6E", -- #34.8 : C70-C7F
|
||||
X"03",X"00",X"E0",X"5B",X"18",X"60",X"18",X"20",X"30",X"20",X"E4",X"60",X"D4",X"6A",X"A3",X"63", -- #34.9 : C80-C8F
|
||||
X"03",X"02",X"80",X"5B",X"A8",X"60",X"C0",X"60",X"F8",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.0 : C90-C9F
|
||||
X"03",X"02",X"00",X"5B",X"A8",X"60",X"C0",X"60",X"00",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.1 : CA0-CAF
|
||||
X"01",X"01",X"C0",X"5B",X"A8",X"60",X"C0",X"60",X"00",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.2 : CB0-CBF
|
||||
X"05",X"00",X"C0",X"5B",X"A0",X"60",X"B8",X"60",X"00",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.3 : CC0-CCF
|
||||
X"01",X"00",X"C0",X"5B",X"A0",X"60",X"B8",X"60",X"00",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.4 : CD0-CDF
|
||||
X"06",X"00",X"70",X"5B",X"A0",X"60",X"B8",X"60",X"00",X"60",X"40",X"60",X"24",X"60",X"00",X"00", -- #35.5 : CE0-CEF
|
||||
X"11",X"00",X"A0",X"5B",X"08",X"30",X"18",X"30",X"38",X"40",X"EC",X"30",X"D4",X"2E",X"CB",X"20", -- #36.0 : CF0-CFF
|
||||
X"03",X"02",X"80",X"5B",X"00",X"60",X"18",X"50",X"38",X"50",X"F4",X"08",X"DC",X"5E",X"A1",X"5C", -- #36.1 : D00-D0F
|
||||
X"0A",X"00",X"70",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"48",X"40",X"20",X"38",X"E3",X"29", -- #37.0 : D10-D1F
|
||||
X"04",X"00",X"A0",X"5B",X"00",X"30",X"18",X"20",X"38",X"40",X"FC",X"60",X"E0",X"2A",X"A1",X"54", -- #38.0 : D20-D2F
|
||||
X"02",X"00",X"C0",X"5B",X"08",X"30",X"20",X"30",X"20",X"10",X"FC",X"68",X"E8",X"1C",X"A2",X"50", -- #38.1 : D30-D3F
|
||||
X"02",X"00",X"C0",X"5B",X"08",X"30",X"20",X"40",X"20",X"10",X"FC",X"68",X"E0",X"24",X"9B",X"5B", -- #38.2 : D40-D4F
|
||||
X"03",X"06",X"00",X"5B",X"10",X"40",X"18",X"40",X"30",X"30",X"F8",X"68",X"DC",X"62",X"A8",X"50", -- #38.3 : D50-D5F
|
||||
X"01",X"06",X"00",X"5B",X"10",X"20",X"18",X"40",X"30",X"40",X"F8",X"68",X"D4",X"6E",X"AC",X"55", -- #38.4 : D60-D6F
|
||||
X"03",X"06",X"00",X"5B",X"20",X"50",X"18",X"10",X"30",X"40",X"F8",X"70",X"D0",X"6A",X"AC",X"58", -- #38.5 : D70-D7F
|
||||
X"0E",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"30",X"00",X"1E",X"C1",X"48", -- #39.0 : D80-D8F
|
||||
X"04",X"00",X"C0",X"5B",X"00",X"40",X"20",X"60",X"38",X"50",X"E8",X"18",X"E0",X"0A",X"C2",X"49", -- #39.1 : D90-D9F
|
||||
X"02",X"00",X"60",X"5B",X"A0",X"60",X"A8",X"60",X"F8",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.0 : DA0-DAF
|
||||
X"01",X"00",X"40",X"5B",X"A0",X"60",X"A8",X"60",X"F0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.1 : DB0-DBF
|
||||
X"03",X"00",X"50",X"5B",X"A0",X"60",X"A8",X"60",X"F0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.2 : DC0-DCF
|
||||
X"03",X"00",X"E0",X"5B",X"A0",X"60",X"B0",X"60",X"F0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.3 : DD0-DDF
|
||||
X"05",X"01",X"40",X"5B",X"A0",X"60",X"C0",X"60",X"E8",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.4 : DE0-DEF
|
||||
X"04",X"01",X"C0",X"5B",X"A8",X"60",X"C8",X"60",X"E0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.5 : DF0-DFF
|
||||
X"04",X"01",X"C0",X"5B",X"A8",X"60",X"D0",X"60",X"E0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.6 : E00-E0F
|
||||
X"01",X"00",X"E0",X"5B",X"A0",X"60",X"D0",X"60",X"E0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.7 : E10-E1F
|
||||
X"03",X"00",X"60",X"5B",X"A0",X"60",X"D0",X"60",X"E0",X"60",X"10",X"20",X"20",X"60",X"37",X"57", -- #3A.8 : E20-E2F
|
||||
X"02",X"01",X"00",X"5B",X"18",X"60",X"28",X"40",X"10",X"00",X"F0",X"48",X"BC",X"64",X"AC",X"59", -- #3B.0 : E30-E3F
|
||||
X"02",X"01",X"40",X"5B",X"10",X"60",X"20",X"40",X"18",X"10",X"F0",X"48",X"BC",X"62",X"AF",X"56", -- #3B.1 : E40-E4F
|
||||
X"02",X"01",X"80",X"5B",X"10",X"50",X"20",X"30",X"20",X"10",X"EC",X"48",X"C0",X"5E",X"B0",X"56", -- #3B.2 : E50-E5F
|
||||
X"02",X"01",X"40",X"5B",X"F0",X"50",X"10",X"60",X"20",X"50",X"C0",X"60",X"10",X"02",X"B6",X"51", -- #3B.3 : E60-E6F
|
||||
X"02",X"01",X"40",X"5B",X"E8",X"60",X"18",X"60",X"28",X"50",X"C4",X"60",X"04",X"00",X"B8",X"4A", -- #3B.4 : E70-E7F
|
||||
X"03",X"01",X"40",X"5B",X"18",X"60",X"10",X"00",X"20",X"30",X"E8",X"58",X"C8",X"62",X"B5",X"54", -- #3B.5 : E80-E8F
|
||||
X"03",X"00",X"E0",X"5B",X"00",X"00",X"18",X"60",X"30",X"50",X"E4",X"60",X"CC",X"58",X"B5",X"56", -- #3B.6 : E90-E9F
|
||||
X"03",X"00",X"C0",X"5B",X"00",X"00",X"18",X"60",X"28",X"40",X"E4",X"60",X"D0",X"5C",X"B2",X"59", -- #3B.7 : EA0-EAF
|
||||
X"03",X"00",X"80",X"5B",X"E8",X"60",X"10",X"60",X"20",X"20",X"CC",X"60",X"04",X"FC",X"B2",X"55", -- #3B.8 : EB0-EBF
|
||||
X"03",X"03",X"80",X"5B",X"90",X"70",X"F0",X"50",X"00",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.0 : EC0-ECF
|
||||
X"02",X"04",X"00",X"5B",X"90",X"70",X"F8",X"50",X"00",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.1 : ED0-EDF
|
||||
X"03",X"05",X"00",X"5B",X"90",X"70",X"F8",X"50",X"00",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.2 : EE0-EEF
|
||||
X"02",X"02",X"80",X"5B",X"90",X"70",X"F0",X"50",X"00",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.3 : EF0-EFF
|
||||
X"03",X"02",X"80",X"5B",X"98",X"70",X"E8",X"50",X"F8",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.4 : F00-F0F
|
||||
X"04",X"01",X"80",X"5B",X"A0",X"70",X"E0",X"50",X"F0",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.5 : F10-F1F
|
||||
X"05",X"01",X"80",X"5B",X"A0",X"70",X"D8",X"50",X"F0",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.6 : F20-F2F
|
||||
X"05",X"01",X"40",X"5B",X"A0",X"70",X"D8",X"50",X"F0",X"30",X"04",X"18",X"28",X"4E",X"39",X"41", -- #3C.7 : F30-F3F
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #3D.0 : F40-F4F
|
||||
X"04",X"00",X"1C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"38",X"E0",X"40",X"E6",X"1C", -- #3D.1 : F50-F5F
|
||||
X"02",X"01",X"80",X"5B",X"F8",X"40",X"18",X"60",X"38",X"50",X"F8",X"18",X"D8",X"5C",X"A1",X"70", -- #3D.2 : F60-F6F
|
||||
X"05",X"03",X"00",X"5B",X"18",X"40",X"28",X"50",X"20",X"20",X"FC",X"68",X"C4",X"60",X"A3",X"64", -- #3E.0 : F70-F7F
|
||||
X"03",X"01",X"80",X"5B",X"10",X"10",X"28",X"60",X"38",X"40",X"FC",X"60",X"C0",X"62",X"A3",X"60", -- #3E.1 : F80-F8F
|
||||
X"07",X"01",X"00",X"5B",X"28",X"60",X"18",X"10",X"30",X"30",X"00",X"60",X"C0",X"60",X"A0",X"68", -- #3E.2 : F90-F9F
|
||||
X"04",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- #3F.0 : FA0-FAF
|
||||
X"01",X"00",X"18",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"20",X"30",X"FC",X"24",X"DE",X"43", -- #3F.1 : FB0-FBF
|
||||
X"02",X"05",X"00",X"5B",X"20",X"50",X"30",X"40",X"18",X"10",X"F8",X"68",X"E0",X"6E",X"99",X"6C", -- #3F.2 : FC0-FCF
|
||||
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- : FD0-FDF
|
||||
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00", -- : FE0-FEF
|
||||
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00" -- : FF0-FFF
|
||||
);
|
||||
begin
|
||||
process(clk)
|
||||
begin
|
||||
if rising_edge(clk) then
|
||||
data <= rom_data(to_integer(unsigned(addr)));
|
||||
end if;
|
||||
end process;
|
||||
end architecture;
|
||||
File diff suppressed because it is too large.
Load diff
+11
-11
@@ -6,16 +6,16 @@ module cassette(
|
||||
input rewind,
|
||||
input en,
|
||||
|
||||
output reg [24:0] sdram_addr,
|
||||
output reg [15:0] sdram_addr,
|
||||
input [7:0] sdram_data,
|
||||
output reg sdram_rd,
|
||||
// output reg sdram_rd,
|
||||
|
||||
output data,
|
||||
output [2:0] status
|
||||
output data
|
||||
// output [2:0] status
|
||||
|
||||
);
|
||||
|
||||
assign status = state;
|
||||
//assign status = state;
|
||||
|
||||
reg old_en;
|
||||
reg ffrewind;
|
||||
@@ -60,25 +60,25 @@ always @(posedge clk) begin
|
||||
end
|
||||
NEXT: begin
|
||||
state <= READ1;
|
||||
sdram_rd <= 1'b0;
|
||||
// sdram_rd <= 1'b0;
|
||||
if (seq == 24'h553c00) name <= 1'd1;
|
||||
if (seq == 24'h555555 && name) begin
|
||||
name <= 1'd0;
|
||||
state <= WAIT;
|
||||
hold <= 19'd445000; // 0.5s
|
||||
sdram_addr <= sdram_addr - 25'd3;
|
||||
sdram_addr <= sdram_addr - 16'd3;
|
||||
end
|
||||
if (seq == 24'h553cff) eof <= 2'd1;
|
||||
if (seq == 24'h00ff55 && eof == 2'd1) eof <= 2'd2;
|
||||
if (~en) state <= IDLE;
|
||||
end
|
||||
READ1: begin
|
||||
sdram_rd <= 1'b1;
|
||||
// sdram_rd <= 1'b1;
|
||||
state <= READ2;
|
||||
end
|
||||
READ2: begin
|
||||
ibyte <= sdram_data;
|
||||
sdram_rd <= 1'b0;
|
||||
// sdram_rd <= 1'b0;
|
||||
state <= READ3;
|
||||
sq_start <= 1'b1;
|
||||
end
|
||||
@@ -88,14 +88,14 @@ always @(posedge clk) begin
|
||||
end
|
||||
READ4: begin
|
||||
seq <= { seq[15:0], sdram_data };
|
||||
sdram_addr <= sdram_addr + 25'd1;
|
||||
sdram_addr <= sdram_addr + 16'd1;
|
||||
state <= eof == 2'd2 ? IDLE : NEXT;
|
||||
end
|
||||
endcase
|
||||
|
||||
if (ffrewind ^ rewind) begin
|
||||
seq <= 24'd0;
|
||||
sdram_addr <= 25'd0;
|
||||
sdram_addr <= 16'd0;
|
||||
state <= IDLE;
|
||||
eof <= 2'd0;
|
||||
end
|
||||
|
||||
+559
-295
File diff suppressed because it is too large.
Load diff
@@ -67,12 +67,14 @@ module coco_mem_fetch(
|
||||
input HBORDER,
|
||||
input [6:0] HOR_OFFSET,
|
||||
input COCO1,
|
||||
input [3:0] HRES
|
||||
input [3:0] HRES,
|
||||
|
||||
input CT_320_160
|
||||
|
||||
);
|
||||
|
||||
localparam WORD_END_COUNT = 9'd160 - 1'd1;
|
||||
wire [8:0] WORD_END_COUNT;
|
||||
//localparam WORD_END_COUNT = 9'd160 - 1'd1;
|
||||
|
||||
|
||||
wire [24:0] PHY_VID_ADD;
|
||||
@@ -90,6 +92,9 @@ localparam state_wait_accept = 4'd2;
|
||||
|
||||
localparam state_done = 4'd10;
|
||||
|
||||
assign WORD_END_COUNT = (CT_320_160) ? 9'd320 - 1'd1:
|
||||
9'd160 - 1'd1;
|
||||
|
||||
assign BUF_HBORDER[0] = HBORDER;
|
||||
assign a0_delay[0] = init_offset_a0;
|
||||
|
||||
|
||||
@@ -61,23 +61,47 @@
|
||||
// This file is a configuration definition file. The CoCo3FPGA for MiSTer source files
|
||||
// can be built into multiple objects which have mutually exclusive features.
|
||||
|
||||
`include "../RTL/config_inc.v"
|
||||
`define Config_Debug_FLAG 4'hA
|
||||
localparam [7:0] FEATURE_1 = 8'h01;
|
||||
localparam [7:0] FEATURE_2 = 8'h02;
|
||||
localparam [7:0] FEATURE_3 = 8'h04;
|
||||
localparam [7:0] FEATURE_4 = 8'h08;
|
||||
localparam [7:0] FEATURE_5 = 8'h10;
|
||||
localparam [7:0] FEATURE_6 = 8'h20;
|
||||
localparam [7:0] FEATURE_7 = 8'h40;
|
||||
localparam [7:0] FEATURE_8 = 8'h80;
|
||||
|
||||
// If defined the Config_Debug sets the FEATURE MASKS all OR'd together which appears on COCO space at FFF1 & (FFF0 = 0x55 as a debug flag)
|
||||
// This is used for hardware debugging - it overrides the USER_IO to be user_out direct.
|
||||
// It should be commented out for release
|
||||
//`define Config_Debug
|
||||
|
||||
// Feature list - note only FEATURE_1 - FEATURE_8 are supported
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
`set_feature(CoCo3_Horz_INT_FIX, FEATURE_1) // Connection of the horz int to the Mister CoCo3 V5 rasterizer
|
||||
// `set_feature(CoCo3_Horz_INT_FIX,Feat_1) // Connection of the horz int to the Mister CoCo3 V5 rasterizer
|
||||
`define CoCo3_Horz_INT_FIX
|
||||
`define Feat_1
|
||||
|
||||
//`set_feature(CoCo3_Vert_INT_FIX, FEATURE_2) // Connection of the vert int to the Mister CoCo3 V5 rasterizer
|
||||
// `set_feature(CoCo3_Vert_INT_FIX,Feat_2) // Connection of the vert int to the Mister CoCo3 V5 rasterizer
|
||||
// `define CoCo3_Vert_INT_FIX
|
||||
// `define Feat_2
|
||||
|
||||
`set_feature(CoCo3_CYC_ACC_6809, FEATURE_3) // Use cycle accurate 6809
|
||||
// `set_feature(CoCo3_CYC_ACC_6809,Feat_3) // Use cycle accurate 6809
|
||||
`define CoCo3_CYC_ACC_6809
|
||||
`define Feat_3
|
||||
|
||||
`set_feature(CoCo3_sdc_override_size, FEATURE_4) // Define static size value
|
||||
// `set_feature(CoCo3_sdc_override_size,Feat_4) // Define static size value
|
||||
`define CoCo3_sdc_override_size
|
||||
`define Feat_4
|
||||
|
||||
`set_feature(CoCo3_sdc_fix_os9_driver, FEATURE_5) // fix sdc query disk size issue in llcocosdc driver in multipak enviroment
|
||||
// `set_feature(CoCo3_sdc_fix_os9_driver,Feat_5) // fix sdc query disk size issue in llcocosdc driver in multipak enviroment
|
||||
`define CoCo3_sdc_fix_os9_driver
|
||||
`define Feat_5
|
||||
|
||||
`set_feature(CoCo3_disable_GART_in_GIMEX, FEATURE_6)// Disable GIMEX ram transfers [GIMEX detection in OS( EOU]
|
||||
// `set_feature(CoCo3_disable_GART_in_GIMEX,Feat_6) // Disable GIMEX ram transfers [GIMEX detection in OS9 EOU]
|
||||
`define CoCo3_disable_GART_in_GIMEX
|
||||
`define Feat_6
|
||||
|
||||
// `set_feature(CoCo3_Select_GIMEX_RAST,Feat_7) // Use GIMEX Rasterizer Engine
|
||||
// `define CoCo3_Select_GIMEX_RAST
|
||||
// `define Feat_7
|
||||
|
||||
//`set_feature(CoCo3_enable_Music_Speech, FEATURE_7) // Enable Music and Speech cart
|
||||
@@ -1,123 +0,0 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 5.x.x
|
||||
// File Name: config_inc.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 5.x
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// MISTer Conversion by Stan Hodge and Alan Steremberg (& Gary Becker)
|
||||
// [email protected]
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a configuration definition include file. The CoCo3FPGA for MiSTer source files
|
||||
// can be built into multiple objects which have mutually exclusive features.
|
||||
|
||||
`define Config_Debug_Value (`config_num_1 | `config_num_2 | `config_num_3 | `config_num_4 | `config_num_5 | `config_num_6 | `config_num_7 | `config_num_8)
|
||||
`define Config_Debug_FLAG 8'h55
|
||||
`define FEATURE_1 8'h01
|
||||
`define FEATURE_2 8'h02
|
||||
`define FEATURE_3 8'h04
|
||||
`define FEATURE_4 8'h08
|
||||
`define FEATURE_5 8'h10
|
||||
`define FEATURE_6 8'h20
|
||||
`define FEATURE_7 8'h40
|
||||
`define FEATURE_8 8'h80
|
||||
`define config_num_1 8'h00
|
||||
`define config_num_2 8'h00
|
||||
`define config_num_3 8'h00
|
||||
`define config_num_4 8'h00
|
||||
`define config_num_5 8'h00
|
||||
`define config_num_6 8'h00
|
||||
`define config_num_7 8'h00
|
||||
`define config_num_8 8'h00
|
||||
|
||||
`define set_feature(Feat_Name, Feat_Mask) \
|
||||
`define Feat_Name \
|
||||
`ifndef config_value_1 \
|
||||
`define config_value_1 Feat_Mask \
|
||||
`define config_num_1 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_2 \
|
||||
`define config_value_2 Feat_Mask \
|
||||
`define config_num_2 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_3 \
|
||||
`define config_value_3 Feat_Mask \
|
||||
`define config_num_3 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_4 \
|
||||
`define config_value_4 Feat_Mask \
|
||||
`define config_num_4 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_5 \
|
||||
`define config_value_5 Feat_Mask \
|
||||
`define config_num_5 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_6 \
|
||||
`define config_value_6 Feat_Mask \
|
||||
`define config_num_6 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_7 \
|
||||
`define config_value_7 Feat_Mask \
|
||||
`define config_num_7 Feat_Mask \
|
||||
`else \
|
||||
`ifndef config_value_8 \
|
||||
`define config_value_8 Feat_Mask \
|
||||
`define config_num_8 Feat_Mask \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif \
|
||||
`endif
|
||||
+213
-89
@@ -135,6 +135,10 @@ wire [3:0] DRIVE_SEL_EXT_PRE = {DATA_IN[6], DATA_IN[2:0]};
|
||||
reg [2:0] drive_index;
|
||||
|
||||
// SD blk system is a array of 4 systems - one for each drive.
|
||||
// To keep disk track memory, we created 4 wd1793's to match the sd block interfaces
|
||||
// For the interface back to the coco - we need to isolate the wd1793 the computer is talking
|
||||
// to and route those feedback signals back to the coco. This is accomplished via the drive
|
||||
// select. 'drive_index' identifies which controller is addressd.
|
||||
|
||||
|
||||
always @(negedge FF40_CLK or negedge RESET_N)
|
||||
@@ -178,7 +182,7 @@ begin
|
||||
4'b1001:
|
||||
drive_index <= 3'd1;
|
||||
default:
|
||||
drive_index <= 3'd0; // Illegal
|
||||
drive_index <= 3'd1; // Illegal
|
||||
endcase
|
||||
end
|
||||
end
|
||||
@@ -208,12 +212,13 @@ wire DRQ[4];
|
||||
wire selected_DRQ;
|
||||
wire selected_INTRQ;
|
||||
|
||||
wire WR;
|
||||
wire RD;
|
||||
wire RD_E;
|
||||
wire WR[4];
|
||||
wire RD[4];
|
||||
wire RD_E[4];
|
||||
//wire CE;
|
||||
wire HALT_EN_RST;
|
||||
wire [7:0] DATA_1793;
|
||||
wire [7:0] dout[4];
|
||||
reg read;
|
||||
reg write;
|
||||
reg read_d;
|
||||
@@ -225,7 +230,11 @@ reg read1;
|
||||
reg write1;
|
||||
reg [1:0] ADDRESS_L;
|
||||
|
||||
assign RD = read || RD_E;
|
||||
|
||||
assign RD[0] = (read || RD_E[0]) && (drive_index == 2'd1);
|
||||
assign RD[1] = (read || RD_E[1]) && (drive_index == 3'd2);
|
||||
assign RD[2] = (read || RD_E[2]) && (drive_index == 3'd3);
|
||||
assign RD[3] = (read || RD_E[3]) && (drive_index == 3'd4);
|
||||
|
||||
// The idea here is to "stretch" the CPU read and write signals to ensure we catch a 8 mhz enable.
|
||||
// For writes we will buffer the data out to ensure it does not go away.
|
||||
@@ -244,8 +253,14 @@ begin
|
||||
write_d <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
WR <= 1'b0;
|
||||
RD_E <= 1'b0;
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
WR[2] <= 1'b0;
|
||||
WR[3] <= 1'b0;
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
RD_E[2] <= 1'b0;
|
||||
RD_E[3] <= 1'b0;
|
||||
read1 <= 1'b0;
|
||||
write1 <= 1'b0;
|
||||
read <= 1'b0;
|
||||
@@ -278,14 +293,32 @@ begin
|
||||
begin
|
||||
// Set Writes
|
||||
r_w_active <= 1'b1;
|
||||
WR <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd1:
|
||||
WR[0] <= 1'b1;
|
||||
3'd2:
|
||||
WR[1] <= 1'b1;
|
||||
3'd3:
|
||||
WR[2] <= 1'b1;
|
||||
3'd4:
|
||||
WR[3] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Synchronus rising edge of read
|
||||
if ((read == 1'b1) && (read_d == 1'b0))
|
||||
begin
|
||||
r_w_active <= 1'b1;
|
||||
RD_E <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd1:
|
||||
RD_E[0] <= 1'b1;
|
||||
3'd2:
|
||||
RD_E[1] <= 1'b1;
|
||||
3'd3:
|
||||
RD_E[2] <= 1'b1;
|
||||
3'd4:
|
||||
RD_E[3] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Clears
|
||||
@@ -298,54 +331,48 @@ begin
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
|
||||
WR <= 1'b0;
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
WR[2] <= 1'b0;
|
||||
WR[3] <= 1'b0;
|
||||
|
||||
RD_E <= 1'b0;
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
RD_E[2] <= 1'b0;
|
||||
RD_E[3] <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
// NMI from disk controller
|
||||
// Selected INTRQ
|
||||
assign selected_INTRQ = (drive_index == 3'd1) ? INTRQ[0]:
|
||||
(drive_index == 3'd2) ? INTRQ[1]:
|
||||
(drive_index == 3'd3) ? INTRQ[2]:
|
||||
(drive_index == 3'd4) ? INTRQ[3]:
|
||||
1'b0;
|
||||
|
||||
assign NMI_09 = DENSITY & selected_INTRQ; // Send NMI if Double Density (Halt Mode)
|
||||
|
||||
// HALT from disk controller
|
||||
// Selected DRQ
|
||||
assign selected_DRQ = (drive_index == 3'd1) ? DRQ[0]:
|
||||
(drive_index == 3'd2) ? DRQ[1]:
|
||||
(drive_index == 3'd3) ? DRQ[2]:
|
||||
(drive_index == 3'd4) ? DRQ[3]:
|
||||
1'b1;
|
||||
|
||||
|
||||
assign HALT = (HALT_EN & ~selected_DRQ);
|
||||
|
||||
assign HALT_EN_RST = RESET_N & ~selected_INTRQ; // From controller schematic
|
||||
|
||||
assign sd_lba[0] = wd1793_sd_lba;
|
||||
assign sd_lba[1] = wd1793_sd_lba;
|
||||
assign sd_lba[2] = wd1793_sd_lba;
|
||||
assign sd_lba[3] = wd1793_sd_lba;
|
||||
|
||||
assign sd_rd[0] = (drive_index == 3'd1) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
assign sd_rd[1] = (drive_index == 3'd2) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
assign sd_rd[2] = (drive_index == 3'd3) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
assign sd_rd[3] = (drive_index == 3'd4) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
|
||||
assign sd_wr[0] = (drive_index == 3'd1) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
assign sd_wr[1] = (drive_index == 3'd2) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
assign sd_wr[2] = (drive_index == 3'd3) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
assign sd_wr[3] = (drive_index == 3'd4) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
|
||||
assign wd1793_sd_ack = (drive_index == 3'd1) ? sd_ack[0]:
|
||||
(drive_index == 3'd2) ? sd_ack[1]:
|
||||
(drive_index == 3'd3) ? sd_ack[2]:
|
||||
(drive_index == 3'd4) ? sd_ack[3]:
|
||||
sd_ack[0]; // default is drive 1
|
||||
|
||||
assign sd_buff_din[0] = wd1793_sd_buff_din;
|
||||
assign sd_buff_din[1] = wd1793_sd_buff_din;
|
||||
assign sd_buff_din[2] = wd1793_sd_buff_din;
|
||||
assign sd_buff_din[3] = wd1793_sd_buff_din;
|
||||
// Data bus selection
|
||||
assign DATA_1793 = (drive_index == 3'd1) ? dout[0]:
|
||||
(drive_index == 3'd2) ? dout[1]:
|
||||
(drive_index == 3'd3) ? dout[2]:
|
||||
(drive_index == 3'd4) ? dout[3]:
|
||||
8'd0;
|
||||
|
||||
|
||||
// The SD_BLK interface and thus the wd1793 will allways transfer 1 blk. This is blk qty - 1 per spec.
|
||||
@@ -358,13 +385,6 @@ reg drive_wp[4];
|
||||
reg [3:0] drive_ready = 4'B0000;
|
||||
reg [3:0] double_sided = 4'B0000;
|
||||
reg [23:0] drive_size[4];
|
||||
wire [23:0] selected_drive_size;
|
||||
wire [31:0] wd1793_sd_lba;
|
||||
wire wd1793_sd_rd;
|
||||
wire wd1793_sd_wr;
|
||||
wire wd1793_sd_ack;
|
||||
wire [7:0] wd1793_sd_buff_din;
|
||||
wire selected_drive_ready, selected_drive_wp, selected_double_sided;
|
||||
|
||||
|
||||
// As drives are mounted in MISTer this logic saves the write protect and generates ready for
|
||||
@@ -413,28 +433,6 @@ begin
|
||||
//double_sided[3]<= img_size > 20'd368600;//20'd368640;
|
||||
end
|
||||
|
||||
assign selected_drive_size = (drive_index == 3'd1) ? drive_size[0]:
|
||||
(drive_index == 3'd2) ? drive_size[1]:
|
||||
(drive_index == 3'd3) ? drive_size[2]:
|
||||
(drive_index == 3'd4) ? drive_size[3]:
|
||||
drive_size[0]; // default is drive 1
|
||||
|
||||
assign selected_drive_wp = (drive_index == 3'd1) ? drive_wp[0]:
|
||||
(drive_index == 3'd2) ? drive_wp[1]:
|
||||
(drive_index == 3'd3) ? drive_wp[2]:
|
||||
(drive_index == 3'd4) ? drive_wp[3]:
|
||||
drive_wp[0]; // default is drive 1
|
||||
|
||||
assign selected_double_sided= (drive_index == 3'd1) ? double_sided[0]:
|
||||
(drive_index == 3'd2) ? double_sided[1]:
|
||||
(drive_index == 3'd3) ? double_sided[2]:
|
||||
double_sided[0]; // default is drive 1
|
||||
|
||||
assign selected_drive_ready = (drive_index == 3'd1) ? drive_ready[0]:
|
||||
(drive_index == 3'd2) ? drive_ready[1]:
|
||||
(drive_index == 3'd3) ? drive_ready[2]:
|
||||
(drive_index == 3'd4) ? drive_ready[3]:
|
||||
1'b0; // default is not ready
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_0
|
||||
(
|
||||
@@ -442,34 +440,160 @@ wd1793 #(1,0) coco_wd1793_0
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD),
|
||||
.wr(WR),
|
||||
.rd(RD[0]),
|
||||
.wr(WR[0]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(DATA_1793),
|
||||
.drq(selected_DRQ),
|
||||
.intrq(selected_INTRQ),
|
||||
.dout(dout[0]),
|
||||
.drq(DRQ[0]),
|
||||
.intrq(INTRQ[0]),
|
||||
|
||||
.img_mounted(1'b0),
|
||||
.img_mounted_overide(1'b1),
|
||||
.img_size(selected_drive_size[19:0]),
|
||||
.img_size(drive_size[0]),
|
||||
|
||||
.sd_lba(wd1793_sd_lba),
|
||||
.sd_rd(wd1793_sd_rd),
|
||||
.sd_wr(wd1793_sd_wr),
|
||||
.sd_ack(wd1793_sd_ack),
|
||||
.sd_lba(sd_lba[0]),
|
||||
.sd_rd(sd_rd[0]),
|
||||
.sd_wr(sd_wr[0]),
|
||||
.sd_ack(sd_ack[0]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(wd1793_sd_buff_din),
|
||||
.sd_buff_din(sd_buff_din[0]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(selected_drive_wp),
|
||||
.wp(drive_wp[0]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~selected_double_sided), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(selected_double_sided & DRIVE_SEL_EXT[3]),
|
||||
.ready(selected_drive_ready),
|
||||
.layout(~double_sided[0]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[0] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[0]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_1
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[1]),
|
||||
.wr(WR[1]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[1]),
|
||||
.drq(DRQ[1]),
|
||||
.intrq(INTRQ[1]),
|
||||
|
||||
.img_mounted(1'b0),
|
||||
.img_mounted_overide(1'b1),
|
||||
.img_size(drive_size[1]),
|
||||
|
||||
.sd_lba(sd_lba[1]),
|
||||
.sd_rd(sd_rd[1]),
|
||||
.sd_wr(sd_wr[1]),
|
||||
.sd_ack(sd_ack[1]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[1]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[1]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[1]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[1] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[1]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_2
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[2]),
|
||||
.wr(WR[2]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[2]),
|
||||
.drq(DRQ[2]),
|
||||
.intrq(INTRQ[2]),
|
||||
|
||||
.img_mounted(1'b0),
|
||||
.img_mounted_overide(1'b1),
|
||||
.img_size(drive_size[2]),
|
||||
|
||||
.sd_lba(sd_lba[2]),
|
||||
.sd_rd(sd_rd[2]),
|
||||
.sd_wr(sd_wr[2]),
|
||||
.sd_ack(sd_ack[2]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[2]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[2]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[2]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[2] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[2]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_3
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[3]),
|
||||
.wr(WR[3]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[3]),
|
||||
.drq(DRQ[3]),
|
||||
.intrq(INTRQ[3]),
|
||||
|
||||
.img_mounted(1'b0),
|
||||
.img_mounted_overide(1'b1),
|
||||
.img_size(drive_size[3]),
|
||||
|
||||
.sd_lba(sd_lba[3]),
|
||||
.sd_rd(sd_rd[3]),
|
||||
.sd_wr(sd_wr[3]),
|
||||
.sd_ack(sd_ack[3]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[3]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[3]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(1'b1), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(1'b0),
|
||||
.ready(drive_ready[3]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
|
||||
@@ -1,203 +0,0 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 5.x.x
|
||||
// File Name: Music_Speech.sv
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Stan Hodge
|
||||
//
|
||||
// Music_Speech.sv by Stan Hodge 02/16/24
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module Music_Speech(
|
||||
input RESET_N,
|
||||
input CLK,
|
||||
input CLK_EN,
|
||||
input CLK_1_78,
|
||||
|
||||
input [1:0] MPI_SCS, // slot id
|
||||
input [15:0] ADDRESS, // from 09
|
||||
input [7:0] WRITE_DATA, // from 09
|
||||
|
||||
output [7:0] READ_DATA, // to 09
|
||||
input RW_N, // from 09
|
||||
output [7:0] AUDIO // 8 bit audio output mixed from both Speech and Music chips
|
||||
);
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// Host Interface
|
||||
|
||||
localparam Soft_Reset_Adrs = 15'hff7d;
|
||||
localparam Data_Write_Adrs = 15'hff7e;
|
||||
|
||||
localparam SLOT_1 = 2'b00; // Nothing [RS-232)
|
||||
localparam SLOT_2 = 2'b01; // SDC
|
||||
localparam SLOT_3 = 2'b10; // Cartridge System
|
||||
localparam SLOT_4 = 2'b11; // FDC
|
||||
|
||||
localparam S_M_SLOT = SLOT_2;
|
||||
|
||||
reg Soft_Reset;
|
||||
wire System_Reset;
|
||||
|
||||
// Soft Reset Bit
|
||||
always @ (negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
Soft_Reset <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (CLK_EN && !RW_N && (MPI_SCS == S_M_SLOT) && (ADDRESS == Soft_Reset_Adrs))
|
||||
begin
|
||||
if (WRITE_DATA[0])
|
||||
Soft_Reset <= !Soft_Reset;
|
||||
else
|
||||
Soft_Reset <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
assign System_Reset = RESET_N ^ Soft_Reset;
|
||||
|
||||
// New data and INT
|
||||
reg INT3_N;
|
||||
reg [7:0] SOC_WR_DATA;
|
||||
|
||||
always @ (negedge CLK or negedge Port_C[7])
|
||||
begin
|
||||
if(!Port_C[7])
|
||||
begin
|
||||
INT3_N <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (CLK_EN && !RW_N && (MPI_SCS == S_M_SLOT) && (ADDRESS == Data_Write_Adrs))
|
||||
begin
|
||||
SOC_WR_DATA <= WRITE_DATA;
|
||||
INT3_N <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Read Data
|
||||
|
||||
wire Speech_Status;
|
||||
wire Music_Status;
|
||||
|
||||
assign READ_DATA = {INT3_N, Speech_Status, Music_Status, 5'b00000};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// SOC
|
||||
|
||||
wire INT1_N;
|
||||
wire [7:0] Port_A, Port_B, Port_C, Port_D_IN, Port_D_OUT;
|
||||
|
||||
Music_Speech_SOC CoCo3_Music_Speech_SOC(
|
||||
.RESET_N(RESET_N),
|
||||
.CLKIN(CLK),
|
||||
.CLK_1_78(CLK_1_78),
|
||||
|
||||
.INT1_N(INT1_N),
|
||||
.INT3_N(INT3_N),
|
||||
.PORT_A(Port_A),
|
||||
.PORT_B(Port_B),
|
||||
.PORT_C(Port_C),
|
||||
.PORT_D_OUT(Port_D_OUT),
|
||||
.PORT_D_IN(Port_D_IN)
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// SRAM Chip
|
||||
|
||||
COCO_SRAM_6116 CoCo3_SRAM_6116(
|
||||
.CLK(CLK),
|
||||
.ADDR({Port_C[2:0], Port_B}), // Check
|
||||
.R_N(Port_C[4]), // Check
|
||||
.DATA_O(Port_D_IN),
|
||||
.DATA_I(Port_D_OUT)
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Speech Chip
|
||||
|
||||
sp0256 CoCo3_sp0256(
|
||||
.clock(),
|
||||
.ce(),
|
||||
.reset(),
|
||||
.input_rdy(),
|
||||
.allophone(),
|
||||
.trig_allophone(),
|
||||
.audio_out()
|
||||
);
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Music Chip
|
||||
|
||||
ym2149_audio CoCo3_ym2149_audio(
|
||||
.clk_i(CLK),
|
||||
.en_clk_psg_i(CLK_1_78),
|
||||
.sel_n_i(1'b1), // No divide by 2
|
||||
.reset_n_i(RESET_N),
|
||||
.bc_i(),
|
||||
.bdir_i(),
|
||||
.data_i(),
|
||||
.data_r_o(),
|
||||
|
||||
// .ch_a_o(),
|
||||
// .ch_b_o(),
|
||||
// .ch_c_o()
|
||||
|
||||
.mix_audio_o(), //[13:0]
|
||||
// .pcm14s_o()
|
||||
);
|
||||
|
||||
endmodule
|
||||
+3
-2
@@ -47,8 +47,6 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Define Config features
|
||||
`include "../RTL/config.v"
|
||||
|
||||
module sdc(
|
||||
input CLK, // clock
|
||||
@@ -89,6 +87,9 @@ module sdc(
|
||||
|
||||
);
|
||||
|
||||
// Define Config features
|
||||
`include "../rtl/config.sv"
|
||||
|
||||
reg [23:0] LSN;
|
||||
reg [7:0] command;
|
||||
reg [7:0] transfer_address;
|
||||
|
||||
+107
-74
@@ -146,54 +146,27 @@ assign DATA_HDD =
|
||||
|
||||
wire [31:0] sdc_sd_lba[2];
|
||||
wire [31:0] fdc_sd_lba[2];
|
||||
wire [31:0] wd1793_sd_lba;
|
||||
wire [1:0] sdc_sd_rd;
|
||||
wire wd1793_sd_rd;
|
||||
wire [1:0] fdc_sd_rd;
|
||||
wire [1:0] sdc_sd_wr;
|
||||
wire [1:0] fdc_sd_wr;
|
||||
wire wd1793_sd_wr;
|
||||
wire [7:0] sdc_sd_buff_din[2];
|
||||
wire [7:0] fdc_sd_buff_din[2];
|
||||
wire [7:0] wd1793_sd_buff_din;
|
||||
wire wd1793_sd_ack;
|
||||
wire sdc_HALT;
|
||||
|
||||
assign sd_lba[0:1] = SDC_EN ? sdc_sd_lba[0:1]:
|
||||
fdc_sd_lba[0:1];
|
||||
|
||||
assign fdc_sd_lba[0] = wd1793_sd_lba;
|
||||
assign fdc_sd_lba[1] = wd1793_sd_lba;
|
||||
|
||||
assign sd_rd[1:0] = SDC_EN ? sdc_sd_rd[1:0]:
|
||||
fdc_sd_rd[1:0];
|
||||
|
||||
assign fdc_sd_rd[0] = (drive_index == 3'd1) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
|
||||
assign fdc_sd_rd[1] = (drive_index == 3'd2) ? wd1793_sd_rd:
|
||||
1'b0;
|
||||
|
||||
assign sd_wr[1:0] = SDC_EN ? sdc_sd_wr[1:0]:
|
||||
fdc_sd_wr[1:0];
|
||||
|
||||
assign fdc_sd_wr[0] = (drive_index == 3'd1) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
|
||||
assign fdc_sd_wr[1] = (drive_index == 3'd2) ? wd1793_sd_wr:
|
||||
1'b0;
|
||||
|
||||
assign sd_buff_din[0:1] = SDC_EN ? sdc_sd_buff_din[0:1]:
|
||||
fdc_sd_buff_din[0:1];
|
||||
|
||||
assign fdc_sd_buff_din[0] = wd1793_sd_buff_din;
|
||||
assign fdc_sd_buff_din[1] = wd1793_sd_buff_din;
|
||||
|
||||
|
||||
assign wd1793_sd_ack = (drive_index == 3'd1) ? sd_ack[0]:
|
||||
(drive_index == 3'd2) ? sd_ack[1]:
|
||||
sd_ack[0]; // default is drive 1
|
||||
|
||||
|
||||
sdc coco_sdc(
|
||||
.CLK(CLK), // clock
|
||||
@@ -277,13 +250,13 @@ begin
|
||||
drive_index <= 3'd1;
|
||||
|
||||
4'b1011: // This is what the Magic Number $43 does so we select a non-active drive
|
||||
drive_index <= 3'd0;
|
||||
drive_index <= 3'd1;
|
||||
4'b1000: // This is no drive with DS = illegal drive
|
||||
drive_index <= 3'd0;
|
||||
drive_index <= 3'd1;
|
||||
4'b0000: // This is no drive (maybe 0 in ff40) = illegal drive
|
||||
drive_index <= 3'd0;
|
||||
drive_index <= 3'd1;
|
||||
default:
|
||||
drive_index <= 3'd0;
|
||||
drive_index <= 3'd1;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
@@ -310,14 +283,17 @@ end
|
||||
|
||||
// Control signals for the wd1793
|
||||
|
||||
wire INTRQ[2];
|
||||
wire DRQ[2];
|
||||
wire selected_DRQ;
|
||||
wire selected_INTRQ;
|
||||
|
||||
wire WR;
|
||||
wire RD;
|
||||
wire RD_E;
|
||||
wire WR[2];
|
||||
wire RD[2];
|
||||
wire RD_E[2];
|
||||
wire HALT_EN_RST;
|
||||
wire [7:0] DATA_1793;
|
||||
wire [7:0] dout[2];
|
||||
reg read;
|
||||
reg write;
|
||||
reg read_d;
|
||||
@@ -329,7 +305,8 @@ reg read1;
|
||||
reg write1;
|
||||
reg [1:0] ADDRESS_L;
|
||||
|
||||
assign RD = (read || RD_E); // Even with no drive selected allow read to the controller
|
||||
assign RD[0] = (read || RD_E[0]) && (drive_index == 2'd1);
|
||||
assign RD[1] = (read || RD_E[1]) && (drive_index == 3'd2);
|
||||
|
||||
// The idea here is to "stretch" the CPU read and write signals to ensure we catch a 8 mhz enable.
|
||||
// For writes we will buffer the data out to ensure it does not go away.
|
||||
@@ -350,8 +327,10 @@ begin
|
||||
write_d <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
WR <= 1'b0;
|
||||
RD_E <= 1'b0;
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
read1 <= 1'b0;
|
||||
write1 <= 1'b0;
|
||||
read <= 1'b0;
|
||||
@@ -383,14 +362,24 @@ begin
|
||||
begin
|
||||
// Set Write
|
||||
r_w_active <= 1'b1;
|
||||
WR <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd1:
|
||||
WR[0] <= 1'b1;
|
||||
3'd2:
|
||||
WR[1] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Synchronus rising edge of read
|
||||
if ((read == 1'b1) && (read_d == 1'b0))
|
||||
begin
|
||||
r_w_active <= 1'b1;
|
||||
RD_E <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd1:
|
||||
RD_E[0] <= 1'b1;
|
||||
3'd2:
|
||||
RD_E[1] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Clears
|
||||
@@ -402,23 +391,42 @@ begin
|
||||
begin
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
WR <= 1'b0;
|
||||
RD_E <= 1'b0;
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
// NMI from disk controller
|
||||
// Selected INTRQ
|
||||
assign selected_INTRQ = (drive_index == 3'd1) ? INTRQ[0]:
|
||||
(drive_index == 3'd2) ? INTRQ[1]:
|
||||
1'b0;
|
||||
|
||||
assign NMI_09 = ~SDC_EN & DENSITY & selected_INTRQ; // Send NMI if Double Density (Halt Mode)
|
||||
|
||||
|
||||
|
||||
// HALT from disk controller
|
||||
|
||||
// Selected DRQ
|
||||
assign selected_DRQ = (drive_index == 3'd1) ? DRQ[0]:
|
||||
(drive_index == 3'd2) ? DRQ[1]:
|
||||
1'b1;
|
||||
|
||||
assign HALT = (~SDC_EN & HALT_EN & ~selected_DRQ) | sdc_HALT;
|
||||
|
||||
assign HALT_EN_RST = RESET_N & ~selected_INTRQ; // From controller schematic
|
||||
|
||||
// Data bus selection
|
||||
assign DATA_1793 = (drive_index == 3'd1) ? dout[0]:
|
||||
(drive_index == 3'd2) ? dout[1]:
|
||||
8'd0;
|
||||
|
||||
|
||||
// The SD_BLK interface and thus the wd1793 will allways transfer 1 blk. This is blk qty - 1 per spec.
|
||||
assign sd_blk_cnt[1] = 6'd0;
|
||||
@@ -428,8 +436,6 @@ reg drive_wp[2];
|
||||
reg [1:0] drive_ready = 2'b00;
|
||||
reg [1:0] double_sided = 2'b00;
|
||||
reg [31:0] drive_size[2];
|
||||
wire [31:0] selected_drive_size;
|
||||
wire selected_drive_ready, selected_drive_wp, selected_double_sided;
|
||||
|
||||
// As drives are mounted in MISTer this logic saves the write protect and generates ready for
|
||||
// changing drives to the wd1793.
|
||||
@@ -457,56 +463,83 @@ begin
|
||||
double_sided[1]<= (img_size > 64'd368600) & (img_size < 64'd740000);//20'd368640;
|
||||
end
|
||||
|
||||
assign selected_drive_size = (drive_index == 3'd1) ? drive_size[0]:
|
||||
(drive_index == 3'd2) ? drive_size[1]:
|
||||
drive_size[0]; // default is drive 1
|
||||
|
||||
assign selected_drive_wp = (drive_index == 3'd1) ? drive_wp[0]:
|
||||
(drive_index == 3'd2) ? drive_wp[1]:
|
||||
drive_wp[0]; // default is drive 1
|
||||
|
||||
assign selected_double_sided= (drive_index == 3'd1) ? double_sided[0]:
|
||||
(drive_index == 3'd2) ? double_sided[1]:
|
||||
double_sided[0]; // default is drive 1
|
||||
|
||||
assign selected_drive_ready = (drive_index == 3'd1) ? drive_ready[0]:
|
||||
(drive_index == 3'd2) ? drive_ready[1]:
|
||||
drive_ready[0]; // default is drive 1
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_sdc
|
||||
wd1793 #(1,0) coco_wd1793_sdc_0
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD),
|
||||
.wr(WR),
|
||||
.rd(RD[0]),
|
||||
.wr(WR[0]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(DATA_1793),
|
||||
.drq(selected_DRQ),
|
||||
.intrq(selected_INTRQ),
|
||||
.dout(dout[0]),
|
||||
.drq(DRQ[0]),
|
||||
.intrq(INTRQ[0]),
|
||||
|
||||
.img_mounted(1'b0), // Not used when using _override
|
||||
.img_mounted_overide(1'b1), // Load img_size and layout on each clock
|
||||
.img_size(selected_drive_size[19:0]),
|
||||
.img_size(drive_size[0]),
|
||||
|
||||
.sd_lba(wd1793_sd_lba),
|
||||
.sd_rd(wd1793_sd_rd),
|
||||
.sd_wr(wd1793_sd_wr),
|
||||
.sd_ack(wd1793_sd_ack),
|
||||
.sd_lba(fdc_sd_lba[0]),
|
||||
.sd_rd(fdc_sd_rd[0]),
|
||||
.sd_wr(fdc_sd_wr[0]),
|
||||
.sd_ack(sd_ack[0]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(wd1793_sd_buff_din),
|
||||
.sd_buff_din(fdc_sd_buff_din[0]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(selected_drive_wp),
|
||||
.wp(drive_wp[0]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~selected_double_sided), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(selected_double_sided & DRIVE_SEL_EXT[3]),
|
||||
.ready(selected_drive_ready),
|
||||
.layout(~double_sided[0]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[0] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[0]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_sdc_1
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[1]),
|
||||
.wr(WR[1]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[1]),
|
||||
.drq(DRQ[1]),
|
||||
.intrq(INTRQ[1]),
|
||||
|
||||
.img_mounted(1'b0), // Not used when using _override
|
||||
.img_mounted_overide(1'b1), // Load img_size and layout on each clock
|
||||
.img_size(drive_size[1]),
|
||||
|
||||
.sd_lba(fdc_sd_lba[1]),
|
||||
.sd_rd(fdc_sd_rd[1]),
|
||||
.sd_wr(fdc_sd_wr[1]),
|
||||
.sd_ack(sd_ack[1]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(fdc_sd_buff_din[1]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[1]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[1]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[1] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[1]),
|
||||
|
||||
.input_active(0), // Section not used
|
||||
.input_addr(0),
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version 4.0
|
||||
-- File Name: CoCo_ram_128x8.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
-- Revision: 5.x.x
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
-- Version : 5.0.x.x
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
-- 1.0 Full Release
|
||||
-- 2.0 Partial Release
|
||||
-- 3.0 Full Release
|
||||
-- 3.0.0.1 Update to fix DoD interrupt issue
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--////////////////////////////////////////////////////////////////////////////////
|
||||
--// MISTer Conversion by Stan Hodge and Alan Steremberg (& Gary Becker)
|
||||
--// [email protected]
|
||||
--//
|
||||
--////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_SRAM_6116 is
|
||||
port (
|
||||
CLK : in std_logic;
|
||||
ENA : in std_logic;
|
||||
ADDR : in std_logic_vector(6 downto 0);
|
||||
R_W : in std_logic;
|
||||
DATA_I : in std_logic_vector(7 downto 0);
|
||||
DATA_O : out std_logic_vector(7 downto 0)
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_SRAM_128x8 is
|
||||
|
||||
type SRAM_ARRAY is array(0 to 127) of std_logic_vector(7 downto 0);
|
||||
signal SRAM : SRAM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
P_SRAM : process(CLK,ADDR,R_W,DATA_I)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if ENA = '1' and R_W = '0' then
|
||||
SRAM(to_integer(unsigned(ADDR))) <= DATA_I;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
DATA_O <= SRAM(to_integer(unsigned(ADDR)));
|
||||
|
||||
end RTL;
|
||||
@@ -1,102 +0,0 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version 4.0
|
||||
-- File Name: CoCo_ram_6116.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
-- Revision: 4.0 07/10/16
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
-- Version : 5.0.x.x
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
-- 1.0 Full Release
|
||||
-- 2.0 Partial Release
|
||||
-- 3.0 Full Release
|
||||
-- 3.0.0.1 Update to fix DoD interrupt issue
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--////////////////////////////////////////////////////////////////////////////////
|
||||
--// MISTer Conversion by Stan Hodge and Alan Steremberg (& Gary Becker)
|
||||
--// [email protected]
|
||||
--//
|
||||
--////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_SRAM_6116 is
|
||||
port (
|
||||
CLK : in std_logic;
|
||||
ADDR : in std_logic_vector(10 downto 0);
|
||||
R_W : in std_logic;
|
||||
DATA_I : in std_logic_vector(7 downto 0);
|
||||
DATA_O : out std_logic_vector(7 downto 0)
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_SRAM_6116 is
|
||||
|
||||
type SRAM_ARRAY is array(0 to 2047) of std_logic_vector(7 downto 0);
|
||||
signal SRAM : SRAM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
P_SRAM : process(CLK,ADDR,R_W,DATA_I)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if R_W = '0' then
|
||||
SRAM(to_integer(unsigned(ADDR))) <= DATA_I;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
DATA_O <= SRAM(to_integer(unsigned(ADDR)));
|
||||
|
||||
end RTL;
|
||||
@@ -99,6 +99,11 @@ generate
|
||||
assign G = {RGB_fix[7:4],RGB_fix[7:4]};
|
||||
assign B = {RGB_fix[3:0],RGB_fix[3:0]};
|
||||
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
|
||||
assign R = RGB_fix[23:16];
|
||||
assign G = RGB_fix[15:8];
|
||||
|
||||
+159
-40
@@ -103,7 +103,7 @@ USE ieee.numeric_std.ALL;
|
||||
-- DOWNSCALE : True=Support downscaling False=Downscaling disabled
|
||||
-- BYTESWAP : Little/Big endian byte swap
|
||||
-- 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)
|
||||
-- IHRES : Max. input horizontal resolution. Must be a power of two.
|
||||
-- (Used for sizing line buffers)
|
||||
@@ -125,7 +125,7 @@ ENTITY ascal IS
|
||||
ADAPTIVE : boolean := true;
|
||||
DOWNSCALE_NN : boolean := false;
|
||||
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;
|
||||
N_DW : natural RANGE 64 TO 128 := 128;
|
||||
N_AW : natural RANGE 8 TO 32 := 32;
|
||||
@@ -204,6 +204,7 @@ ENTITY ascal IS
|
||||
run : IN std_logic :='1'; -- 1=Enable output image. 0=No image
|
||||
freeze : IN std_logic :='0'; -- 1=Disable framebuffer writes
|
||||
mode : IN unsigned(4 DOWNTO 0);
|
||||
bob_deint : IN std_logic := '0';
|
||||
-- SYNC |_________________________/"""""""""\_______|
|
||||
-- DE |""""""""""""""""""\________________________|
|
||||
-- RGB | <#IMAGE#> ^HDISP |
|
||||
@@ -222,6 +223,7 @@ ENTITY ascal IS
|
||||
vmax : IN natural RANGE 0 TO 4095; -- 0 <= vmin < vmax < vdisp
|
||||
vrr : IN std_logic := '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
|
||||
format : IN unsigned(1 DOWNTO 0) :="01";
|
||||
@@ -257,6 +259,9 @@ ENTITY ascal IS
|
||||
BEGIN
|
||||
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;
|
||||
|
||||
--##############################################################################
|
||||
@@ -287,6 +292,35 @@ ARCHITECTURE rtl OF ascal IS
|
||||
END IF;
|
||||
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_LA : natural :=ilog2(N_DW/8); -- Low address bits
|
||||
@@ -318,6 +352,7 @@ ARCHITECTURE rtl OF ascal IS
|
||||
SIGNAL i_pvs,i_pfl,i_pde,i_pce : std_logic;
|
||||
SIGNAL i_ppix : type_pix;
|
||||
SIGNAL i_freeze : std_logic;
|
||||
SIGNAL i_bob_deint : std_logic;
|
||||
SIGNAL i_count : unsigned(2 DOWNTO 0);
|
||||
SIGNAL i_hsize,i_hmin,i_hmax,i_hcpt : 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_intercnt : natural RANGE 0 TO 3;
|
||||
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_walt,i_walt_mem,i_wreq_mem : std_logic;
|
||||
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_hdown,i_vdown : std_logic;
|
||||
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_ldw,i_ldrm : 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
|
||||
SIGNAL o_run : 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_format : unsigned(5 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_dpram : arr_dw(0 TO BLEN*2-1);
|
||||
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_line1 : 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";
|
||||
SIGNAL o_wadl,o_radl0,o_radl1,o_radl2,o_radl3 : natural RANGE 0 TO OHRES-1;
|
||||
SIGNAL o_ldw,o_ldr0,o_ldr1,o_ldr2,o_ldr3 : type_pix;
|
||||
ATTRIBUTE ramstyle OF o_linf0 : SIGNAL IS "no_rw_check";
|
||||
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_hcpt,o_vcpt,o_vcpt_pre,o_vcpt_pre2,o_vcpt_pre3,o_vcpt2 : 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);
|
||||
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_hsp,o_vss : std_logic;
|
||||
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;
|
||||
SIGNAL o_off : arr_uint4(0 TO 2);
|
||||
SIGNAL o_bibu : std_logic :='0';
|
||||
SIGNAL o_dcptv : arr_uint12(1 TO 14);
|
||||
SIGNAL o_dcpt : uint12;
|
||||
SIGNAL o_dcptv : arr_uint12(13 TO 14);
|
||||
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_hpixq : arr_pixq(2 TO 8);
|
||||
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_inner : arr_pix(0 TO 6);
|
||||
|
||||
|
||||
SIGNAL o_vpe : std_logic;
|
||||
SIGNAL o_div : arr_div(0 TO 2); --uint12;
|
||||
SIGNAL o_dir : arr_frac(0 TO 2);
|
||||
@@ -510,6 +556,7 @@ ARCHITECTURE rtl OF ascal IS
|
||||
SIGNAL o_divrun : std_logic;
|
||||
SIGNAL o_hacpt,o_vacpt : unsigned(11 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);
|
||||
@@ -1130,6 +1177,7 @@ BEGIN
|
||||
i_pushhead<='0';
|
||||
i_eol<='0'; -- End Of Line
|
||||
i_freeze <=freeze; -- <ASYNC>
|
||||
i_bob_deint <= bob_deint;
|
||||
i_iauto<=iauto; -- <ASYNC>
|
||||
i_wreq<='0';
|
||||
i_wr<='0';
|
||||
@@ -1190,11 +1238,13 @@ BEGIN
|
||||
i_vcpt<=0;
|
||||
IF i_inter='1' AND i_flm='0' AND i_half='0' AND INTER THEN
|
||||
i_line<='1';
|
||||
i_wfl(o_ibuf1) <= '0';
|
||||
i_adrsi<=to_unsigned(N_BURST * i_hburst,32) +
|
||||
to_unsigned(N_BURST * to_integer(
|
||||
unsigned'("00") & to_std_logic(HEADER)),32);
|
||||
ELSE
|
||||
i_line<='0';
|
||||
i_wfl(o_ibuf0) <= '1';
|
||||
i_adrsi<=to_unsigned(N_BURST * to_integer(
|
||||
unsigned'("00") & to_std_logic(HEADER)),32);
|
||||
END IF;
|
||||
@@ -1204,8 +1254,8 @@ BEGIN
|
||||
i_vcpt>=i_vmin AND i_vcpt<=i_vmax);
|
||||
|
||||
-- Detects end of frame for triple buffering.
|
||||
i_endframe0<=i_vs AND (NOT i_inter OR i_flm);
|
||||
i_endframe1<=i_vs AND (NOT i_inter OR NOT 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 OR i_bob_deint);
|
||||
|
||||
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
|
||||
i_lwr<=i_hnp4 AND i_ven5 AND i_pce;
|
||||
IF i_lwr='1' THEN
|
||||
i_lwad<=(i_lwad+1) MOD OHRES;
|
||||
i_lwad<=(i_lwad+1) MOD OHRESH;
|
||||
END IF;
|
||||
i_ldw<=i_hpix;
|
||||
|
||||
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;
|
||||
|
||||
------------------------------------------------------
|
||||
@@ -1817,7 +1867,7 @@ BEGIN
|
||||
VARIABLE shift_v : unsigned(0 TO N_DW+15);
|
||||
VARIABLE hpix_v : type_pix;
|
||||
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;
|
||||
BEGIN
|
||||
IF o_reset_na='0' THEN
|
||||
@@ -1862,6 +1912,8 @@ BEGIN
|
||||
o_isync <= '0';
|
||||
o_isync2 <= o_isync;
|
||||
o_freeze <= freeze;
|
||||
o_bob_deint <= bob_deint;
|
||||
o_iwfl <= i_wfl;
|
||||
o_inter <=i_inter; -- <ASYNC>
|
||||
o_iendframe0<=i_endframe0; -- <ASYNC>
|
||||
o_iendframe02<=o_iendframe0;
|
||||
@@ -1890,6 +1942,14 @@ BEGIN
|
||||
o_ivsize<=i_vrsize; -- <ASYNC>
|
||||
o_hdown<=i_hdown; -- <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;
|
||||
|
||||
-- Simultaneous change of input and output framebuffers
|
||||
@@ -2086,7 +2146,26 @@ BEGIN
|
||||
o_read<=o_read_pre AND o_run;
|
||||
o_rline<=o_vacpt(0); -- Even/Odd line for interlaced video
|
||||
|
||||
----
|
||||
-- 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_fload=2 THEN
|
||||
o_adrs<=to_unsigned(o_hbcpt * N_BURST,32);
|
||||
@@ -2103,6 +2182,9 @@ BEGIN
|
||||
------------------------------------------------------
|
||||
-- Copy from buffered memory to pixel lines
|
||||
o_sh<='0';
|
||||
o_dcpt_clr <= '0';
|
||||
o_dcpt_inc <= '0';
|
||||
|
||||
CASE o_copy IS
|
||||
WHEN sWAIT =>
|
||||
o_copyv(0)<='0';
|
||||
@@ -2121,7 +2203,7 @@ BEGIN
|
||||
o_hacc <=o_hacc_ini;
|
||||
o_hacc_next<=o_hacc_ini + 2*o_ihsize;
|
||||
o_hacpt <=x"000";
|
||||
o_dcpt<=0;
|
||||
o_dcpt_clr <= '1';
|
||||
o_dshi<=2;
|
||||
o_acpt<=0;
|
||||
o_first<='1';
|
||||
@@ -2149,17 +2231,17 @@ BEGIN
|
||||
WHEN sCOPY =>
|
||||
-- dshi : Force shift first two or three pixels of each line
|
||||
IF o_dshi=0 THEN
|
||||
dif_v:=(o_hacc_next - 2*o_hsize + (8*OHRES)) MOD (8*OHRES);
|
||||
IF dif_v>=4*OHRES THEN
|
||||
dif_v:=(o_hacc_next - 2*o_hsize + (8*OHRESH)) MOD (8*OHRESH);
|
||||
IF dif_v>=4*OHRESH THEN
|
||||
o_hacc<=o_hacc_next;
|
||||
o_hacc_next<=o_hacc_next + 2*o_ihsize;
|
||||
hcarry_v:=false;
|
||||
ELSE
|
||||
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;
|
||||
END IF;
|
||||
o_dcpt<=(o_dcpt+1) MOD 4096;
|
||||
o_dcpt_inc <= '1';
|
||||
ELSE
|
||||
o_dshi<=o_dshi-1;
|
||||
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),
|
||||
b=>o_fb_pal_dr(7 DOWNTO 0));
|
||||
END IF;
|
||||
IF (o_newres > 0) then
|
||||
hpix_v := (others => (others => '0'));
|
||||
END IF;
|
||||
o_hpix0<=hpix_v;
|
||||
o_hpix1<=o_hpix0;
|
||||
o_hpix2<=o_hpix1;
|
||||
@@ -2526,13 +2611,19 @@ BEGIN
|
||||
o_hfrac(2 TO 9) <= o_hfrac(1 TO 8);
|
||||
|
||||
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(1)>=o_hsize THEN
|
||||
o_copyv(2)<='0';
|
||||
IF o_dcptv_clr(12)='1' THEN
|
||||
o_dcptv(13) <= 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;
|
||||
o_dcptv(2)<=o_dcptv(1) MOD OHRES;
|
||||
o_dcptv(3 TO 14)<=o_dcptv(2 TO 13);
|
||||
|
||||
-- C2
|
||||
o_hpixq(2)<=(o_hpix3,o_hpix2,o_hpix1,o_hpix0);
|
||||
@@ -2625,17 +2716,39 @@ BEGIN
|
||||
OLBUF:PROCESS(o_clk) IS
|
||||
BEGIN
|
||||
IF rising_edge(o_clk) THEN
|
||||
-----------------------------------------------
|
||||
-- WRITES
|
||||
IF o_wr(0)='1' THEN o_line0(o_wadl)<=o_ldw; END IF;
|
||||
IF o_wr(1)='1' THEN o_line1(o_wadl)<=o_ldw; END IF;
|
||||
IF o_wr(2)='1' THEN o_line2(o_wadl)<=o_ldw; END IF;
|
||||
IF o_wr(3)='1' THEN o_line3(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' AND o_wadl < OHRESL THEN o_line1(o_wadl MOD OHRESL)<=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' 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
|
||||
o_ldr0<=o_line0(o_radl0);
|
||||
o_ldr1<=o_line1(o_radl1);
|
||||
o_ldr2<=o_line2(o_radl2);
|
||||
o_ldr3<=o_line3(o_radl3);
|
||||
o_ldr0<=o_line0(o_radl0 MOD OHRESL);
|
||||
o_ldr1<=o_line1(o_radl1 MOD OHRESL);
|
||||
o_ldr2<=o_line2(o_radl2 MOD OHRESL);
|
||||
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 PROCESS OLBUF;
|
||||
|
||||
@@ -2721,16 +2834,17 @@ BEGIN
|
||||
VSCAL:PROCESS(o_clk) IS
|
||||
VARIABLE pixq_v : arr_pix(0 TO 3);
|
||||
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 o_l0_v, o_l1_v, o_l2_v, o_l3_v : type_pix;
|
||||
BEGIN
|
||||
IF rising_edge(o_clk) THEN
|
||||
IF o_ce='1' THEN
|
||||
o_v_hmin_adj<=o_hmin + 5;
|
||||
|
||||
fracnn_v := o_vfrac(o_vfrac'left);
|
||||
r1_v := (o_hcpt - o_v_hmin_adj + OHRES) MOD OHRES;
|
||||
r2_v := (o_hcpt - o_hmin + OHRES) MOD OHRES;
|
||||
r1_v := (o_hcpt - o_v_hmin_adj + OHRESH) MOD OHRESH;
|
||||
r2_v := (o_hcpt - o_hmin + OHRESH) MOD OHRESH;
|
||||
|
||||
-- CYCLE 1 -----------------------------------------
|
||||
-- Read mem
|
||||
@@ -2757,11 +2871,16 @@ BEGIN
|
||||
|
||||
-- CYCLE 2 -----------------------------------------
|
||||
-- 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
|
||||
WHEN "10" => pixq_v:=(o_ldr0,o_ldr1,o_ldr2,o_ldr3);
|
||||
WHEN "11" => pixq_v:=(o_ldr1,o_ldr2,o_ldr3,o_ldr0);
|
||||
WHEN "00" => pixq_v:=(o_ldr2,o_ldr3,o_ldr0,o_ldr1);
|
||||
WHEN OTHERS => pixq_v:=(o_ldr3,o_ldr0,o_ldr1,o_ldr2);
|
||||
WHEN "10" => pixq_v:=(o_l0_v,o_l1_v,o_l2_v,o_l3_v);
|
||||
WHEN "11" => pixq_v:=(o_l1_v,o_l2_v,o_l3_v,o_l0_v);
|
||||
WHEN "00" => pixq_v:=(o_l2_v,o_l3_v,o_l0_v,o_l1_v);
|
||||
WHEN OTHERS => pixq_v:=(o_l3_v,o_l0_v,o_l1_v,o_l2_v);
|
||||
END CASE;
|
||||
|
||||
IF fracnn_v = '0' THEN
|
||||
|
||||
+11
-5
@@ -27,7 +27,7 @@
|
||||
// VDNUM 1..10
|
||||
// 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,
|
||||
inout [48:0] HPS_BUS,
|
||||
@@ -232,8 +232,7 @@ video_calc video_calc
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
localparam STRLEN = $size(CONF_STR)>>3;
|
||||
localparam MAX_W = $clog2((32 > (STRLEN+2)) ? 32 : (STRLEN+2))-1;
|
||||
localparam MAX_W = $clog2((64 > (STRLEN+2)) ? 64 : (STRLEN+2))-1;
|
||||
|
||||
wire [7:0] conf_byte;
|
||||
generate
|
||||
@@ -1032,8 +1031,15 @@ module confstr_rom #(parameter CONF_STR, STRLEN)
|
||||
output reg [7:0] conf_byte
|
||||
);
|
||||
|
||||
wire [7:0] rom[STRLEN];
|
||||
initial for(int i = 0; i < STRLEN; i++) rom[i] = CONF_STR[((STRLEN-i)*8)-1 -:8];
|
||||
reg [7:0] rom[STRLEN];
|
||||
|
||||
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];
|
||||
|
||||
endmodule
|
||||
@@ -75,7 +75,7 @@ always @(posedge CLK) begin
|
||||
END <= 0;
|
||||
rd <= READ;
|
||||
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};
|
||||
SD_COUNTER <= 0;
|
||||
end else begin
|
||||
|
||||
+10
-3
@@ -8,7 +8,9 @@ module mcp23009
|
||||
|
||||
output reg [2:0] btn,
|
||||
input [2:0] led,
|
||||
output reg sd_cd,
|
||||
output reg flg_sd_cd,
|
||||
output reg flg_present,
|
||||
output reg flg_mode,
|
||||
|
||||
output scl,
|
||||
inout sda
|
||||
@@ -50,7 +52,9 @@ always@(posedge clk) begin
|
||||
idx <= 0;
|
||||
btn <= 0;
|
||||
rw <= 0;
|
||||
sd_cd <= 1;
|
||||
flg_sd_cd <= 1;
|
||||
flg_present <= 0;
|
||||
flg_mode <= 1;
|
||||
end
|
||||
else begin
|
||||
if(~&init_data[idx]) begin
|
||||
@@ -84,7 +88,10 @@ always@(posedge clk) begin
|
||||
state <= 0;
|
||||
rw <= 0;
|
||||
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;
|
||||
end
|
||||
end
|
||||
|
||||
+2
-41
@@ -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 -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_NAME "cGxsX2hkbWlfY2Zn"
|
||||
set_global_assignment -entity "pll_cfg" -library "pll_cfg" -name IP_COMPONENT_DISPLAY_NAME "QWx0ZXJhIFBMTCBSZWNvbmZpZw=="
|
||||
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/pll_cfg.v"]
|
||||
set_global_assignment -library "pll_cfg" -name VERILOG_FILE [file join $::quartus(qip_path) "pll_cfg/pll_cfg_hdmi.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 -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"
|
||||
@@ -16,7 +16,7 @@
|
||||
module altera_pll_reconfig_core
|
||||
#(
|
||||
parameter reconf_width = 64,
|
||||
parameter device_family = "Stratix V",
|
||||
parameter device_family = "Cyclone V",
|
||||
// MIF Streaming parameters
|
||||
parameter RECONFIG_ADDR_WIDTH = 6,
|
||||
parameter RECONFIG_DATA_WIDTH = 32,
|
||||
@@ -1883,7 +1883,7 @@ module fpll_dprio_init (
|
||||
endmodule
|
||||
module dyn_phase_shift
|
||||
#(
|
||||
parameter device_family = "Stratix V"
|
||||
parameter device_family = "Cyclone V"
|
||||
) (
|
||||
|
||||
input wire clk,
|
||||
@@ -2112,7 +2112,7 @@ endmodule
|
||||
module generic_lcell_comb
|
||||
#(
|
||||
//parameter
|
||||
parameter family = "Stratix V",
|
||||
parameter family = "Cyclone V",
|
||||
parameter lut_mask = 64'hAAAAAAAAAAAAAAAA,
|
||||
parameter dont_touch = "on"
|
||||
) (
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
module altera_pll_reconfig_top
|
||||
#(
|
||||
parameter reconf_width = 64,
|
||||
parameter device_family = "Stratix V",
|
||||
parameter device_family = "Cyclone V",
|
||||
parameter RECONFIG_ADDR_WIDTH = 6,
|
||||
parameter RECONFIG_DATA_WIDTH = 32,
|
||||
|
||||
|
||||
@@ -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
-4
@@ -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_hdmi.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 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 ]
|
||||
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_cfg.qip ]
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
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_audio.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 ]
|
||||
set_global_assignment -name QIP_FILE [file join $::quartus(qip_path) pll_cfg.qip ]
|
||||
+4
-4
@@ -58,10 +58,10 @@ localparam DW = WIDE ? 15 : 7;
|
||||
localparam SZ = OCTAL ? 8 : 1;
|
||||
localparam SW = SZ-1;
|
||||
|
||||
wire [7:0] DATA_TOKEN_CMD25 = 8'hfc;
|
||||
wire [7:0] STOP_TRAN = 8'hfd;
|
||||
wire [7:0] DATA_TOKEN = 8'hfe;
|
||||
wire [7:0] WRITE_DATA_RESPONSE = 8'h05;
|
||||
localparam DATA_TOKEN_CMD25 = 8'hfc;
|
||||
localparam STOP_TRAN = 8'hfd;
|
||||
localparam DATA_TOKEN = 8'hfe;
|
||||
localparam WRITE_DATA_RESPONSE = 8'he5;
|
||||
|
||||
// number of bytes to wait after a command before sending the reply
|
||||
localparam NCR = 5+3; // 5 bytes are required (command length)
|
||||
|
||||
+2
-9
@@ -16,13 +16,6 @@ set_location_assignment PIN_V10 -to ADC_SCK
|
||||
set_location_assignment PIN_AC4 -to ADC_SDI
|
||||
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
|
||||
#============================================================
|
||||
@@ -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_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_V12 -to SDRAM_DQ[0]
|
||||
set_location_assignment PIN_E8 -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]
|
||||
|
||||
+5
-1
@@ -25,6 +25,7 @@ set_false_path -from [get_ports {KEY*}]
|
||||
set_false_path -from [get_ports {BTN_*}]
|
||||
set_false_path -to [get_ports {LED_*}]
|
||||
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_L}]
|
||||
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 -to {wcalc[*] hcalc[*]}
|
||||
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*} -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 {arx* ary*}
|
||||
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_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_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*}
|
||||
+183
-88
@@ -72,7 +72,7 @@ module sys_top
|
||||
output [5:0] VGA_R,
|
||||
output [5:0] VGA_G,
|
||||
output [5:0] VGA_B,
|
||||
inout VGA_HS, // VGA_HS is secondary SD card detect when VGA_EN = 1 (inactive)
|
||||
inout VGA_HS,
|
||||
output VGA_VS,
|
||||
input VGA_EN, // active low
|
||||
|
||||
@@ -125,27 +125,23 @@ module sys_top
|
||||
);
|
||||
|
||||
////////////////////// Secondary SD ///////////////////////////////////
|
||||
wire SD_CS, SD_CLK, SD_MOSI;
|
||||
wire SD_CS, SD_CLK, SD_MOSI, SD_MISO, SD_CD;
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
wire sd_miso = SW[3] | SDIO_DAT[0];
|
||||
`else
|
||||
wire sd_miso = 1;
|
||||
`endif
|
||||
wire SD_MISO = mcp_sdcd ? sd_miso : SD_SPI_MISO;
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
assign SDIO_DAT[2:1]= 2'bZZ;
|
||||
assign SDIO_DAT[3] = SW[3] ? 1'bZ : SD_CS;
|
||||
assign SDIO_CLK = SW[3] ? 1'bZ : SD_CLK;
|
||||
assign SDIO_CMD = SW[3] ? 1'bZ : SD_MOSI;
|
||||
assign SD_SPI_CS = mcp_sdcd ? ((~VGA_EN & sog & ~cs1) ? 1'b1 : 1'bZ) : SD_CS;
|
||||
wire sd_cd = SDCD_SPDIF & ~SW[2]; // SW[2]=ON workaround for faulty boards without SD card detect pin.
|
||||
assign SD_CD = mcp_en ? mcp_sdcd : sd_cd;
|
||||
assign SD_MISO = SD_CD | (mcp_en ? SD_SPI_MISO : (VGA_EN | SDIO_DAT[0]));
|
||||
assign SD_SPI_CS = mcp_en ? (mcp_sdcd ? 1'bZ : SD_CS) : (sog & ~cs1 & ~VGA_EN) ? 1'b1 : 1'bZ;
|
||||
assign SD_SPI_CLK = (~mcp_en | mcp_sdcd) ? 1'bZ : SD_CLK;
|
||||
assign SD_SPI_MOSI = (~mcp_en | mcp_sdcd) ? 1'bZ : SD_MOSI;
|
||||
assign {SDIO_CLK,SDIO_CMD,SDIO_DAT} = av_dis ? 6'bZZZZZZ : (mcp_en | sd_cd) ? {vga_g,vga_r,vga_b} : {SD_CLK,SD_MOSI,SD_CS,3'bZZZ};
|
||||
`else
|
||||
assign SD_CD = mcp_sdcd;
|
||||
assign SD_MISO = mcp_sdcd | SD_SPI_MISO;
|
||||
assign SD_SPI_CS = mcp_sdcd ? 1'bZ : SD_CS;
|
||||
`endif
|
||||
|
||||
assign SD_SPI_CLK = mcp_sdcd ? 1'bZ : SD_CLK;
|
||||
assign SD_SPI_MOSI = mcp_sdcd ? 1'bZ : SD_MOSI;
|
||||
`endif
|
||||
|
||||
////////////////////// LEDs/Buttons ///////////////////////////////////
|
||||
|
||||
@@ -157,36 +153,59 @@ wire led_d = led_disk[1] ? ~led_disk[0] : ~(led_disk[0] | gp_out[29]);
|
||||
wire led_u = ~led_user;
|
||||
wire led_locked;
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
assign LED_POWER = (SW[3] | led_p) ? 1'bZ : 1'b0;
|
||||
assign LED_HDD = (SW[3] | led_d) ? 1'bZ : 1'b0;
|
||||
assign LED_USER = (SW[3] | led_u) ? 1'bZ : 1'b0;
|
||||
`endif
|
||||
|
||||
//LEDs on main board
|
||||
//LEDs on de10-nano board
|
||||
assign LED = (led_overtake & led_state) | (~led_overtake & {1'b0,led_locked,1'b0, ~led_p, 1'b0, ~led_d, 1'b0, ~led_u});
|
||||
|
||||
wire btn_r, btn_o, btn_u;
|
||||
`ifdef MISTER_DUAL_SDRAM
|
||||
assign {btn_r,btn_o,btn_u} = SW[3] ? {mcp_btn[1],mcp_btn[2],mcp_btn[0]} : ~{SDRAM2_DQ[9],SDRAM2_DQ[13],SDRAM2_DQ[11]};
|
||||
`else
|
||||
assign {btn_r,btn_o,btn_u} = ~{BTN_RESET,BTN_OSD,BTN_USER} | {mcp_btn[1],mcp_btn[2],mcp_btn[0]};
|
||||
`endif
|
||||
|
||||
wire [2:0] mcp_btn;
|
||||
wire mcp_sdcd;
|
||||
wire mcp_en;
|
||||
wire mcp_mode;
|
||||
mcp23009 mcp23009
|
||||
(
|
||||
.clk(FPGA_CLK2_50),
|
||||
|
||||
.btn(mcp_btn),
|
||||
.led({led_p, led_d, led_u}),
|
||||
.sd_cd(mcp_sdcd),
|
||||
.flg_sd_cd(mcp_sdcd),
|
||||
.flg_present(mcp_en),
|
||||
.flg_mode(mcp_mode),
|
||||
|
||||
.scl(IO_SCL),
|
||||
.sda(IO_SDA)
|
||||
);
|
||||
|
||||
wire io_dig = mcp_en ? mcp_mode : SW[3];
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
wire av_dis = io_dig | VGA_EN;
|
||||
assign LED_POWER = av_dis ? 1'bZ : mcp_en ? de1 : led_p ? 1'bZ : 1'b0;
|
||||
assign LED_HDD = av_dis ? 1'bZ : mcp_en ? (sog & ~cs1) : led_d ? 1'bZ : 1'b0;
|
||||
//assign LED_USER = av_dis ? 1'bZ : mcp_en ? ~vga_tx_clk : led_u ? 1'bZ : 1'b0;
|
||||
assign LED_USER = VGA_TX_CLK;
|
||||
wire BTN_DIS = VGA_EN;
|
||||
`else
|
||||
wire BTN_RESET = 1'b1;
|
||||
wire BTN_OSD = 1'b1;
|
||||
wire BTN_USER = 1'b1;
|
||||
wire BTN_DIS = 1'b1;
|
||||
`endif
|
||||
|
||||
reg BTN_EN = 0;
|
||||
reg [25:0] btn_timeout = 0;
|
||||
initial btn_timeout = 0;
|
||||
always @(posedge FPGA_CLK2_50) begin
|
||||
reg btn_up = 0;
|
||||
reg btn_en = 0;
|
||||
|
||||
btn_up <= BTN_RESET & BTN_OSD & BTN_USER;
|
||||
if(~reset & btn_up & ~&btn_timeout) btn_timeout <= btn_timeout + 1'd1;
|
||||
btn_en <= ~BTN_DIS;
|
||||
BTN_EN <= &btn_timeout & btn_en;
|
||||
end
|
||||
|
||||
wire btn_r = (mcp_en | SW[3]) ? mcp_btn[1] : (BTN_EN & ~BTN_RESET);
|
||||
wire btn_o = (mcp_en | SW[3]) ? mcp_btn[2] : (BTN_EN & ~BTN_OSD );
|
||||
wire btn_u = (mcp_en | SW[3]) ? mcp_btn[0] : (BTN_EN & ~BTN_USER );
|
||||
|
||||
reg btn_user, btn_osd;
|
||||
always @(posedge FPGA_CLK2_50) begin
|
||||
@@ -212,7 +231,7 @@ end
|
||||
|
||||
// gp_in[31] = 0 - quick flag that FPGA is initialized (HPS reads 1 when FPGA is not in user mode)
|
||||
// used to avoid lockups while JTAG loading
|
||||
wire [31:0] gp_in = {1'b0, btn_user | btn[1], btn_osd | btn[0], SW[3], 8'd0, io_ver, io_ack, io_wide, io_dout | io_dout_sys};
|
||||
wire [31:0] gp_in = {1'b0, btn_user | btn[1], btn_osd | btn[0], io_dig, 8'd0, io_ver, io_ack, io_wide, io_dout | io_dout_sys};
|
||||
wire [31:0] gp_out;
|
||||
|
||||
wire [1:0] io_ver = 1; // 0 - obsolete. 1 - optimized HPS I/O. 2,3 - reserved for future.
|
||||
@@ -267,13 +286,13 @@ cyclonev_hps_interface_mpu_general_purpose h2f_gp
|
||||
|
||||
|
||||
reg [15:0] cfg;
|
||||
|
||||
reg cfg_set = 0;
|
||||
wire vga_fb = cfg[12] | vga_force_scaler;
|
||||
|
||||
`ifdef MISTER_DEBUG_NOHDMI
|
||||
wire vga_fb = 0;
|
||||
wire direct_video = 1;
|
||||
`else
|
||||
wire vga_fb = cfg[12] | vga_force_scaler;
|
||||
wire direct_video = cfg[10];
|
||||
`endif
|
||||
|
||||
@@ -281,10 +300,15 @@ wire audio_96k = cfg[6];
|
||||
wire csync_en = cfg[3];
|
||||
wire io_osd_vga = io_ss1 & ~io_ss2;
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
wire forced_scandoubler = cfg[4];
|
||||
wire ypbpr_en = cfg[5];
|
||||
wire sog = cfg[9];
|
||||
`ifdef MISTER_DEBUG_NOHDMI
|
||||
wire vga_scaler = 0;
|
||||
`else
|
||||
wire vga_scaler = cfg[2] | vga_force_scaler;
|
||||
`endif
|
||||
`endif
|
||||
|
||||
reg cfg_custom_t = 0;
|
||||
reg [5:0] cfg_custom_p1;
|
||||
@@ -309,6 +333,7 @@ reg [11:0] vs_line = 0;
|
||||
|
||||
reg scaler_out = 0;
|
||||
reg vrr_mode = 0;
|
||||
wire hdmi_blackout;
|
||||
|
||||
reg [31:0] aflt_rate = 7056000;
|
||||
reg [39:0] acx = 4258969;
|
||||
@@ -370,6 +395,7 @@ always@(posedge clk_sys) begin
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
if(io_din[7:0] == 'h40) io_dout_sys <= fb_crc;
|
||||
`endif
|
||||
if(io_din[7:0] == 'h42) io_dout_sys <= {1'b1, frame_cnt};
|
||||
end
|
||||
else begin
|
||||
cnt <= cnt + 1'd1;
|
||||
@@ -476,18 +502,22 @@ always@(posedge clk_sys) begin
|
||||
endcase
|
||||
end
|
||||
`endif
|
||||
`ifndef MISTER_DISABLE_YC
|
||||
if(cmd == 'h41) begin
|
||||
case(cnt[3:0])
|
||||
`ifndef MISTER_DISABLE_YC
|
||||
0: {pal_en,cvbs,yc_en} <= io_din[2:0];
|
||||
4: ColorBurst_Range[15:0] <= io_din;
|
||||
5: ColorBurst_Range[16] <= io_din[0];
|
||||
`endif
|
||||
// Subcarrier commands (independent of YC module)
|
||||
1: PhaseInc[15:0] <= io_din;
|
||||
2: PhaseInc[31:16] <= io_din;
|
||||
3: PhaseInc[39:32] <= io_din[7:0];
|
||||
4: ColorBurst_Range[15:0] <= io_din;
|
||||
5: ColorBurst_Range[16] <= io_din[0];
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
6: subcarrier <= io_din[0];
|
||||
`endif
|
||||
endcase
|
||||
end
|
||||
`endif
|
||||
end
|
||||
end
|
||||
|
||||
@@ -506,6 +536,15 @@ always@(posedge clk_sys) begin
|
||||
if(~vs_d2 & vs_d1) vs_wait <= 0;
|
||||
end
|
||||
|
||||
reg [7:0] frame_cnt;
|
||||
always @(posedge clk_sys) begin
|
||||
reg vs_r, vs_old;
|
||||
|
||||
vs_r <= vs_fix;
|
||||
if(vs_r == vs_fix) vs_old <= vs_r;
|
||||
if(~vs_old & vs_r) frame_cnt <= frame_cnt + 1'd1;
|
||||
end
|
||||
|
||||
cyclonev_hps_interface_peripheral_uart uart
|
||||
(
|
||||
.ri(0),
|
||||
@@ -655,6 +694,7 @@ wire vbuf_write;
|
||||
wire [23:0] hdmi_data;
|
||||
wire hdmi_vs, hdmi_hs, hdmi_de, hdmi_vbl, hdmi_brd;
|
||||
wire freeze;
|
||||
wire bob_deint;
|
||||
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
wire clk_hdmi = hdmi_clk_out;
|
||||
@@ -689,6 +729,7 @@ ascal
|
||||
.reset_na (~reset_req),
|
||||
.run (1),
|
||||
.freeze (freeze),
|
||||
.bob_deint (bob_deint),
|
||||
|
||||
.i_clk (clk_ihdmi),
|
||||
.i_ce (ce_hpix),
|
||||
@@ -730,6 +771,7 @@ ascal
|
||||
.vmax (vmax),
|
||||
.vrr (vrr_mode),
|
||||
.vrrmax (HEIGHT + VBP + VS[11:0] + 12'd1),
|
||||
.swblack (hdmi_blackout),
|
||||
|
||||
.mode ({~lowlat,LFB_EN ? LFB_FLT : |scaler_flt,2'b00}),
|
||||
.poly_clk (clk_sys),
|
||||
@@ -1065,11 +1107,8 @@ always @(posedge FPGA_CLK1_50) begin
|
||||
old_wait <= adj_waitrequest;
|
||||
if(old_wait & ~adj_waitrequest & gotd) cfg_ready <= 1;
|
||||
end
|
||||
|
||||
`else
|
||||
|
||||
wire cfg_ready = 1;
|
||||
|
||||
`endif
|
||||
|
||||
assign HDMI_I2C_SCL = hdmi_scl_en ? 1'b0 : 1'bZ;
|
||||
@@ -1085,7 +1124,6 @@ cyclonev_hps_interface_peripheral_i2c hdmi_i2c
|
||||
);
|
||||
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
|
||||
`ifdef MISTER_FB
|
||||
reg dis_output;
|
||||
always @(posedge clk_hdmi) begin
|
||||
@@ -1146,10 +1184,10 @@ osd hdmi_osd
|
||||
.vs_out(hdmi_vs_osd),
|
||||
.de_out(hdmi_de_osd)
|
||||
);
|
||||
`endif
|
||||
|
||||
wire hdmi_cs_osd;
|
||||
csync csync_hdmi(clk_hdmi, hdmi_hs_osd, hdmi_vs_osd, hdmi_cs_osd);
|
||||
`endif
|
||||
|
||||
reg [23:0] dv_data;
|
||||
reg dv_hs, dv_vs, dv_de;
|
||||
@@ -1260,10 +1298,17 @@ always @(posedge hdmi_tx_clk) begin
|
||||
hdmi_dv_vs <= dv_vs;
|
||||
hdmi_dv_de <= dv_de;
|
||||
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
hs <= (~vga_fb & direct_video) ? hdmi_dv_hs : (direct_video & csync_en) ? hdmi_cs_osd : hdmi_hs_osd;
|
||||
vs <= (~vga_fb & direct_video) ? hdmi_dv_vs : hdmi_vs_osd;
|
||||
de <= (~vga_fb & direct_video) ? hdmi_dv_de : hdmi_de_osd;
|
||||
d <= (~vga_fb & direct_video) ? hdmi_dv_data : hdmi_data_osd;
|
||||
`else
|
||||
hs <= hdmi_dv_hs;
|
||||
vs <= hdmi_dv_vs;
|
||||
de <= hdmi_dv_de;
|
||||
d <= hdmi_dv_data;
|
||||
`endif
|
||||
|
||||
hdmi_out_hs <= hs;
|
||||
hdmi_out_vs <= vs;
|
||||
@@ -1278,6 +1323,46 @@ assign HDMI_TX_D = hdmi_out_d;
|
||||
|
||||
///////////////////////// VGA output //////////////////////////////////
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
wire vga_tx_clk;
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
cyclonev_clkselect vga_clk_sw
|
||||
(
|
||||
.clkselect({1'b1, ~vga_fb & ~vga_scaler}),
|
||||
.inclk({clk_vid, hdmi_clk_out, 2'b00}),
|
||||
.outclk(vga_tx_clk)
|
||||
);
|
||||
`else
|
||||
assign vga_tx_clk = clk_vid;
|
||||
`endif
|
||||
|
||||
wire VGA_TX_CLK;
|
||||
altddio_out
|
||||
#(
|
||||
.extend_oe_disable("OFF"),
|
||||
.intended_device_family("Cyclone V"),
|
||||
.invert_output("OFF"),
|
||||
.lpm_hint("UNUSED"),
|
||||
.lpm_type("altddio_out"),
|
||||
.oe_reg("UNREGISTERED"),
|
||||
.power_up_high("OFF"),
|
||||
.width(1)
|
||||
)
|
||||
vgaclk_ddr
|
||||
(
|
||||
.datain_h(1'b0),
|
||||
.datain_l(1'b1),
|
||||
.outclock(vga_tx_clk),
|
||||
.dataout(VGA_TX_CLK),
|
||||
.aclr(~mcp_en & ~av_dis),
|
||||
.aset(1'b0),
|
||||
.oe(~av_dis & (mcp_en | ~led_u)),
|
||||
.outclocken(1'b1),
|
||||
.sclr(1'b0),
|
||||
.sset(1'b0)
|
||||
);
|
||||
`endif
|
||||
|
||||
wire [23:0] vga_data_sl;
|
||||
wire vga_de_sl, vga_ce_sl, vga_vs_sl, vga_hs_sl;
|
||||
scanlines #(0) VGA_scanlines
|
||||
@@ -1299,7 +1384,7 @@ scanlines #(0) VGA_scanlines
|
||||
);
|
||||
|
||||
wire [23:0] vga_data_osd;
|
||||
wire vga_vs_osd, vga_hs_osd;
|
||||
wire vga_vs_osd, vga_hs_osd, vga_de_osd;
|
||||
osd vga_osd
|
||||
(
|
||||
.clk_sys(clk_sys),
|
||||
@@ -1317,7 +1402,8 @@ osd vga_osd
|
||||
|
||||
.dout(vga_data_osd),
|
||||
.hs_out(vga_hs_osd),
|
||||
.vs_out(vga_vs_osd)
|
||||
.vs_out(vga_vs_osd),
|
||||
.de_out(vga_de_osd)
|
||||
);
|
||||
|
||||
wire vga_cs_osd;
|
||||
@@ -1328,9 +1414,8 @@ csync csync_vga(clk_vid, vga_hs_osd, vga_vs_osd, vga_cs_osd);
|
||||
reg yc_en;
|
||||
reg cvbs;
|
||||
reg [16:0] ColorBurst_Range;
|
||||
reg [39:0] PhaseInc;
|
||||
wire [23:0] yc_o;
|
||||
wire yc_hs, yc_vs, yc_cs;
|
||||
wire yc_hs, yc_vs, yc_cs, yc_de;
|
||||
|
||||
yc_out yc_out
|
||||
(
|
||||
@@ -1342,18 +1427,34 @@ csync csync_vga(clk_vid, vga_hs_osd, vga_vs_osd, vga_cs_osd);
|
||||
.hsync(vga_hs_osd),
|
||||
.vsync(vga_vs_osd),
|
||||
.csync(vga_cs_osd),
|
||||
.de(vga_de_osd),
|
||||
.dout(yc_o),
|
||||
.din(vga_data_osd),
|
||||
.hsync_o(yc_hs),
|
||||
.vsync_o(yc_vs),
|
||||
.csync_o(yc_cs)
|
||||
.csync_o(yc_cs),
|
||||
.de_o(yc_de)
|
||||
);
|
||||
`endif
|
||||
|
||||
reg [39:0] PhaseInc;
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
// Subcarrier generation for external encoders (independent of YC module)
|
||||
reg subcarrier;
|
||||
|
||||
reg [39:0] sub_accum;
|
||||
always @(posedge clk_vid) sub_accum <= sub_accum + PhaseInc;
|
||||
|
||||
// 1-bit output for positive/negative of wave, no LUT required. Output 1 if disabled for further logic
|
||||
reg subcarrier_out;
|
||||
always @(posedge clk_vid) subcarrier_out <= ~(subcarrier & csync_en & ~ypbpr_en & ~forced_scandoubler & ~vgas_en) | sub_accum[39];
|
||||
|
||||
|
||||
wire VGA_DISABLE;
|
||||
wire [23:0] vgas_o;
|
||||
wire vgas_hs, vgas_vs, vgas_cs;
|
||||
wire vgas_hs, vgas_vs, vgas_cs, vgas_de;
|
||||
`ifndef MISTER_DEBUG_NOHDMI
|
||||
vga_out vga_scaler_out
|
||||
(
|
||||
.clk(clk_hdmi),
|
||||
@@ -1361,15 +1462,20 @@ csync csync_vga(clk_vid, vga_hs_osd, vga_vs_osd, vga_cs_osd);
|
||||
.hsync(hdmi_hs_osd),
|
||||
.vsync(hdmi_vs_osd),
|
||||
.csync(hdmi_cs_osd),
|
||||
.de(hdmi_de_osd),
|
||||
.dout(vgas_o),
|
||||
.din({24{hdmi_de_osd}} & hdmi_data_osd),
|
||||
.hsync_o(vgas_hs),
|
||||
.vsync_o(vgas_vs),
|
||||
.csync_o(vgas_cs)
|
||||
.csync_o(vgas_cs),
|
||||
.de_o(vgas_de)
|
||||
);
|
||||
`else
|
||||
assign {vgas_o, vgas_hs, vgas_vs, vgas_cs, vgas_de} = 0;
|
||||
`endif
|
||||
|
||||
wire [23:0] vga_o, vga_o_t;
|
||||
wire vga_hs, vga_vs, vga_cs, vga_hs_t, vga_vs_t, vga_cs_t;
|
||||
wire vga_hs, vga_vs, vga_cs, vga_de, vga_hs_t, vga_vs_t, vga_cs_t, vga_de_t;
|
||||
vga_out vga_out
|
||||
(
|
||||
.clk(clk_vid),
|
||||
@@ -1377,26 +1483,35 @@ csync csync_vga(clk_vid, vga_hs_osd, vga_vs_osd, vga_cs_osd);
|
||||
.hsync(vga_hs_osd),
|
||||
.vsync(vga_vs_osd),
|
||||
.csync(vga_cs_osd),
|
||||
.de(vga_de_osd),
|
||||
.dout(vga_o_t),
|
||||
.din(vga_data_osd),
|
||||
.hsync_o(vga_hs_t),
|
||||
.vsync_o(vga_vs_t),
|
||||
.csync_o(vga_cs_t)
|
||||
.csync_o(vga_cs_t),
|
||||
.de_o(vga_de_t)
|
||||
);
|
||||
|
||||
`ifndef MISTER_DISABLE_YC
|
||||
assign {vga_o, vga_hs, vga_vs, vga_cs } = ~yc_en ? {vga_o_t, vga_hs_t, vga_vs_t, vga_cs_t } : {yc_o, yc_hs, yc_vs, yc_cs };
|
||||
assign {vga_o, vga_hs, vga_vs, vga_cs, vga_de } = ~yc_en ? {vga_o_t, vga_hs_t, vga_vs_t, vga_cs_t, vga_de_t } : {yc_o, yc_hs, yc_vs, yc_cs, yc_de };
|
||||
`else
|
||||
assign {vga_o, vga_hs, vga_vs, vga_cs } = {vga_o_t, vga_hs_t, vga_vs_t, vga_cs_t } ;
|
||||
assign {vga_o, vga_hs, vga_vs, vga_cs, vga_de } = {vga_o_t, vga_hs_t, vga_vs_t, vga_cs_t, vga_de_t } ;
|
||||
`endif
|
||||
|
||||
wire cs1 = (vga_fb | vga_scaler) ? vgas_cs : vga_cs;
|
||||
wire vgas_en = vga_fb | vga_scaler;
|
||||
|
||||
assign VGA_VS = (VGA_EN | SW[3]) ? 1'bZ : (((vga_fb | vga_scaler) ? (~vgas_vs ^ VS[12]) : VGA_DISABLE ? 1'd1 : ~vga_vs) | csync_en);
|
||||
assign VGA_HS = (VGA_EN | SW[3]) ? 1'bZ : ((vga_fb | vga_scaler) ? ((csync_en ? ~vgas_cs : ~vgas_hs) ^ HS[12]) : VGA_DISABLE ? 1'd1 : (csync_en ? ~vga_cs : ~vga_hs));
|
||||
assign VGA_R = (VGA_EN | SW[3]) ? 6'bZZZZZZ : (vga_fb | vga_scaler) ? vgas_o[23:18] : VGA_DISABLE ? 6'd0 : vga_o[23:18];
|
||||
assign VGA_G = (VGA_EN | SW[3]) ? 6'bZZZZZZ : (vga_fb | vga_scaler) ? vgas_o[15:10] : VGA_DISABLE ? 6'd0 : vga_o[15:10];
|
||||
assign VGA_B = (VGA_EN | SW[3]) ? 6'bZZZZZZ : (vga_fb | vga_scaler) ? vgas_o[7:2] : VGA_DISABLE ? 6'd0 : vga_o[7:2] ;
|
||||
wire cs1 = vgas_en ? vgas_cs : vga_cs;
|
||||
wire de1 = vgas_en ? vgas_de : vga_de;
|
||||
|
||||
assign VGA_VS = av_dis ? 1'bZ :(((vgas_en ? (~vgas_vs ^ VS[12]) : VGA_DISABLE ? 1'd1 : ~vga_vs) | csync_en) & subcarrier_out);
|
||||
assign VGA_HS = av_dis ? 1'bZ : (vgas_en ? ((csync_en ? ~vgas_cs : ~vgas_hs) ^ HS[12]) : VGA_DISABLE ? 1'd1 : (csync_en ? ~vga_cs : ~vga_hs));
|
||||
assign VGA_R = av_dis ? 6'bZZZZZZ : vgas_en ? vgas_o[23:18] : VGA_DISABLE ? 6'd0 : vga_o[23:18];
|
||||
assign VGA_G = av_dis ? 6'bZZZZZZ : vgas_en ? vgas_o[15:10] : VGA_DISABLE ? 6'd0 : vga_o[15:10];
|
||||
assign VGA_B = av_dis ? 6'bZZZZZZ : vgas_en ? vgas_o[7:2] : VGA_DISABLE ? 6'd0 : vga_o[7:2] ;
|
||||
|
||||
wire [1:0] vga_r = vgas_en ? vgas_o[17:16] : VGA_DISABLE ? 2'd0 : vga_o[17:16];
|
||||
wire [1:0] vga_g = vgas_en ? vgas_o[9:8] : VGA_DISABLE ? 2'd0 : vga_o[9:8];
|
||||
wire [1:0] vga_b = vgas_en ? vgas_o[1:0] : VGA_DISABLE ? 2'd0 : vga_o[1:0];
|
||||
`endif
|
||||
|
||||
reg video_sync = 0;
|
||||
@@ -1426,14 +1541,14 @@ end
|
||||
|
||||
///////////////////////// Audio output ////////////////////////////////
|
||||
|
||||
assign SDCD_SPDIF =(SW[3] & ~spdif) ? 1'b0 : 1'bZ;
|
||||
assign SDCD_SPDIF = (mcp_en & ~spdif) ? 1'b0 : 1'bZ;
|
||||
|
||||
`ifndef MISTER_DUAL_SDRAM
|
||||
wire analog_l, analog_r;
|
||||
|
||||
assign AUDIO_SPDIF = SW[3] ? 1'bZ : SW[0] ? HDMI_LRCLK : spdif;
|
||||
assign AUDIO_R = SW[3] ? 1'bZ : SW[0] ? HDMI_I2S : analog_r;
|
||||
assign AUDIO_L = SW[3] ? 1'bZ : SW[0] ? HDMI_SCLK : analog_l;
|
||||
assign AUDIO_SPDIF = av_dis ? 1'bZ : (SW[0] | mcp_en) ? HDMI_LRCLK : spdif;
|
||||
assign AUDIO_R = av_dis ? 1'bZ : (SW[0] | mcp_en) ? HDMI_I2S : analog_r;
|
||||
assign AUDIO_L = av_dis ? 1'bZ : (SW[0] | mcp_en) ? HDMI_SCLK : analog_l;
|
||||
`endif
|
||||
|
||||
assign HDMI_MCLK = clk_audio;
|
||||
@@ -1651,6 +1766,8 @@ emu emu
|
||||
.HDMI_WIDTH(direct_video ? 12'd0 : hdmi_width),
|
||||
.HDMI_HEIGHT(direct_video ? 12'd0 : hdmi_height),
|
||||
.HDMI_FREEZE(freeze),
|
||||
.HDMI_BLACKOUT(hdmi_blackout),
|
||||
.HDMI_BOB_DEINT(bob_deint),
|
||||
|
||||
.CLK_VIDEO(clk_vid),
|
||||
.CE_PIXEL(ce_pix),
|
||||
@@ -1723,7 +1840,7 @@ emu emu
|
||||
.SDRAM2_nRAS(SDRAM2_nRAS),
|
||||
.SDRAM2_nCAS(SDRAM2_nCAS),
|
||||
.SDRAM2_CLK(SDRAM2_CLK),
|
||||
.SDRAM2_EN(SW[3]),
|
||||
.SDRAM2_EN(io_dig),
|
||||
`endif
|
||||
|
||||
.BUTTONS(btn),
|
||||
@@ -1733,11 +1850,7 @@ emu emu
|
||||
.SD_MOSI(SD_MOSI),
|
||||
.SD_MISO(SD_MISO),
|
||||
.SD_CS(SD_CS),
|
||||
`ifdef MISTER_DUAL_SDRAM
|
||||
.SD_CD(mcp_sdcd),
|
||||
`else
|
||||
.SD_CD(mcp_sdcd & (SW[0] ? VGA_HS : (SW[3] | SDCD_SPDIF))),
|
||||
`endif
|
||||
.SD_CD(SD_CD),
|
||||
|
||||
.UART_CTS(uart_rts),
|
||||
.UART_RTS(uart_cts),
|
||||
@@ -1779,24 +1892,6 @@ always @(posedge clk) begin
|
||||
end
|
||||
end
|
||||
|
||||
/*
|
||||
always @(posedge clk) begin
|
||||
integer pos = 0, neg = 0, cnt = 0;
|
||||
reg s1,s2;
|
||||
|
||||
s1 <= sync_in;
|
||||
s2 <= s1;
|
||||
|
||||
if(~s2 & s1) neg <= cnt;
|
||||
if(s2 & ~s1) pos <= cnt;
|
||||
|
||||
cnt <= cnt + 1;
|
||||
if(s2 != s1) cnt <= 0;
|
||||
|
||||
pol <= pos > neg;
|
||||
end
|
||||
*/
|
||||
|
||||
endmodule
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
+6
-3
@@ -7,13 +7,15 @@ module vga_out
|
||||
input hsync,
|
||||
input vsync,
|
||||
input csync,
|
||||
input de,
|
||||
|
||||
input [23:0] din,
|
||||
output [23:0] dout,
|
||||
|
||||
output reg hsync_o,
|
||||
output reg vsync_o,
|
||||
output reg csync_o
|
||||
output reg csync_o,
|
||||
output reg de_o
|
||||
);
|
||||
|
||||
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_2, pb_2, pr_2;
|
||||
reg [23:0] din1, din2;
|
||||
reg hsync2, vsync2, csync2;
|
||||
reg hsync1, vsync1, csync1;
|
||||
reg hsync2, vsync2, csync2, de2;
|
||||
reg hsync1, vsync1, csync1, de1;
|
||||
|
||||
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});
|
||||
@@ -61,6 +63,7 @@ always @(posedge clk) begin
|
||||
hsync_o <= hsync2; hsync2 <= hsync1; hsync1 <= hsync;
|
||||
vsync_o <= vsync2; vsync2 <= vsync1; vsync1 <= vsync;
|
||||
csync_o <= csync2; csync2 <= csync1; csync1 <= csync;
|
||||
de_o <= de2; de2 <= de1; de1 <= de;
|
||||
|
||||
rgb <= din2; din2 <= din1; din1 <= din;
|
||||
end
|
||||
|
||||
+10
-1
@@ -26,6 +26,10 @@ module video_cleaner
|
||||
//optional de
|
||||
input DE_in,
|
||||
|
||||
//optional interlace support
|
||||
input interlace,
|
||||
input f1,
|
||||
|
||||
// video output signals
|
||||
output reg [7:0] VGA_R,
|
||||
output reg [7:0] VGA_G,
|
||||
@@ -56,16 +60,21 @@ always @(posedge clk_vid) begin
|
||||
HBlank_out <= hbl;
|
||||
|
||||
VGA_HS <= hs;
|
||||
if(~VGA_HS & hs) VGA_VS <= vs;
|
||||
|
||||
VGA_R <= R;
|
||||
VGA_G <= G;
|
||||
VGA_B <= B;
|
||||
DE_out <= DE_in;
|
||||
|
||||
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
|
||||
|
||||
endmodule
|
||||
|
||||
|
||||
+21
-10
@@ -170,10 +170,8 @@ reg [11:0] mul_arg1, mul_arg2;
|
||||
wire [23:0] 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
|
||||
reg [11:0] oheight,htarget,wres;
|
||||
reg [11:0] oheight,htarget,wres,hinteger,wideres;
|
||||
reg [12:0] arxf,aryf;
|
||||
reg [3:0] cnt;
|
||||
reg narrow;
|
||||
@@ -264,7 +262,8 @@ always @(posedge CLK_VIDEO) begin
|
||||
// [3] 1080 / 512 * 512 * 4 / 3 / 512 * 512 -> 1024
|
||||
|
||||
7: if(mul_res <= HDMI_WIDTH) begin
|
||||
cnt <= 10;
|
||||
hinteger = mul_res[11:0];
|
||||
cnt <= 12;
|
||||
end
|
||||
|
||||
8: begin
|
||||
@@ -286,8 +285,20 @@ always @(posedge CLK_VIDEO) begin
|
||||
// [3] 1920 / 512 * 512 -> 1536
|
||||
|
||||
10: begin
|
||||
narrow <= ((htarget - mul_res[11:0]) <= (wideres - htarget)) || (wideres > HDMI_WIDTH);
|
||||
wres <= mul_res[11:0] == htarget ? mul_res[11:0] : wideres;
|
||||
hinteger <= mul_res[11:0];
|
||||
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
|
||||
// [1] 1066 - 720 = 346 <= 1440 - 1066 = 374 || 1440 > 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.
|
||||
// otherwise it is set to narrow width that is optimal.
|
||||
|
||||
11: begin
|
||||
13: begin
|
||||
case(SCALE)
|
||||
2: arxf <= {1'b1, mul_res[11:0]};
|
||||
3: arxf <= {1'b1, (wres > HDMI_WIDTH) ? mul_res[11:0] : wres};
|
||||
4: arxf <= {1'b1, narrow ? mul_res[11:0] : wres};
|
||||
2: arxf <= {1'b1, hinteger};
|
||||
3: arxf <= {1'b1, (wres > HDMI_WIDTH) ? hinteger : wres};
|
||||
4: arxf <= {1'b1, narrow ? hinteger : wres};
|
||||
default: arxf <= {1'b1, div_num[11:0]};
|
||||
endcase
|
||||
aryf <= {1'b1, oheight};
|
||||
|
||||
+9
-6
@@ -36,13 +36,15 @@ module yc_out
|
||||
input hsync,
|
||||
input vsync,
|
||||
input csync,
|
||||
input de,
|
||||
|
||||
input [23:0] din,
|
||||
output [23:0] dout,
|
||||
|
||||
output reg hsync_o,
|
||||
output reg vsync_o,
|
||||
output reg csync_o
|
||||
output reg csync_o,
|
||||
output reg de_o
|
||||
);
|
||||
|
||||
wire [7:0] red = din[23:16];
|
||||
@@ -61,6 +63,7 @@ typedef struct {
|
||||
logic hsync;
|
||||
logic vsync;
|
||||
logic csync;
|
||||
logic de;
|
||||
} phase_t;
|
||||
|
||||
localparam MAX_PHASES = 7'd8;
|
||||
@@ -211,11 +214,11 @@ always_ff @(posedge clk) begin
|
||||
end
|
||||
|
||||
// Adjust sync timing correctly
|
||||
phase[1].hsync <= hsync; phase[1].vsync <= vsync; phase[1].csync <= csync;
|
||||
phase[2].hsync <= phase[1].hsync; phase[2].vsync <= phase[1].vsync; phase[2].csync <= phase[1].csync;
|
||||
phase[3].hsync <= phase[2].hsync; phase[3].vsync <= phase[2].vsync; phase[3].csync <= phase[2].csync;
|
||||
phase[4].hsync <= phase[3].hsync; phase[4].vsync <= phase[3].vsync; phase[4].csync <= phase[3].csync;
|
||||
hsync_o <= phase[4].hsync; vsync_o <= phase[4].vsync; csync_o <= phase[4].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].de <= phase[1].de;
|
||||
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].de <= phase[3].de;
|
||||
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user