Timing fixes, Video mode fixes, Sound cleanup, and enabling RS-232 to physical SNAC pins.
1. Overlay support for the detection of no rom loading on power up AND misc
debugging. [done]
2. Fix video HSCREEN 4 mode which is used in some demos and rs-232 terminal
programs. [done]
3. Reworked sound output to faithfully emulate the analog muxing in the coco.
[done]
4. Routing RS-232 tx/rx lines to the SNAC port for initial serial debugging
of Fuji-Net interface. [done - untested]
This commit is contained in:
1 parent
77ee8b8c8c
commit
ede23da6b0
9 files changed
+750
-105
No files matched your search
@@ -241,7 +241,9 @@ localparam CONF_STR = {
|
|||||||
"P2-, -= Debug Menu =-;",
|
"P2-, -= Debug Menu =-;",
|
||||||
"P2-;",
|
"P2-;",
|
||||||
"P2F3,BIN,Load COCO Font;",
|
"P2F3,BIN,Load COCO Font;",
|
||||||
"P2OG,Cart Interrupt Disabled,OFF,ON;",
|
"P2OG,Swap MiSTer Uart,RS CART,Default;",
|
||||||
|
"P2OU,Swap Uart to IO,RS IO,MiSTer;",
|
||||||
|
"P2OT,Display Debug,Off,On;",
|
||||||
"-;",
|
"-;",
|
||||||
"ON,D-Pad Joystick emu,No,Yes;",
|
"ON,D-Pad Joystick emu,No,Yes;",
|
||||||
"O6,Swap Joysticks,Off,On;",
|
"O6,Swap Joysticks,Off,On;",
|
||||||
@@ -270,7 +272,7 @@ localparam CONF_STR = {
|
|||||||
// 0123456789ABCDEFGHIJKLMNOPQRSTUV 0123456789ABCDEFGHIJKLMNOPQRSTUV
|
// 0123456789ABCDEFGHIJKLMNOPQRSTUV 0123456789ABCDEFGHIJKLMNOPQRSTUV
|
||||||
//
|
//
|
||||||
|
|
||||||
// R OOOO OOR OOOTOOOOOOROOOOOO ooo oo oo
|
// R OOOO OOR OOOTOOOOOOROOOOOOOO ooo oo oo
|
||||||
//F FF
|
//F FF
|
||||||
//S SSSSSSS
|
//S SSSSSSS
|
||||||
|
|
||||||
@@ -486,9 +488,11 @@ wire [7:0] g;
|
|||||||
wire [7:0] b;
|
wire [7:0] b;
|
||||||
|
|
||||||
wire easter_egg = status[10];
|
wire easter_egg = status[10];
|
||||||
wire [31:0] probe;
|
wire [6:0] probe_o;
|
||||||
|
wire [6:0] probe_i;
|
||||||
|
|
||||||
assign USER_OUT[6:0] = probe[6:0];
|
assign USER_OUT[6:0] = probe_o[6:0];
|
||||||
|
assign probe_i[6:0] = USER_IN[6:0];
|
||||||
|
|
||||||
wire [71:0] Config_Data;
|
wire [71:0] Config_Data;
|
||||||
|
|
||||||
@@ -506,9 +510,9 @@ coco3fpga coco3 (
|
|||||||
// Reset
|
// Reset
|
||||||
.COCO_RESET_N((~reset & Programmed_RESET_N)),
|
.COCO_RESET_N((~reset & Programmed_RESET_N)),
|
||||||
|
|
||||||
.RED(r),
|
.RED_O(r),
|
||||||
.GREEN(g),
|
.GREEN_O(g),
|
||||||
.BLUE(b),
|
.BLUE_O(b),
|
||||||
|
|
||||||
.EE_N(Programmed_EE),
|
.EE_N(Programmed_EE),
|
||||||
.PHASE(PHASE),
|
.PHASE(PHASE),
|
||||||
@@ -570,7 +574,8 @@ coco3fpga coco3 (
|
|||||||
.sd_buff_din(sd_buff_din),
|
.sd_buff_din(sd_buff_din),
|
||||||
.sd_buff_wr(sd_buff_wr),
|
.sd_buff_wr(sd_buff_wr),
|
||||||
|
|
||||||
.PROBE(probe[31:0]),
|
.PROBE_O(probe_o),
|
||||||
|
.PROBE_I(probe_i),
|
||||||
.clk_Q_out(clk_Q_out),
|
.clk_Q_out(clk_Q_out),
|
||||||
.casdout( casdout),
|
.casdout( casdout),
|
||||||
.cas_relay(cas_relay),
|
.cas_relay(cas_relay),
|
||||||
@@ -608,6 +613,7 @@ coco3fpga coco3 (
|
|||||||
.AUTO_MODE(Auto_Mode),
|
.AUTO_MODE(Auto_Mode),
|
||||||
|
|
||||||
.Config_Data(Config_Data),
|
.Config_Data(Config_Data),
|
||||||
|
.Display_Debug(display_debug),
|
||||||
|
|
||||||
.UART_TXD(UART_TXD),
|
.UART_TXD(UART_TXD),
|
||||||
.UART_RXD(UART_RXD),
|
.UART_RXD(UART_RXD),
|
||||||
@@ -633,7 +639,7 @@ wire AMW_ACK;
|
|||||||
wire [1:0] mpi = status[13:12] + 1'b1;
|
wire [1:0] mpi = status[13:12] + 1'b1;
|
||||||
//wire video=status[14];
|
//wire video=status[14];
|
||||||
wire CASS_REW_RECORD=status[14];
|
wire CASS_REW_RECORD=status[14];
|
||||||
wire cartint=status[16];
|
wire rs_swap=status[16];
|
||||||
wire sg4v6 = status[21];
|
wire sg4v6 = status[21];
|
||||||
|
|
||||||
wire PHASE = status[18];
|
wire PHASE = status[18];
|
||||||
@@ -643,7 +649,8 @@ wire coldboot = status[22];
|
|||||||
wire F_Turbo = status[24];
|
wire F_Turbo = status[24];
|
||||||
wire [2:0] Mem_Size = status[27:25];
|
wire [2:0] Mem_Size = status[27:25];
|
||||||
wire SWAP_M_J = status[28];
|
wire SWAP_M_J = status[28];
|
||||||
|
wire display_debug = status[29];
|
||||||
|
wire UART_INPUT = status[30];
|
||||||
wire digitalJoy = status[23];
|
wire digitalJoy = status[23];
|
||||||
reg [2:0] mpi_d = 2'b00;
|
reg [2:0] mpi_d = 2'b00;
|
||||||
reg first_mpi_chg = 1'b0;
|
reg first_mpi_chg = 1'b0;
|
||||||
@@ -680,7 +687,7 @@ begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
// Set bit 9 to swap serial ports...
|
// Set bit 9 to swap serial ports...
|
||||||
wire [9:0] switch = { 2'b10,art,sg4v6,cartint,CASS_REW_RECORD,mpi,1'b0};
|
wire [9:0] switch = { 1'b0,UART_INPUT,art,sg4v6,rs_swap,CASS_REW_RECORD,mpi,1'b0};
|
||||||
|
|
||||||
|
|
||||||
wire reset = RESET | status[0] | buttons[1];
|
wire reset = RESET | status[0] | buttons[1];
|
||||||
|
|||||||
+18
-17
@@ -1,4 +1,4 @@
|
|||||||
<session jtag_chain="Disabled" jtag_device="" sof_file="">
|
<session jtag_chain="DE-SoC on yoda [USB-1]" jtag_device="@2: 5CSEBA6(.|ES)/5CSEMA6/.. (0x02D020DD)" sof_file="">
|
||||||
<display_tree gui_logging_enabled="0">
|
<display_tree gui_logging_enabled="0">
|
||||||
<display_branch instance="Video1" log="USE_GLOBAL_TEMP" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
|
<display_branch instance="Video1" log="USE_GLOBAL_TEMP" signal_set="USE_GLOBAL_TEMP" trigger="USE_GLOBAL_TEMP"/>
|
||||||
</display_tree>
|
</display_tree>
|
||||||
@@ -75,14 +75,14 @@
|
|||||||
</signal_vec>
|
</signal_vec>
|
||||||
<presentation>
|
<presentation>
|
||||||
<unified_setup_data_view>
|
<unified_setup_data_view>
|
||||||
<node data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
<node data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||||
<node data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
<node data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||||
<node data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
<node data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||||
<node data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
<node data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||||
<node data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
<node data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||||
<node data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
<node data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||||
<node data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
<node data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||||
<node data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
<node data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||||
<node data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
<node data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||||
<node data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
<node data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
||||||
<node data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
<node data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
||||||
@@ -98,14 +98,14 @@
|
|||||||
</node>
|
</node>
|
||||||
</unified_setup_data_view>
|
</unified_setup_data_view>
|
||||||
<data_view>
|
<data_view>
|
||||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||||
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||||
<net data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
<net data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
||||||
<net data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
<net data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
||||||
@@ -121,14 +121,14 @@
|
|||||||
</bus>
|
</bus>
|
||||||
</data_view>
|
</data_view>
|
||||||
<setup_view>
|
<setup_view>
|
||||||
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
<net data_index="2" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|VGA_G[7]" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="2" tap_mode="classic" trigger_index="2" type="unknown"/>
|
||||||
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
<net data_index="4" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_VS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="4" tap_mode="classic" trigger_index="4" type="unknown"/>
|
||||||
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
<net data_index="3" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_HS" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="3" tap_mode="classic" trigger_index="3" type="unknown"/>
|
||||||
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
<net data_index="0" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_DE" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="0" tap_mode="classic" trigger_index="0" type="unknown"/>
|
||||||
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
<net data_index="1" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|VGA_F1" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="1" tap_mode="classic" trigger_index="1" type="unknown"/>
|
||||||
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
<net data_index="8" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="8" tap_mode="classic" trigger_index="8" type="unknown"/>
|
||||||
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
<net data_index="6" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HSync" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="6" tap_mode="classic" trigger_index="6" type="unknown"/>
|
||||||
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="rising edge" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
<net data_index="7" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|VBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="7" tap_mode="classic" trigger_index="7" type="unknown"/>
|
||||||
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
<net data_index="5" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|HBlank" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="5" tap_mode="classic" trigger_index="5" type="unknown"/>
|
||||||
<net data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
<net data_index="17" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|hs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="17" tap_mode="classic" trigger_index="17" type="unknown"/>
|
||||||
<net data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
<net data_index="18" duplicate_name_allowed="false" is_data_input="true" is_node_valid="true" is_selected="false" is_storage_input="true" is_trigger_input="true" level-0="dont_care" name="emu:emu|video_mixer:video_mixer|video_freezer:freezer|vs_out" pwr_level-0="dont_care" pwr_storage-0="dont_care" pwr_storage-1="dont_care" pwr_storage-2="dont_care" storage-0="dont_care" storage-1="dont_care" storage-2="dont_care" storage_index="18" tap_mode="classic" trigger_index="18" type="unknown"/>
|
||||||
@@ -146,12 +146,13 @@
|
|||||||
<trigger_in_editor/>
|
<trigger_in_editor/>
|
||||||
<trigger_out_editor/>
|
<trigger_out_editor/>
|
||||||
</presentation>
|
</presentation>
|
||||||
<trigger CRC="74B35C35" attribute_mem_mode="false" gap_record="true" global_temp="1" is_expanded="true" name="trigger: 2026/01/10 19:34:25 #1" position="pre" power_up_trigger_mode="false" record_data_gap="true" segment_size="2048" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="true" storage_qualifier_port_name="auto_stp_external_storage_qualifier" storage_qualifier_port_tap_mode="classic" trigger_type="circular">
|
<trigger CRC="74B35C35" attribute_mem_mode="false" gap_record="true" global_temp="1" name="trigger: 2026/01/13 02:01:16 #0" position="pre" power_up_trigger_mode="false" record_data_gap="true" segment_size="2048" storage_mode="off" storage_qualifier_disabled="no" storage_qualifier_port_is_pin="true" storage_qualifier_port_name="auto_stp_external_storage_qualifier" storage_qualifier_port_tap_mode="classic" trigger_type="circular">
|
||||||
<power_up_trigger position="pre" storage_qualifier_disabled="no"/>
|
<power_up_trigger position="pre" storage_qualifier_disabled="no"/>
|
||||||
<events use_custom_flow_control="no">
|
<events use_custom_flow_control="no">
|
||||||
<level enabled="yes" name="condition1" type="basic">'emu:emu|video_mixer:video_mixer|VBlank' == rising edge
|
<level enabled="yes" name="condition1" type="basic">'emu:emu|VGA_G[7]' == rising edge
|
||||||
<power_up enabled="yes">
|
<power_up enabled="yes">
|
||||||
</power_up><op_node>
|
</power_up>
|
||||||
|
<op_node>
|
||||||
<op_node left="452" top="174" type="Advanced Trigger Level Result"/>
|
<op_node left="452" top="174" type="Advanced Trigger Level Result"/>
|
||||||
</op_node>
|
</op_node>
|
||||||
</level>
|
</level>
|
||||||
@@ -177,21 +178,21 @@
|
|||||||
</storage_qualifier_level>
|
</storage_qualifier_level>
|
||||||
</storage_qualifier_events>
|
</storage_qualifier_events>
|
||||||
<log>
|
<log>
|
||||||
<data global_temp="1" name="log: Trig @ 2026/01/10 20:52:48 (0:0:0.2 elapsed)" power_up_mode="false" sample_depth="8192" trigger_position="1024">00010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000000010000010000100000001000001000010000000100000000001000000010000000000000000001000000000000000000100000000000000000010000010000000000001000001000010000000100000100001000000010000010000100000001000000000010000000100000000000000000010000000000000000001000000000000000000100000100000000000010000010000100000001000001000010000000100000100001000000010000000000100000001000000000000000000100000000000000000010000000000000000001000001000000000000100000100001000Line truncated
|
<data global_temp="1" name="log: Trig @ 2026/01/13 02:05:12 (0:0:0.2 elapsed)" power_up_mode="false" sample_depth="8192" trigger_position="1024">10000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000000010000000001000000001100010000100000000001001000010000000001100000001000000001000000000100000000110001000010000000000100100001000000000110000000100000000100000000010000000011000100001000000000010010000100000000011000000010000100010000000001000010001101010000100001000001101000010000100001110000001000010001001000000100001000110101000010000100000110100001000010000111000000100001000100100000010000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000000000100011010100000000010000011010000000001000011100000000000100010010000000000010001101010000000001000001101000000000100001110000000000010001001000000000001000110101000000000100000110100000000010000111000000000001000100100000Line truncated
|
||||||
<extradata>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111T11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
<extradata>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111T11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
||||||
</log>
|
</log>
|
||||||
</trigger>
|
</trigger>
|
||||||
</signal_set>
|
</signal_set>
|
||||||
<position_info>
|
<position_info>
|
||||||
<single attribute="active tab" value="0"/>
|
<single attribute="active tab" value="0"/>
|
||||||
<single attribute="data horizontal scroll position" value="945"/>
|
<single attribute="data horizontal scroll position" value="0"/>
|
||||||
<single attribute="data vertical scroll position" value="3"/>
|
<single attribute="data vertical scroll position" value="0"/>
|
||||||
<single attribute="setup horizontal scroll position" value="0"/>
|
<single attribute="setup horizontal scroll position" value="0"/>
|
||||||
<single attribute="setup vertical scroll position" value="4"/>
|
<single attribute="setup vertical scroll position" value="0"/>
|
||||||
<single attribute="zoom level denominator" value="1"/>
|
<single attribute="zoom level denominator" value="1"/>
|
||||||
<single attribute="zoom level numerator" value="8"/>
|
<single attribute="zoom level numerator" value="1"/>
|
||||||
<single attribute="zoom offset denominator" value="1"/>
|
<single attribute="zoom offset denominator" value="1"/>
|
||||||
<single attribute="zoom offset numerator" value="15360"/>
|
<single attribute="zoom offset numerator" value="122880"/>
|
||||||
<multi attribute="timebars" size="2" value="1626,4678"/>
|
<multi attribute="timebars" size="2" value="1626,4678"/>
|
||||||
</position_info>
|
</position_info>
|
||||||
</instance>
|
</instance>
|
||||||
@@ -207,7 +208,7 @@
|
|||||||
<single attribute="jtag widget visible" value="1"/>
|
<single attribute="jtag widget visible" value="1"/>
|
||||||
<single attribute="lock mode" value="0"/>
|
<single attribute="lock mode" value="0"/>
|
||||||
<multi attribute="column width" size="23" value="34,34,443,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,66"/>
|
<multi attribute="column width" size="23" value="34,34,443,74,68,78,95,96,98,98,88,88,110,101,101,101,101,101,101,101,101,107,66"/>
|
||||||
<multi attribute="frame size" size="2" value="1204,672"/>
|
<multi attribute="frame size" size="2" value="1204,686"/>
|
||||||
<multi attribute="jtag widget size" size="2" value="348,135"/>
|
<multi attribute="jtag widget size" size="2" value="348,135"/>
|
||||||
</global_info>
|
</global_info>
|
||||||
</session>
|
</session>
|
||||||
+18
@@ -1,3 +1,21 @@
|
|||||||
|
1. Overlay support for the detection of no rom loading on power up AND misc
|
||||||
|
debugging. [done]
|
||||||
|
2. Fix video HSCREEN 4 mode which is used in some demos and rs-232 terminal
|
||||||
|
programs. [done]
|
||||||
|
3. Reworked sound output to faithfully emulate the analog muxing in the coco.
|
||||||
|
[done]
|
||||||
|
4. Routing RS-232 tx/rx lines to the SNAC port for initial serial debugging
|
||||||
|
of Fuji-Net interface. [done - untested]
|
||||||
|
|
||||||
|
|
||||||
|
To Do...
|
||||||
|
1. Add Fuji-Net port.
|
||||||
|
2. Add Speech / Music cart
|
||||||
|
3. Fix Castle of Tharoggad
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1. Added support for cassette save. To use: A) You have to have a file [anyname.cas]
|
1. Added support for cassette save. To use: A) You have to have a file [anyname.cas]
|
||||||
which is larger than needed. B) Select the file through the UI Menu 'Save
|
which is larger than needed. B) Select the file through the UI Menu 'Save
|
||||||
Cassette'. C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
|
Cassette'. C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
|
||||||
|
|||||||
@@ -35,4 +35,5 @@ set_global_assignment -name VERILOG_FILE rtl/EE_Cold_Bt.v
|
|||||||
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd
|
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd
|
||||||
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd
|
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd
|
||||||
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd
|
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd
|
||||||
|
set_global_assignment -name VHDL_FILE rtl/OVO.vhd
|
||||||
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc
|
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<instance entity-name="altera_pll" version="17.0" >
|
||||||
|
<generic name="debug_print_output" value="false" />
|
||||||
|
<generic name="debug_use_rbc_taf_method" value="false" />
|
||||||
|
<generic name="device_family" value="Cyclone V" />
|
||||||
|
<generic name="device" value="5CEBA2F17A7" />
|
||||||
|
<generic name="gui_device_speed_grade" value="1" />
|
||||||
|
<generic name="gui_pll_mode" value="Integer-N PLL" />
|
||||||
|
<generic name="gui_reference_clock_frequency" value="50.0" />
|
||||||
|
<generic name="gui_channel_spacing" value="0.0" />
|
||||||
|
<generic name="gui_operation_mode" value="direct" />
|
||||||
|
<generic name="gui_feedback_clock" value="Global Clock" />
|
||||||
|
<generic name="gui_fractional_cout" value="32" />
|
||||||
|
<generic name="gui_dsm_out_sel" value="1st_order" />
|
||||||
|
<generic name="gui_use_locked" value="true" />
|
||||||
|
<generic name="gui_en_adv_params" value="false" />
|
||||||
|
<generic name="gui_number_of_clocks" value="4" />
|
||||||
|
<generic name="gui_multiply_factor" value="1" />
|
||||||
|
<generic name="gui_frac_multiply_factor" value="1" />
|
||||||
|
<generic name="gui_divide_factor_n" value="1" />
|
||||||
|
<generic name="gui_cascade_counter0" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency0" value="114.545454" />
|
||||||
|
<generic name="gui_divide_factor_c0" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency0" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units0" value="ps" />
|
||||||
|
<generic name="gui_phase_shift0" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg0" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift0" value="0" />
|
||||||
|
<generic name="gui_duty_cycle0" value="50" />
|
||||||
|
<generic name="gui_cascade_counter1" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency1" value="57.272727" />
|
||||||
|
<generic name="gui_divide_factor_c1" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency1" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units1" value="ps" />
|
||||||
|
<generic name="gui_phase_shift1" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg1" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift1" value="0" />
|
||||||
|
<generic name="gui_duty_cycle1" value="50" />
|
||||||
|
<generic name="gui_cascade_counter2" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency2" value="28.636363" />
|
||||||
|
<generic name="gui_divide_factor_c2" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency2" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units2" value="ps" />
|
||||||
|
<generic name="gui_phase_shift2" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg2" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift2" value="0" />
|
||||||
|
<generic name="gui_duty_cycle2" value="50" />
|
||||||
|
<generic name="gui_cascade_counter3" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency3" value="14.318181" />
|
||||||
|
<generic name="gui_divide_factor_c3" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency3" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units3" value="ps" />
|
||||||
|
<generic name="gui_phase_shift3" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg3" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift3" value="0" />
|
||||||
|
<generic name="gui_duty_cycle3" value="50" />
|
||||||
|
<generic name="gui_cascade_counter4" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency4" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c4" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency4" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units4" value="ps" />
|
||||||
|
<generic name="gui_phase_shift4" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg4" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift4" value="0" />
|
||||||
|
<generic name="gui_duty_cycle4" value="50" />
|
||||||
|
<generic name="gui_cascade_counter5" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency5" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c5" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency5" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units5" value="ps" />
|
||||||
|
<generic name="gui_phase_shift5" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg5" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift5" value="0" />
|
||||||
|
<generic name="gui_duty_cycle5" value="50" />
|
||||||
|
<generic name="gui_cascade_counter6" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency6" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c6" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency6" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units6" value="ps" />
|
||||||
|
<generic name="gui_phase_shift6" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg6" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift6" value="0" />
|
||||||
|
<generic name="gui_duty_cycle6" value="50" />
|
||||||
|
<generic name="gui_cascade_counter7" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency7" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c7" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency7" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units7" value="ps" />
|
||||||
|
<generic name="gui_phase_shift7" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg7" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift7" value="0" />
|
||||||
|
<generic name="gui_duty_cycle7" value="50" />
|
||||||
|
<generic name="gui_cascade_counter8" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency8" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c8" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency8" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units8" value="ps" />
|
||||||
|
<generic name="gui_phase_shift8" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg8" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift8" value="0" />
|
||||||
|
<generic name="gui_duty_cycle8" value="50" />
|
||||||
|
<generic name="gui_cascade_counter9" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency9" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c9" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency9" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units9" value="ps" />
|
||||||
|
<generic name="gui_phase_shift9" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg9" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift9" value="0" />
|
||||||
|
<generic name="gui_duty_cycle9" value="50" />
|
||||||
|
<generic name="gui_cascade_counter10" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency10" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c10" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency10" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units10" value="ps" />
|
||||||
|
<generic name="gui_phase_shift10" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg10" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift10" value="0" />
|
||||||
|
<generic name="gui_duty_cycle10" value="50" />
|
||||||
|
<generic name="gui_cascade_counter11" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency11" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c11" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency11" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units11" value="ps" />
|
||||||
|
<generic name="gui_phase_shift11" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg11" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift11" value="0" />
|
||||||
|
<generic name="gui_duty_cycle11" value="50" />
|
||||||
|
<generic name="gui_cascade_counter12" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency12" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c12" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency12" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units12" value="ps" />
|
||||||
|
<generic name="gui_phase_shift12" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg12" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift12" value="0" />
|
||||||
|
<generic name="gui_duty_cycle12" value="50" />
|
||||||
|
<generic name="gui_cascade_counter13" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency13" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c13" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency13" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units13" value="ps" />
|
||||||
|
<generic name="gui_phase_shift13" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg13" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift13" value="0" />
|
||||||
|
<generic name="gui_duty_cycle13" value="50" />
|
||||||
|
<generic name="gui_cascade_counter14" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency14" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c14" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency14" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units14" value="ps" />
|
||||||
|
<generic name="gui_phase_shift14" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg14" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift14" value="0" />
|
||||||
|
<generic name="gui_duty_cycle14" value="50" />
|
||||||
|
<generic name="gui_cascade_counter15" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency15" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c15" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency15" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units15" value="ps" />
|
||||||
|
<generic name="gui_phase_shift15" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg15" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift15" value="0" />
|
||||||
|
<generic name="gui_duty_cycle15" value="50" />
|
||||||
|
<generic name="gui_cascade_counter16" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency16" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c16" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency16" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units16" value="ps" />
|
||||||
|
<generic name="gui_phase_shift16" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg16" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift16" value="0" />
|
||||||
|
<generic name="gui_duty_cycle16" value="50" />
|
||||||
|
<generic name="gui_cascade_counter17" value="false" />
|
||||||
|
<generic name="gui_output_clock_frequency17" value="100.0" />
|
||||||
|
<generic name="gui_divide_factor_c17" value="1" />
|
||||||
|
<generic name="gui_actual_output_clock_frequency17" value="0 MHz" />
|
||||||
|
<generic name="gui_ps_units17" value="ps" />
|
||||||
|
<generic name="gui_phase_shift17" value="0" />
|
||||||
|
<generic name="gui_phase_shift_deg17" value="0.0" />
|
||||||
|
<generic name="gui_actual_phase_shift17" value="0" />
|
||||||
|
<generic name="gui_duty_cycle17" value="50" />
|
||||||
|
<generic name="gui_pll_auto_reset" value="Off" />
|
||||||
|
<generic name="gui_pll_bandwidth_preset" value="Auto" />
|
||||||
|
<generic name="gui_en_reconf" value="false" />
|
||||||
|
<generic name="gui_en_dps_ports" value="false" />
|
||||||
|
<generic name="gui_en_phout_ports" value="false" />
|
||||||
|
<generic name="gui_phout_division" value="1" />
|
||||||
|
<generic name="gui_mif_generate" value="false" />
|
||||||
|
<generic name="gui_enable_mif_dps" value="false" />
|
||||||
|
<generic name="gui_dps_cntr" value="C0" />
|
||||||
|
<generic name="gui_dps_num" value="1" />
|
||||||
|
<generic name="gui_dps_dir" value="Positive" />
|
||||||
|
<generic name="gui_refclk_switch" value="false" />
|
||||||
|
<generic name="gui_refclk1_frequency" value="100.0" />
|
||||||
|
<generic name="gui_switchover_mode" value="Automatic Switchover" />
|
||||||
|
<generic name="gui_switchover_delay" value="0" />
|
||||||
|
<generic name="gui_active_clk" value="false" />
|
||||||
|
<generic name="gui_clk_bad" value="false" />
|
||||||
|
<generic name="gui_enable_cascade_out" value="false" />
|
||||||
|
<generic name="gui_cascade_outclk_index" value="0" />
|
||||||
|
<generic name="gui_enable_cascade_in" value="false" />
|
||||||
|
<generic name="gui_pll_cascading_mode" value="Create an adjpllin signal to connect with an upstream PLL" />
|
||||||
|
</instance>
|
||||||
+2
-2
@@ -233,7 +233,7 @@ begin
|
|||||||
|
|
||||||
st_2:
|
st_2:
|
||||||
begin
|
begin
|
||||||
if (timer[18] == 1'b1) // 300ms time passed
|
if (timer[17] == 1'b1) // 300ms time passed
|
||||||
begin
|
begin
|
||||||
key_up_down <= RELEASE_KEY;
|
key_up_down <= RELEASE_KEY;
|
||||||
state <= st_3;
|
state <= st_3;
|
||||||
@@ -242,7 +242,7 @@ begin
|
|||||||
|
|
||||||
st_3:
|
st_3:
|
||||||
begin
|
begin
|
||||||
if (timer[18] == 1'b0) // 300ms time passed
|
if (timer[17] == 1'b0) // 300ms time passed
|
||||||
begin
|
begin
|
||||||
shift <= 1'b0;
|
shift <= 1'b0;
|
||||||
timer_enable <= 1'b0;
|
timer_enable <= 1'b0;
|
||||||
|
|||||||
+43
-19
@@ -125,7 +125,9 @@ HBORDER,
|
|||||||
VBORDER,
|
VBORDER,
|
||||||
HBORDER_INT,
|
HBORDER_INT,
|
||||||
VBORDER_INT,
|
VBORDER_INT,
|
||||||
art
|
art,
|
||||||
|
PIXEL_COUNT,
|
||||||
|
LINE
|
||||||
);
|
);
|
||||||
|
|
||||||
input MASTER_CLK;
|
input MASTER_CLK;
|
||||||
@@ -133,6 +135,11 @@ output PIX_CLK;
|
|||||||
reg PIX_CLK;
|
reg PIX_CLK;
|
||||||
input RESET_N;
|
input RESET_N;
|
||||||
|
|
||||||
|
output [10:0] PIXEL_COUNT;
|
||||||
|
reg [10:0] PIXEL_COUNT;
|
||||||
|
output [9:0] LINE;
|
||||||
|
reg [9:0] LINE;
|
||||||
|
|
||||||
output [9:0] COLOR;
|
output [9:0] COLOR;
|
||||||
reg [9:0] COLOR;
|
reg [9:0] COLOR;
|
||||||
output HSYNC_N;
|
output HSYNC_N;
|
||||||
@@ -184,10 +191,8 @@ reg VBORDER_INT;
|
|||||||
input [1:0] art;
|
input [1:0] art;
|
||||||
|
|
||||||
//reg HBLANKING;
|
//reg HBLANKING;
|
||||||
reg [9:0] LINE;
|
|
||||||
reg [3:0] VLPR;
|
reg [3:0] VLPR;
|
||||||
//reg [3:0] COCO_VLPR;
|
//reg [3:0] COCO_VLPR;
|
||||||
reg [10:0] PIXEL_COUNT;
|
|
||||||
reg [15:0] CHAR_LATCH_0_TMP;
|
reg [15:0] CHAR_LATCH_0_TMP;
|
||||||
reg [15:0] CHAR_LATCH_1_TMP;
|
reg [15:0] CHAR_LATCH_1_TMP;
|
||||||
reg [15:0] CHAR_LATCH_2_TMP;
|
reg [15:0] CHAR_LATCH_2_TMP;
|
||||||
@@ -1508,22 +1513,41 @@ assign PIXEL_X =
|
|||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101001) ? {6'h00,CHAR_LATCH_0[9:8]}:
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101001) ? {6'h00,CHAR_LATCH_0[9:8]}:
|
||||||
|
|
||||||
//4 Color 512/640 = 640/4 = 160
|
//4 Color 512/640 = 640/4 = 160
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_0[9:8]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_0[9:8]}:
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}:
|
//({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}:
|
||||||
|
|
||||||
|
// Update by G. Becker on 4/18/26 to fix HSCREEN 4 mode (640 x 192) 4 color mode.
|
||||||
|
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000101101) ? {6'h00,CHAR_LATCH_0[7:6]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00010101101) ? {6'h00,CHAR_LATCH_0[5:4]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00100101101) ? {6'h00,CHAR_LATCH_0[3:2]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00110101101) ? {6'h00,CHAR_LATCH_0[1:0]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01000101101) ? {6'h00,CHAR_LATCH_0[15:14]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01010101101) ? {6'h00,CHAR_LATCH_0[13:12]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01100101101) ? {6'h00,CHAR_LATCH_0[11:10]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b01110101101) ? {6'h00,CHAR_LATCH_0[9:8]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10000101101) ? {6'h00,CHAR_LATCH_1[7:6]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10010101101) ? {6'h00,CHAR_LATCH_1[5:4]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10100101101) ? {6'h00,CHAR_LATCH_1[3:2]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b10110101101) ? {6'h00,CHAR_LATCH_1[1:0]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11000101101) ? {6'h00,CHAR_LATCH_1[15:14]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11010101101) ? {6'h00,CHAR_LATCH_1[13:12]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11100101101) ? {6'h00,CHAR_LATCH_1[11:10]}:
|
||||||
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b11110101101) ? {6'h00,CHAR_LATCH_1[9:8]}:
|
||||||
|
|
||||||
//16 Color 32/40 = 40/2 = 20
|
//16 Color 32/40 = 40/2 = 20
|
||||||
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000100010) ? {4'h0,CHAR_LATCH_0[7:4]}:
|
({PIXEL_COUNT[3:0],COCO1,BP,HRES[3:1],CRES} == 11'b00000100010) ? {4'h0,CHAR_LATCH_0[7:4]}:
|
||||||
|
|||||||
+195
@@ -0,0 +1,195 @@
|
|||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Overlay
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- DO 10/2017
|
||||||
|
-- SH 5/15/26 Modified for COCO3
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
LIBRARY ieee;
|
||||||
|
USE ieee.std_logic_1164.ALL;
|
||||||
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
|
ENTITY ovo IS
|
||||||
|
GENERIC (
|
||||||
|
COLS : natural :=32;
|
||||||
|
LINES : natural :=2;
|
||||||
|
RGB : unsigned(23 DOWNTO 0) :=x"FFFFFF";
|
||||||
|
H_OFFSET : natural :=4;
|
||||||
|
V_OFFSET : natural :=45
|
||||||
|
);
|
||||||
|
|
||||||
|
PORT (
|
||||||
|
-- VGA IN
|
||||||
|
i_r : IN unsigned(7 DOWNTO 0);
|
||||||
|
i_g : IN unsigned(7 DOWNTO 0);
|
||||||
|
i_b : IN unsigned(7 DOWNTO 0);
|
||||||
|
-- i_hs : IN std_logic;
|
||||||
|
-- i_vs : IN std_logic;
|
||||||
|
-- i_de : IN std_logic;
|
||||||
|
-- i_en : IN std_logic;
|
||||||
|
i_clk : IN std_logic;
|
||||||
|
|
||||||
|
i_Hcount : IN unsigned(10 DOWNTO 0);
|
||||||
|
i_VCount : IN unsigned(9 DOWNTO 0);
|
||||||
|
|
||||||
|
-- VGA_OUT
|
||||||
|
o_r : OUT unsigned(7 DOWNTO 0);
|
||||||
|
o_g : OUT unsigned(7 DOWNTO 0);
|
||||||
|
o_b : OUT unsigned(7 DOWNTO 0);
|
||||||
|
-- o_hs : OUT std_logic;
|
||||||
|
-- o_vs : OUT std_logic;
|
||||||
|
-- o_de : OUT std_logic;
|
||||||
|
|
||||||
|
-- Control
|
||||||
|
ena : IN std_logic; -- Overlay ON/OFF
|
||||||
|
|
||||||
|
-- Probes
|
||||||
|
in0 : IN unsigned(COLS*5-1 downto 0);
|
||||||
|
in1 : IN unsigned(COLS*5-1 downto 0)
|
||||||
|
);
|
||||||
|
END ENTITY ovo;
|
||||||
|
|
||||||
|
--##############################################################################
|
||||||
|
ARCHITECTURE rtl OF ovo IS
|
||||||
|
TYPE arr_slv8 IS ARRAY (natural RANGE <>) OF unsigned(7 DOWNTO 0);
|
||||||
|
CONSTANT chars : arr_slv8 :=(
|
||||||
|
x"3E", x"63", x"73", x"7B", x"6F", x"67", x"3E", x"00", -- 0
|
||||||
|
x"0C", x"0E", x"0C", x"0C", x"0C", x"0C", x"3F", x"00", -- 1
|
||||||
|
x"1E", x"33", x"30", x"1C", x"06", x"33", x"3F", x"00", -- 2
|
||||||
|
x"1E", x"33", x"30", x"1C", x"30", x"33", x"1E", x"00", -- 3
|
||||||
|
x"38", x"3C", x"36", x"33", x"7F", x"30", x"78", x"00", -- 4
|
||||||
|
x"3F", x"03", x"1F", x"30", x"30", x"33", x"1E", x"00", -- 5
|
||||||
|
x"1C", x"06", x"03", x"1F", x"33", x"33", x"1E", x"00", -- 6
|
||||||
|
x"3F", x"33", x"30", x"18", x"0C", x"0C", x"0C", x"00", -- 7
|
||||||
|
x"1E", x"33", x"33", x"1E", x"33", x"33", x"1E", x"00", -- 8
|
||||||
|
x"1E", x"33", x"33", x"3E", x"30", x"18", x"0E", x"00", -- 9
|
||||||
|
x"0C", x"1E", x"33", x"33", x"3F", x"33", x"33", x"00", -- A
|
||||||
|
x"3F", x"66", x"66", x"3E", x"66", x"66", x"3F", x"00", -- B
|
||||||
|
x"3C", x"66", x"03", x"03", x"03", x"66", x"3C", x"00", -- C
|
||||||
|
x"1F", x"36", x"66", x"66", x"66", x"36", x"1F", x"00", -- D
|
||||||
|
x"7F", x"46", x"16", x"1E", x"16", x"46", x"7F", x"00", -- E
|
||||||
|
x"7F", x"46", x"16", x"1E", x"16", x"06", x"0F", x"00", -- F
|
||||||
|
x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", --' ' 10
|
||||||
|
x"00", x"00", x"3F", x"00", x"00", x"3F", x"00", x"00", -- = 11
|
||||||
|
x"00", x"0C", x"0C", x"3F", x"0C", x"0C", x"00", x"00", -- + 12
|
||||||
|
x"00", x"00", x"00", x"3F", x"00", x"00", x"00", x"00", -- - 13
|
||||||
|
x"18", x"0C", x"06", x"03", x"06", x"0C", x"18", x"00", -- < 14
|
||||||
|
x"06", x"0C", x"18", x"30", x"18", x"0C", x"06", x"00", -- > 15
|
||||||
|
x"08", x"1C", x"36", x"63", x"41", x"00", x"00", x"00", -- ^ 16
|
||||||
|
x"08", x"1C", x"36", x"63", x"41", x"00", x"00", x"00", -- v 17
|
||||||
|
x"18", x"0C", x"06", x"06", x"06", x"0C", x"18", x"00", -- ( 18
|
||||||
|
x"06", x"0C", x"18", x"18", x"18", x"0C", x"06", x"00", -- ) 19
|
||||||
|
x"00", x"0C", x"0C", x"00", x"00", x"0C", x"0C", x"00", -- : 1A
|
||||||
|
-- x"00", x"00", x"00", x"00", x"00", x"0C", x"0C", x"00", -- . 1B
|
||||||
|
-- x"00", x"00", x"00", x"00", x"00", x"0C", x"0C", x"06", -- , 1C
|
||||||
|
-- x"1E", x"33", x"30", x"18", x"0C", x"00", x"0C", x"00", -- ? 1D
|
||||||
|
-- x"18", x"18", x"18", x"00", x"18", x"18", x"18", x"00", -- | 1E
|
||||||
|
x"41", x"43", x"45", x"49", x"51", x"61", x"41", x"00", -- N 1B
|
||||||
|
x"3E", x"41", x"41", x"41", x"41", x"41", x"3E", x"00", -- O 1C
|
||||||
|
x"3F", x"41", x"41", x"3F", x"11", x"21", x"41", x"00", -- R 1D
|
||||||
|
x"41", x"63", x"55", x"49", x"41", x"41", x"41", x"00", -- M 1E
|
||||||
|
x"36", x"36", x"7F", x"36", x"7F", x"36", x"36", x"00"); -- # 1F
|
||||||
|
SIGNAL vcpt,hcpt,hcpt2 : natural RANGE 0 TO 4095;
|
||||||
|
SIGNAL vin0,vin1 : unsigned(0 TO COLS*5-1);
|
||||||
|
SIGNAL t_r,t_g,t_b : unsigned(7 DOWNTO 0);
|
||||||
|
SIGNAL t_hs,t_vs,t_de : std_logic;
|
||||||
|
SIGNAL col : unsigned(7 DOWNTO 0);
|
||||||
|
SIGNAL de : std_logic;
|
||||||
|
|
||||||
|
SIGNAL in0s,in1s : unsigned(in0'range);
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
in0s<=in0 WHEN rising_edge(i_clk);
|
||||||
|
in1s<=in1 WHEN rising_edge(i_clk);
|
||||||
|
----------------------------------------------------------
|
||||||
|
Megamix:PROCESS(i_clk) IS
|
||||||
|
VARIABLE vin_v : unsigned(0 TO 32*5-1);
|
||||||
|
VARIABLE char_v : unsigned(4 DOWNTO 0);
|
||||||
|
BEGIN
|
||||||
|
IF rising_edge(i_clk) THEN
|
||||||
|
--IF i_en='1' THEN
|
||||||
|
----------------------------------
|
||||||
|
-- Propagate VGA signals. 2 cycles delay
|
||||||
|
t_r<=i_r;
|
||||||
|
t_g<=i_g;
|
||||||
|
t_b<=i_b;
|
||||||
|
-- t_hs<=i_hs;
|
||||||
|
-- t_vs<=i_vs;
|
||||||
|
-- t_de<=i_de;
|
||||||
|
|
||||||
|
o_r<=t_r;
|
||||||
|
o_g<=t_g;
|
||||||
|
o_b<=t_b;
|
||||||
|
-- o_hs<=t_hs;
|
||||||
|
-- o_vs<=t_vs;
|
||||||
|
-- o_de<=t_de;
|
||||||
|
|
||||||
|
----------------------------------
|
||||||
|
-- Latch sampled values during vertical sync
|
||||||
|
-- IF i_vs='1' THEN
|
||||||
|
IF (i_Hcount="000000000" and i_VCount="000000000") THEN
|
||||||
|
vin0<=in0s;
|
||||||
|
vin1<=in1s;
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
----------------------------------
|
||||||
|
-- IF i_vs='1' THEN
|
||||||
|
-- vcpt<=0;
|
||||||
|
-- de<='0';
|
||||||
|
-- ELSIF i_hs='1' AND t_hs='0' AND de='1' THEN
|
||||||
|
-- vcpt<=(vcpt+1) MOD 4096;
|
||||||
|
-- END IF;
|
||||||
|
-- if (i_Hcount < 148) then -- 148 = video left border
|
||||||
|
-- if (i_Hcount < 148) then -- 148 = video left border
|
||||||
|
if (i_Hcount < H_OFFSET) then -- 4 = video left border
|
||||||
|
hcpt <= COLS*8;
|
||||||
|
else
|
||||||
|
hcpt <= to_integer(i_Hcount)-H_OFFSET;
|
||||||
|
end if;
|
||||||
|
-- if (i_Vcount < 16) then
|
||||||
|
-- if (i_Vcount < 16) then
|
||||||
|
if (i_Vcount < V_OFFSET) then
|
||||||
|
vcpt <= 512;
|
||||||
|
else
|
||||||
|
vcpt <= to_integer(i_Vcount)-V_OFFSET;
|
||||||
|
end if;
|
||||||
|
|
||||||
|
----------------------------------
|
||||||
|
IF (vcpt/8) MOD 2=0 THEN
|
||||||
|
vin_v:=vin0;
|
||||||
|
ELSE
|
||||||
|
vin_v:=vin1;
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
-- IF i_hs='1' THEN
|
||||||
|
-- hcpt<=0;
|
||||||
|
-- ELSIF i_de='1' THEN
|
||||||
|
-- hcpt<=(hcpt+1) MOD 4096;
|
||||||
|
-- de<='1';
|
||||||
|
-- END IF;
|
||||||
|
hcpt2<=hcpt;
|
||||||
|
|
||||||
|
----------------------------------
|
||||||
|
-- Pick characters
|
||||||
|
IF hcpt<COLS * 8 AND vcpt<LINES * 8 THEN
|
||||||
|
-- no=> need to reverse string so 0-4 is left (not right!)
|
||||||
|
char_v:=vin_v((hcpt/8)*5 TO (hcpt/8)*5+4);
|
||||||
|
-- char_v:=vin_v(((COLS-1) - (hcpt/8))*5 TO ((COLS-1) - (hcpt/8))*5+4);
|
||||||
|
ELSE
|
||||||
|
char_v:="10000"; -- " " : Blank character
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
col<=chars(to_integer(char_v)*8+(vcpt MOD 8));
|
||||||
|
|
||||||
|
----------------------------------
|
||||||
|
-- Insert Overlay
|
||||||
|
IF ena='1' THEN
|
||||||
|
IF col(hcpt2 MOD 8)='1' THEN
|
||||||
|
o_r<=RGB(23 DOWNTO 16);
|
||||||
|
o_g<=RGB(15 DOWNTO 8);
|
||||||
|
o_b<=RGB( 7 DOWNTO 0);
|
||||||
|
END IF;
|
||||||
|
END IF;
|
||||||
|
--END IF;
|
||||||
|
END IF;
|
||||||
|
END PROCESS Megamix;
|
||||||
|
END ARCHITECTURE rtl;
|
||||||
+251
-56
@@ -87,9 +87,9 @@ input COCO_RESET_N,
|
|||||||
|
|
||||||
// Video
|
// Video
|
||||||
|
|
||||||
output reg [7:0] RED,
|
output reg [7:0] RED_O,
|
||||||
output reg [7:0] GREEN,
|
output reg [7:0] GREEN_O,
|
||||||
output reg [7:0] BLUE,
|
output reg [7:0] BLUE_O,
|
||||||
|
|
||||||
output reg H_SYNC,
|
output reg H_SYNC,
|
||||||
output reg V_SYNC,
|
output reg V_SYNC,
|
||||||
@@ -106,6 +106,8 @@ input ps2_data,
|
|||||||
|
|
||||||
input [24:0] ps2_mouse,
|
input [24:0] ps2_mouse,
|
||||||
|
|
||||||
|
input Display_Debug,
|
||||||
|
|
||||||
// RS-232
|
// RS-232
|
||||||
output UART_TXD,
|
output UART_TXD,
|
||||||
input UART_RXD,
|
input UART_RXD,
|
||||||
@@ -170,7 +172,8 @@ inout [7:0] GPIO,
|
|||||||
// Misc
|
// Misc
|
||||||
input EE_N,
|
input EE_N,
|
||||||
input PHASE,
|
input PHASE,
|
||||||
output [31:0] PROBE,
|
output [6:0] PROBE_O,
|
||||||
|
input [6:0] PROBE_I,
|
||||||
|
|
||||||
// Cassette Input linkage
|
// Cassette Input linkage
|
||||||
output clk_Q_out,
|
output clk_Q_out,
|
||||||
@@ -685,18 +688,28 @@ rtc #(50000000) CC3_rtc(
|
|||||||
|
|
||||||
|
|
||||||
// Probe's defined
|
// Probe's defined
|
||||||
//assign PROBE[6:0] = {CART1_POL, CART1_BUF_RESET_N, CART1_FIRQ_STAT_N, CART1_CLK_N, CART1_FIRQ_N, RESET_N, PH_2};
|
assign PROBE_O[6:0] = {TMR_CLK, DATA_IN[5], RST_FF93_N_SFT[0], RST_FF93_N, !TIMER3_FIRQ_N, 1'b1, UART_TXD};
|
||||||
//assign PROBE[7:0] = {1'b0, CART1_POL, CART1_FIRQ_N, CART1_FIRQ_BUF[0], CART1_CLK_N_D, CART1_FIRQ_RESET_N, CART1_CLK_N, PH_2};
|
|
||||||
assign PROBE[7:0] = {1'b0, TMR_CLK, DATA_IN[5], RST_FF93_N_SFT[0], RST_FF93_N, !TIMER3_FIRQ_N, VSYNC_INT_N, TIMER_INT_N};
|
|
||||||
assign PROBE[15:8] = 8'h00;
|
|
||||||
assign PROBE[23:16] = 8'h00;
|
|
||||||
//assign PROBE[31:24] = {3'b000, DATA_OUT[3], MOTOR, DRIVE_SEL_EXT[0], HDD_EN, ADDRESS[0]};
|
|
||||||
assign PROBE[31:24] = {8'h00};
|
|
||||||
|
|
||||||
assign clk_sys = CLK_57;
|
assign clk_sys = CLK_57;
|
||||||
|
|
||||||
assign BUTTON_N[3:0] = {COCO_RESET_N, 2'b1,EE_N};
|
assign BUTTON_N[3:0] = {COCO_RESET_N, 2'b1,EE_N};
|
||||||
|
|
||||||
|
wire UART_TXD_I;
|
||||||
|
wire UART_RXD_I;
|
||||||
|
|
||||||
|
assign UART_TXD = SWITCH[4]? coco_rs232_out:
|
||||||
|
UART_TXD_I;
|
||||||
|
|
||||||
|
assign uart_input = SWITCH[8]? PROBE_I[1]:
|
||||||
|
UART_RXD;
|
||||||
|
|
||||||
|
|
||||||
|
wire uart_input;
|
||||||
|
|
||||||
|
assign coco_rs232_in = uart_input;
|
||||||
|
assign UART_RXD_I = uart_input;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* RAM signals
|
* RAM signals
|
||||||
@@ -771,9 +784,9 @@ assign CART_SEL = (ADDRESS[15:8] == 8'b1
|
|||||||
//11 32 External
|
//11 32 External
|
||||||
|
|
||||||
|
|
||||||
assign FLASH_ADDRESS = ENA_DSK ? {9'b000000100, ADDRESS[12:0]}: //8K Disk BASIC 8K Slot 4
|
assign FLASH_ADDRESS = ENA_DSK ? {9'b000000000, ADDRESS[12:0]}: //8K Disk BASIC 8K Slot 4
|
||||||
ENA_DISK2 ? {9'b000000100, ADDRESS[12:0]}: //[maps to same disk rom]
|
ENA_DISK2 ? {9'b000000000, ADDRESS[12:0]}: //[maps to same disk rom]
|
||||||
({ENA_PAK, ROM[1]} == 2'b10) ? {5'b00000,ROM_BANK, ADDRESS[13:0]}: //16K External R CART ROM
|
({ENA_PAK, ROM[1]} == 2'b10) ? {5'b00000,ROM_BANK, ADDRESS[13:0]}: //16K External R CART ROM
|
||||||
({ENA_PAK, ROM} == 3'b111) ? {4'b0000,ROM_BANK, ~ADDRESS[14], ADDRESS[13:0]}: //32K External R CART ROM
|
({ENA_PAK, ROM} == 3'b111) ? {4'b0000,ROM_BANK, ~ADDRESS[14], ADDRESS[13:0]}: //32K External R CART ROM
|
||||||
{7'b0000000,ADDRESS[14:0]}; //32K Internal COCO3 ROM
|
{7'b0000000,ADDRESS[14:0]}; //32K Internal COCO3 ROM
|
||||||
|
|
||||||
@@ -804,6 +817,25 @@ wire COCO3_ROM_WRITE = (ioctl_index[7:0] == {BOOT0, BOOT}) & ioctl_wr;
|
|||||||
wire COCO3_DISKROM_WRITE = (ioctl_index[7:0] == {BOOT1, BOOT}) & ioctl_wr;
|
wire COCO3_DISKROM_WRITE = (ioctl_index[7:0] == {BOOT1, BOOT}) & ioctl_wr;
|
||||||
wire COCO3_CART_WRITE = (ioctl_index[5:0] == 6'd1) & ioctl_wr & !cart_lock;
|
wire COCO3_CART_WRITE = (ioctl_index[5:0] == 6'd1) & ioctl_wr & !cart_lock;
|
||||||
|
|
||||||
|
reg rom_loaded = 1'b0;
|
||||||
|
|
||||||
|
always @(negedge clk_sys)
|
||||||
|
begin
|
||||||
|
if({ioctl_addr[14], COCO3_ROM_WRITE} == 2'b11)
|
||||||
|
rom_loaded <= 1'b1;
|
||||||
|
end
|
||||||
|
|
||||||
|
// A decision.
|
||||||
|
// Looking at this logic it is fairly obvious that the 8Kx8 ROM is not needed.
|
||||||
|
// Physically (bus wise) it sits in the same place as the CART rom and is obviously
|
||||||
|
// smaller. I have made these changes at least twice during the development of
|
||||||
|
// this code. While it works and saves the resources of a 8kx8 sram, it does not
|
||||||
|
// work well from a systems perspective. With only 1 rom, when you load a cart
|
||||||
|
// then go back to a slot 2/4 disk system you have no os. So now you have to load
|
||||||
|
// boot1.bin as a cart from slot 3, then change back to 2/4 to restore dos. No real
|
||||||
|
// way to fix it. I could put dos at the top 8K of the 128K, then only 128K carts
|
||||||
|
// would cause a issue. But there still is an issue which would need to be explained.
|
||||||
|
// I choose not, along with this explanation why. SRH 5/29/26
|
||||||
|
|
||||||
COCO_ROM_32K CC3_ROM(
|
COCO_ROM_32K CC3_ROM(
|
||||||
.ADDR(FLASH_ADDRESS[14:0]),
|
.ADDR(FLASH_ADDRESS[14:0]),
|
||||||
@@ -814,6 +846,8 @@ COCO_ROM_32K CC3_ROM(
|
|||||||
.WRITE(COCO3_ROM_WRITE)
|
.WRITE(COCO3_ROM_WRITE)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// DOS Cart for slot 2/4
|
||||||
|
|
||||||
COCO_ROM_8K CC3_DISK_ROM(
|
COCO_ROM_8K CC3_DISK_ROM(
|
||||||
.ADDR(FLASH_ADDRESS[12:0]),
|
.ADDR(FLASH_ADDRESS[12:0]),
|
||||||
.DATA(COCO3_DISK_ROM_DATA),
|
.DATA(COCO3_DISK_ROM_DATA),
|
||||||
@@ -824,10 +858,9 @@ COCO_ROM_8K CC3_DISK_ROM(
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
assign FLASH_DATA = ENA_PAK ? CART_DATA:
|
assign FLASH_DATA = ENA_PAK ? CART_DATA:
|
||||||
(FLASH_ADDRESS[15] == 1'b0) ? COCO3_ROM_DATA:
|
(ENA_DSK || ENA_DISK2) ? COCO3_DISK_ROM_DATA:
|
||||||
(FLASH_ADDRESS[15:13] == 3'b100) ? COCO3_DISK_ROM_DATA:
|
COCO3_ROM_DATA;
|
||||||
8'b00000000;
|
|
||||||
|
|
||||||
|
|
||||||
COCO_ROM_CART CC3_ROM_CART(
|
COCO_ROM_CART CC3_ROM_CART(
|
||||||
@@ -863,7 +896,10 @@ assign SDC_EN_CS = ({MPI_SCS, ADDRESS[15:5]} == 13'b0111111111010) ? 1'b1:
|
|||||||
1'b0;
|
1'b0;
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
assign RS232_EN = ({MPI_SCS, ADDRESS[15:2]} == 16'b0011111111011010) ? 1'b1: //FF68-FF6B - Now in slot 1
|
//assign RS232_EN = ({MPI_SCS, ADDRESS[15:2]} == 16'b0011111111011010) ? 1'b1: //FF68-FF6B - Now in slot 1
|
||||||
|
// 1'b0 ;
|
||||||
|
|
||||||
|
assign RS232_EN = ({MPI_SCS[0], ADDRESS[15:2]} == 15'b111111111011010) ? 1'b1: //FF68-FF6B - Now in slot 2 and 4
|
||||||
1'b0;
|
1'b0;
|
||||||
|
|
||||||
assign SLOT3_HW = ({SWITCH[2:1], ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F Ensure this only appears in slot 3 PHYSICALLY
|
assign SLOT3_HW = ({SWITCH[2:1], ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F Ensure this only appears in slot 3 PHYSICALLY
|
||||||
@@ -1134,13 +1170,13 @@ assign DATA_REG2 = !DDR2 ? DD_REG2:
|
|||||||
KEY_COLUMN;
|
KEY_COLUMN;
|
||||||
|
|
||||||
assign DATA_REG3 = !DDR3 ? DD_REG3:
|
assign DATA_REG3 = !DDR3 ? DD_REG3:
|
||||||
{DTOA_CODE, 1'b1, casdout};
|
{DTOA_CODE, coco_rs232_out, casdout};
|
||||||
|
|
||||||
// A 0 in the DDR makes that pin an input
|
// A 0 in the DDR makes that pin an input
|
||||||
assign BIT3 = !DD_REG4[3] ? 1'b0:
|
assign BIT3 = !DD_REG4[3] ? 1'b0:
|
||||||
CSS;
|
CSS;
|
||||||
assign DATA_REG4 = !DDR4 ? DD_REG4:
|
assign DATA_REG4 = !DDR4 ? DD_REG4:
|
||||||
{VDG_CONTROL, BIT3, KEY_COLUMN[6], SBS, 1'b1};
|
{VDG_CONTROL, BIT3, KEY_COLUMN[6], SBS, coco_rs232_in};
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* GPIO
|
* GPIO
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
@@ -2642,6 +2678,9 @@ end
|
|||||||
//end
|
//end
|
||||||
|
|
||||||
reg sync_rst1;
|
reg sync_rst1;
|
||||||
|
reg coco_rs232_out;
|
||||||
|
wire coco_rs232_in;
|
||||||
|
wire coco_rs232_cd;
|
||||||
|
|
||||||
// Most of the latches for settings
|
// Most of the latches for settings
|
||||||
always @ (negedge clk_sys or negedge RESET_N)
|
always @ (negedge clk_sys or negedge RESET_N)
|
||||||
@@ -2667,6 +2706,7 @@ begin
|
|||||||
SEL[1] <= 1'b0;
|
SEL[1] <= 1'b0;
|
||||||
// FF20
|
// FF20
|
||||||
DD_REG3 <= 8'h00;
|
DD_REG3 <= 8'h00;
|
||||||
|
coco_rs232_out <= 1'b0;
|
||||||
DTOA_CODE <= 6'b000000;
|
DTOA_CODE <= 6'b000000;
|
||||||
SOUND_DTOA <= 6'b000000;
|
SOUND_DTOA <= 6'b000000;
|
||||||
// BBTXD <= 1'b0;
|
// BBTXD <= 1'b0;
|
||||||
@@ -2855,8 +2895,9 @@ begin
|
|||||||
case ({SOUND_EN,SEL})
|
case ({SOUND_EN,SEL})
|
||||||
3'b100:
|
3'b100:
|
||||||
SOUND_DTOA <= DTOA_CODE;
|
SOUND_DTOA <= DTOA_CODE;
|
||||||
3'b111:
|
// This is still no sound as it just holds the previous DTOA Value
|
||||||
SOUND_DTOA <= 6'b000000;
|
// 3'b111:
|
||||||
|
// SOUND_DTOA <= 6'b000000;
|
||||||
endcase
|
endcase
|
||||||
|
|
||||||
if(!RW_N)
|
if(!RW_N)
|
||||||
@@ -2931,6 +2972,7 @@ begin
|
|||||||
DD_REG3 <= DATA_OUT;
|
DD_REG3 <= DATA_OUT;
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
coco_rs232_out <= DATA_OUT[1];
|
||||||
DTOA_CODE <= DATA_OUT[7:2];
|
DTOA_CODE <= DATA_OUT[7:2];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -3511,7 +3553,12 @@ end
|
|||||||
|
|
||||||
// Internal Sound generation
|
// Internal Sound generation
|
||||||
//assign SOUND = {SBS, 7'b0000000} + {SOUND_DTOA, SOUND_DTOA[5:4]};
|
//assign SOUND = {SBS, 7'b0000000} + {SOUND_DTOA, SOUND_DTOA[5:4]};
|
||||||
assign SOUND = {SBS, SOUND_DTOA, SOUND_DTOA[5]};
|
//assign SOUND = {SBS, SOUND_DTOA, SOUND_DTOA[5]};
|
||||||
|
//assign SOUND = {SBS || SOUND_DTOA[5], SOUND_DTOA[4:0], SOUND_DTOA[1:0]};
|
||||||
|
// Ver 3 of the sound arch
|
||||||
|
|
||||||
|
assign SOUND = SOUND_EN ? {SOUND_DTOA, 2'b00}:
|
||||||
|
{SBS,SBS,SBS,SBS,SBS,SBS, 2'b00};
|
||||||
|
|
||||||
assign SOUND_LEFT = {ORCH_LEFT, ORCH_LEFT} + {SOUND, SOUND};
|
assign SOUND_LEFT = {ORCH_LEFT, ORCH_LEFT} + {SOUND, SOUND};
|
||||||
assign SOUND_RIGHT = {ORCH_RIGHT, ORCH_RIGHT} + {SOUND, SOUND};
|
assign SOUND_RIGHT = {ORCH_RIGHT, ORCH_RIGHT} + {SOUND, SOUND};
|
||||||
@@ -3817,24 +3864,40 @@ wire PIX_CLK_D;
|
|||||||
// The VBOARDER is used as a VBLANK as is [inverted]
|
// The VBOARDER is used as a VBLANK as is [inverted]
|
||||||
reg [3:0] MISTER_HBLANK_D;
|
reg [3:0] MISTER_HBLANK_D;
|
||||||
|
|
||||||
assign HBLANK = MISTER_HBLANK_D[2]; // This is 2 clock delay on the ~HBORDER...
|
assign HBLANK_ORG = MISTER_HBLANK_D[2]; // This is 2 clock delay on the ~HBORDER...
|
||||||
|
// KEY: 01/14/26
|
||||||
|
//assign HBLANK = MISTER_HBLANK_D[2]; // This is 2 clock delay on the ~HBORDER...
|
||||||
//assign VBLANK = ~VBORDER;
|
//assign VBLANK = ~VBORDER;
|
||||||
wire VBLANK_PRIME;
|
wire VBLANK_PRIME;
|
||||||
assign VBLANK = ~VBLANK_PRIME;
|
|
||||||
|
|
||||||
assign RED[3:0] = RED[7:4];
|
assign VBLANK_ORG = ~VBLANK_PRIME;
|
||||||
assign GREEN[3:0] = GREEN[7:4];
|
// KEY: 01/14/26
|
||||||
assign BLUE[3:0] = BLUE[7:4];
|
//assign VBLANK = ~VBLANK_PRIME;
|
||||||
|
|
||||||
|
assign RED_ORG[3:0] = RED_ORG[7:4];
|
||||||
|
assign GREEN_ORG[3:0] = GREEN_ORG[7:4];
|
||||||
|
assign BLUE_ORG[3:0] = BLUE_ORG[7:4];
|
||||||
|
// KEY: 01/14/26
|
||||||
|
//assign RED[3:0] = RED[7:4];
|
||||||
|
//assign GREEN[3:0] = GREEN[7:4];
|
||||||
|
//assign BLUE[3:0] = BLUE[7:4];
|
||||||
|
|
||||||
// Video DAC
|
// Video DAC
|
||||||
always @ (negedge clk_sys)
|
always @ (negedge clk_sys)
|
||||||
begin
|
begin
|
||||||
PIX_CLK_D <= PIX_CLK;
|
// PIX_CLK_D <= PIX_CLK;
|
||||||
if (PIX_CLK == 1'b1 & PIX_CLK_D == 1'b0)
|
// if (PIX_CLK == 1'b1 & PIX_CLK_D == 1'b0)
|
||||||
|
// KEY: 01/14/26
|
||||||
|
PIX_CLK_D <= PIX_CLK_ORG;
|
||||||
|
if (PIX_CLK_ORG == 1'b1 & PIX_CLK_D == 1'b0)
|
||||||
begin
|
begin
|
||||||
COLOR_BUF <= COLOR; // Delay COLOR by 1 clock cycle to align with 256 Color SRAM
|
COLOR_BUF <= COLOR; // Delay COLOR by 1 clock cycle to align with 256 Color SRAM
|
||||||
H_SYNC <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
|
H_SYNC_ORG <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
|
||||||
V_SYNC <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
|
V_SYNC_ORG <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
|
||||||
|
// H_SYNC <= !H_SYNC_N; // Delay H_SYNC by 1 clock cycle
|
||||||
|
// V_SYNC <= !V_SYNC_N; // Delay V_SYNC by 1 clock cycle
|
||||||
|
// KEY: 01/14/26
|
||||||
|
|
||||||
// RED[3:0] <= 4'B0000;
|
// RED[3:0] <= 4'B0000;
|
||||||
// GREEN[3:0] <= 4'B0000;
|
// GREEN[3:0] <= 4'B0000;
|
||||||
// BLUE[3:0] <= 4'B0000;
|
// BLUE[3:0] <= 4'B0000;
|
||||||
@@ -3846,27 +3909,48 @@ begin
|
|||||||
|
|
||||||
if(COLOR_BUF[8])
|
if(COLOR_BUF[8])
|
||||||
begin
|
begin
|
||||||
{RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= VDAC_OUT[11:0];
|
// KEY: 01/14/26
|
||||||
|
// {RED[7], GREEN[7], BLUE[7], RED[6], GREEN[6], BLUE[6], RED[5], GREEN[5], BLUE[5], RED[4], GREEN[4], BLUE[4]} <= VDAC_OUT[11:0];
|
||||||
|
{RED_ORG[7], GREEN_ORG[7], BLUE_ORG[7], RED_ORG[6], GREEN_ORG[6], BLUE_ORG[6], RED_ORG[5], GREEN_ORG[5], BLUE_ORG[5], RED_ORG[4], GREEN_ORG[4], BLUE_ORG[4]} <= VDAC_OUT[11:0];
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
RED[7] <= PALETTE[COLOR_BUF[4:0]][11];
|
// KEY: 01/14/26
|
||||||
RED[6] <= PALETTE[COLOR_BUF[4:0]][8];
|
// RED[7] <= PALETTE[COLOR_BUF[4:0]][11];
|
||||||
RED[5] <= PALETTE[COLOR_BUF[4:0]][5];
|
// RED[6] <= PALETTE[COLOR_BUF[4:0]][8];
|
||||||
RED[4] <= PALETTE[COLOR_BUF[4:0]][2];
|
// RED[5] <= PALETTE[COLOR_BUF[4:0]][5];
|
||||||
GREEN[7] <= PALETTE[COLOR_BUF[4:0]][10];
|
// RED[4] <= PALETTE[COLOR_BUF[4:0]][2];
|
||||||
GREEN[6] <= PALETTE[COLOR_BUF[4:0]][7];
|
// GREEN[7] <= PALETTE[COLOR_BUF[4:0]][10];
|
||||||
GREEN[5] <= PALETTE[COLOR_BUF[4:0]][4];
|
// GREEN[6] <= PALETTE[COLOR_BUF[4:0]][7];
|
||||||
GREEN[4] <= PALETTE[COLOR_BUF[4:0]][1];
|
// GREEN[5] <= PALETTE[COLOR_BUF[4:0]][4];
|
||||||
BLUE[7] <= PALETTE[COLOR_BUF[4:0]][9];
|
// GREEN[4] <= PALETTE[COLOR_BUF[4:0]][1];
|
||||||
BLUE[6] <= PALETTE[COLOR_BUF[4:0]][6];
|
// BLUE[7] <= PALETTE[COLOR_BUF[4:0]][9];
|
||||||
BLUE[5] <= PALETTE[COLOR_BUF[4:0]][3];
|
// BLUE[6] <= PALETTE[COLOR_BUF[4:0]][6];
|
||||||
BLUE[4] <= PALETTE[COLOR_BUF[4:0]][0];
|
// BLUE[5] <= PALETTE[COLOR_BUF[4:0]][3];
|
||||||
|
// BLUE[4] <= PALETTE[COLOR_BUF[4:0]][0];
|
||||||
|
// end
|
||||||
|
// RED[4] = RED[6];
|
||||||
|
// GREEN[4] = GREEN[6];
|
||||||
|
// BLUE[5] = BLUE[7];
|
||||||
|
// BLUE[4] = BLUE[6];
|
||||||
|
|
||||||
|
RED_ORG[7] <= PALETTE[COLOR_BUF[4:0]][11];
|
||||||
|
RED_ORG[6] <= PALETTE[COLOR_BUF[4:0]][8];
|
||||||
|
RED_ORG[5] <= PALETTE[COLOR_BUF[4:0]][5];
|
||||||
|
RED_ORG[4] <= PALETTE[COLOR_BUF[4:0]][2];
|
||||||
|
GREEN_ORG[7] <= PALETTE[COLOR_BUF[4:0]][10];
|
||||||
|
GREEN_ORG[6] <= PALETTE[COLOR_BUF[4:0]][7];
|
||||||
|
GREEN_ORG[5] <= PALETTE[COLOR_BUF[4:0]][4];
|
||||||
|
GREEN_ORG[4] <= PALETTE[COLOR_BUF[4:0]][1];
|
||||||
|
BLUE_ORG[7] <= PALETTE[COLOR_BUF[4:0]][9];
|
||||||
|
BLUE_ORG[6] <= PALETTE[COLOR_BUF[4:0]][6];
|
||||||
|
BLUE_ORG[5] <= PALETTE[COLOR_BUF[4:0]][3];
|
||||||
|
BLUE_ORG[4] <= PALETTE[COLOR_BUF[4:0]][0];
|
||||||
end
|
end
|
||||||
RED[4] = RED[6];
|
RED_ORG[4] = RED_ORG[6];
|
||||||
GREEN[4] = GREEN[6];
|
GREEN_ORG[4] = GREEN_ORG[6];
|
||||||
BLUE[5] = BLUE[7];
|
BLUE_ORG[5] = BLUE_ORG[7];
|
||||||
BLUE[4] = BLUE[6];
|
BLUE_ORG[4] = BLUE_ORG[6];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -3874,7 +3958,9 @@ end
|
|||||||
VDAC VDAC_inst (
|
VDAC VDAC_inst (
|
||||||
.data ( {4'h0,PALETTE[0][11:0]} ),
|
.data ( {4'h0,PALETTE[0][11:0]} ),
|
||||||
.rdaddress ( COLOR[7:0] ),
|
.rdaddress ( COLOR[7:0] ),
|
||||||
.rdclock ( PIX_CLK ),
|
.rdclock ( PIX_CLK_ORG ),
|
||||||
|
// .rdclock ( PIX_CLK ),
|
||||||
|
// KEY: 01/14/26
|
||||||
.wraddress ( DATA_OUT ),
|
.wraddress ( DATA_OUT ),
|
||||||
.wrclock ( clk_sys ),
|
.wrclock ( clk_sys ),
|
||||||
.wren ( VDAC_EN & PH_2 ),
|
.wren ( VDAC_EN & PH_2 ),
|
||||||
@@ -3890,11 +3976,35 @@ wire VBLANK_1;
|
|||||||
wire HBLANK_1;
|
wire HBLANK_1;
|
||||||
wire double, buff_bank;
|
wire double, buff_bank;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Sync to pos edge of ck_sys
|
||||||
|
// Key: 01/14/26
|
||||||
|
//
|
||||||
|
|
||||||
|
reg HBLANK_ORG, VBLANK_ORG, PIX_CLK_ORG, H_SYNC_ORG, V_SYNC_ORG;
|
||||||
|
reg [7:0] RED_ORG;
|
||||||
|
reg [7:0] GREEN_ORG;
|
||||||
|
reg [7:0] BLUE_ORG;
|
||||||
|
|
||||||
|
always @ (posedge clk_sys)
|
||||||
|
begin
|
||||||
|
HBLANK <= HBLANK_ORG;
|
||||||
|
VBLANK <= VBLANK_ORG;
|
||||||
|
PIX_CLK <= PIX_CLK_ORG;
|
||||||
|
H_SYNC <= H_SYNC_ORG;
|
||||||
|
V_SYNC <= V_SYNC_ORG;
|
||||||
|
|
||||||
|
RED <= RED_ORG;
|
||||||
|
GREEN <= GREEN_ORG;
|
||||||
|
BLUE <= BLUE_ORG;
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Video timing and modes
|
// Video timing and modes
|
||||||
COCO3VIDEO MISTER_COCOVID(
|
COCO3VIDEO MISTER_COCOVID(
|
||||||
// Clocks / RESET
|
// Clocks / RESET
|
||||||
.MASTER_CLK(clk_sys),
|
.MASTER_CLK(clk_sys),
|
||||||
.PIX_CLK(PIX_CLK), //14.32 MHz = 69.3 nS
|
.PIX_CLK(PIX_CLK_ORG), //14.32 MHz = 69.3 nS
|
||||||
.RESET_N(RESET_N),
|
.RESET_N(RESET_N),
|
||||||
|
|
||||||
// Video Out
|
// Video Out
|
||||||
@@ -3952,9 +4062,15 @@ COCO3VIDEO MISTER_COCOVID(
|
|||||||
.HBORDER(HBORDER),
|
.HBORDER(HBORDER),
|
||||||
.VBORDER(VBORDER),
|
.VBORDER(VBORDER),
|
||||||
|
|
||||||
.art(SWITCH[7:6])
|
.art(SWITCH[7:6]),
|
||||||
|
.PIXEL_COUNT(PIXEL_COUNT),
|
||||||
|
.LINE(LINE)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
reg [10:0] PIXEL_COUNT;
|
||||||
|
reg [9:0] LINE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
parameter SHDOW_FONT_LOCK_REG = 16'hfff0;
|
parameter SHDOW_FONT_LOCK_REG = 16'hfff0;
|
||||||
parameter SHDOW_FONT_DATA_REG = 16'hfff1;
|
parameter SHDOW_FONT_DATA_REG = 16'hfff1;
|
||||||
@@ -4066,7 +4182,9 @@ coco3_Char_ROM coco3_Char_ROM(
|
|||||||
.WE(((ioctl_index[5:0] == 6'd3) & ioctl_wr) | Font_ROM_Mach_WE), // Can be just Font_ROM_Mach_WE if no MISTer
|
.WE(((ioctl_index[5:0] == 6'd3) & ioctl_wr) | Font_ROM_Mach_WE), // Can be just Font_ROM_Mach_WE if no MISTer
|
||||||
.ADDR_W(Font_ROM_Adrs_Buf),
|
.ADDR_W(Font_ROM_Adrs_Buf),
|
||||||
.DATA_W(Font_ROM_Data_Buf),
|
.DATA_W(Font_ROM_Data_Buf),
|
||||||
.RD_CLK(PIX_CLK),
|
.RD_CLK(PIX_CLK_ORG),
|
||||||
|
// .RD_CLK(PIX_CLK),
|
||||||
|
// KEY: 01/14/26
|
||||||
.ADDR_R({(COCO1 ^ Font_ROM_Upper_Select), font_adrs}),
|
.ADDR_R({(COCO1 ^ Font_ROM_Upper_Select), font_adrs}),
|
||||||
.DATA_R(font_data)
|
.DATA_R(font_data)
|
||||||
);
|
);
|
||||||
@@ -4114,8 +4232,8 @@ glb6551 RS232(
|
|||||||
.CS({1'b0, RS232_EN}),
|
.CS({1'b0, RS232_EN}),
|
||||||
.RW_N(RW_N),
|
.RW_N(RW_N),
|
||||||
.RS(ADDRESS[1:0]),
|
.RS(ADDRESS[1:0]),
|
||||||
.TXDATA_OUT(UART_TXD),
|
.TXDATA_OUT(UART_TXD_I),
|
||||||
.RXDATA_IN(UART_RXD),
|
.RXDATA_IN(UART_RXD_I),
|
||||||
.RTS(UART_RTS),
|
.RTS(UART_RTS),
|
||||||
.CTS(UART_CTS),
|
.CTS(UART_CTS),
|
||||||
.DCD(1'b1),
|
.DCD(1'b1),
|
||||||
@@ -4150,5 +4268,82 @@ Cassette_Write CoCo3_Cassette_Write(
|
|||||||
.sd_buff_wr(sd_buff_wr)
|
.sd_buff_wr(sd_buff_wr)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
wire [7:0] RED;
|
||||||
|
wire [7:0] GREEN;
|
||||||
|
wire [7:0] BLUE;
|
||||||
|
|
||||||
|
assign RED_O = RED | CN_R;
|
||||||
|
assign GREEN_O = GREEN;
|
||||||
|
assign BLUE_O = BLUE;
|
||||||
|
|
||||||
|
wire [159:0]NOrom1;
|
||||||
|
wire [159:0]NOrom2;
|
||||||
|
reg [7:0] CN_R ;
|
||||||
|
|
||||||
|
reg pixel_clk_d, clk_7Mhz;
|
||||||
|
|
||||||
|
always @ (negedge clk_sys)
|
||||||
|
begin
|
||||||
|
pixel_clk_d <= PIX_CLK_ORG;
|
||||||
|
if (PIX_CLK_ORG==1'b1 && pixel_clk_d==1'b0)
|
||||||
|
clk_7Mhz <= !clk_7Mhz;
|
||||||
|
end
|
||||||
|
|
||||||
|
ovo #(.COLS(32), .LINES(23)) NOROMOVO
|
||||||
|
(
|
||||||
|
.i_r(8'd0),
|
||||||
|
.i_g(8'd0),
|
||||||
|
.i_b(8'd0),
|
||||||
|
.i_clk(PIX_CLK_ORG),
|
||||||
|
.i_Hcount({1'b0, PIXEL_COUNT[10:1]}),
|
||||||
|
.i_VCount(LINE),
|
||||||
|
.o_r(CN_R),
|
||||||
|
.ena(Display_Debug || ((!rom_loaded) && SEC[0])),
|
||||||
|
.in0(NOrom1),
|
||||||
|
.in1(NOrom2)
|
||||||
|
);
|
||||||
|
|
||||||
|
assign NOrom2 = {
|
||||||
|
{32{5'b10000}}
|
||||||
|
};
|
||||||
|
|
||||||
|
assign NOrom1 = {
|
||||||
|
//{17{5'b10000}},
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11011, // N
|
||||||
|
5'b11100, // O
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11101, // R
|
||||||
|
5'b11100, // O
|
||||||
|
5'b11110, // M
|
||||||
|
5'b10000, // space
|
||||||
|
5'b10011, // -
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11011, // N
|
||||||
|
5'b11100, // O
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11101, // R
|
||||||
|
5'b11100, // O
|
||||||
|
5'b11110, // M
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11011, // N
|
||||||
|
5'b11100, // O
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11101, // R
|
||||||
|
5'b11100, // O
|
||||||
|
5'b11110, // M
|
||||||
|
5'b10000, // space
|
||||||
|
5'b10011, // -
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11011, // N
|
||||||
|
5'b11100, // O
|
||||||
|
5'b10000, // space
|
||||||
|
5'b11101, // R
|
||||||
|
5'b11100, // O
|
||||||
|
5'b11110 // M
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
Reference in new issue
Block a user