Core changes and CSAVE support.

1.	Added support for cassette save.  To use: A) You have to have a file [anyname.cas]
	which is larger than needed.  B) Select the file through the UI Menu 'Save
	Cassette'.  C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
	E) When done, set 'Cass Rwd=0 / Rec=1' to 0 to complete the write.  The file can
	now be loaded or copied.  Note a dummy file of a specific size can be created in
	the MiSTer SSH shell in the /media/fat/games/coco3 with the command:
	'truncate -s 65536 tapefileame.cas'. [Note do NOT use over 65536 file length]
2.	Fixed serial interrupt [6551] to not be functional on slot 3 [carts].
3.	Modification of sys_top.v to override use of USER_IO for HDMI - so it can be used
	for logic analyzer debug.  This will only occur when `define	Config_Debug is
	enabled in config.v.
4.	Fixed MUGS of powerup issue occurring on some MiSTer units.
5.	Fixed incorrect application of GIME_IRQ on legacy interrupts.  Fixed race condition
	on reading IRQ status vs clearing the interrupt.
6.	Improved Castle of Tharoggad.  App now loads but locks as the graphics animate.  This
	change improved mmu usage through to CARTS.
7.	Builds now keep track of multiple builds in the same date.  It shows as V240512-001 in
	the menus.  Its also exposed to BASIC and a boot.vhd which can be enabled to autorun is
	supplied in the archive to show how it works.
8.	Additionally, on the boot.vhd disk, is a program which demonstrated how to load a font -
	IBMFONT.BAS. Run it and it maps a font much like the IBM font to the 80 column format.
	Also, a file called TESTRTC.BAS pulls the MiSTer RTC values exposed in BASIC to display
	a clock.
9.	Large improvement in the Timer function.  Code closer emulates COCO3 Timer. Fixes
	Sliphead cart.
10.	In the 20231023 release the wd1773 instances were reduced to 1 for the FDC and one for
	the FDC.  This saved space but introduced a bug when using multiple drives at the same
	time - like a copy command.  This change was removed and the copy command works again.

To Do...
1.	Add Speech / Music cart
2.	Fix Castle of Tharoggad
This commit is contained in:
shodge12 committed 2024-05-14 23:00:16 -04:00
1 parent a3373d34b9
commit 1da70a7929
27 files changed
+1113 -850

No files matched your search

+26 -1
View File
@@ -2,13 +2,16 @@
# Build TimeStamp Verilog Module
# Jeff Wiencrot - 8/1/2011
# Sorgelig - 02/11/2019
# Stan Hodge - 04/22/2024
proc generateBuildID_Verilog {} {
# Get the timestamp (see: http://www.altera.com/support/examples/tcl/tcl-date-time-stamp.html)
set buildDate "`define BUILD_DATE \"[clock format [ clock seconds ] -format %y%m%d]\""
# Create a Verilog file for output
# Create a Verilog file(s) for output
set outputFileName "build_id.v"
set outputFileNameNum "build_id_num.v"
set fileData ""
if { [file exists $outputFileName]} {
@@ -17,13 +20,35 @@ proc generateBuildID_Verilog {} {
close $outputFile
}
set fileData_num ""
if { [file exists $outputFileNameNum]} {
set outputFile [open $outputFileNameNum "r"]
set fileData_num [read $outputFile]
close $outputFile
}
if {$buildDate ne $fileData} {
set outputFile [open $outputFileName "w"]
puts -nonewline $outputFile $buildDate
close $outputFile
set buildnumbervar 1
# Send confirmation message to the Messages window
post_message "Generated: [pwd]/$outputFileName: $buildDate"
} else {
scan $fileData_num "`define BUILD_NUMBER \"%d" buildnumbervar
incr buildnumbervar
}
set buildnumber "`define BUILD_NUMBER \"[format "%03d" $buildnumbervar]\""
set outputFile [open $outputFileNameNum "w"]
puts -nonewline $outputFile $buildnumber
close $outputFile
post_message "Generated: [pwd]/$outputFileNameNum: $buildnumber"
}
# Build CDF file
+1 -1
View File
@@ -1,2 +1,2 @@
set_instance_assignment -name PLL_COMPENSATION_MODE DIRECT -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*"
set_instance_assignment -name UNFORCE_MERGE_PLL_OUTPUT_COUNTER ON -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*"
#set_instance_assignment -name UNFORCE_MERGE_PLL_OUTPUT_COUNTER ON -to "*pll_hdmi_0002*|altera_pll:altera_pll_i*|*"
+21
View File
@@ -19,6 +19,9 @@
//
//============================================================================
// Define Config features - For CoCo use of USER I/O
//`include "../rtl/config.sv"
module sys_top
(
/////////// CLOCK //////////
@@ -1526,7 +1529,24 @@ alsa alsa
`endif
//////////////// User I/O (USB 3.0 connector) /////////////////////////
// Modifications for use of the CoCo3 with LA
`ifdef Config_Debug
//assign USER_IO[0] = !user_out[0] ? 1'b0 : 1'bZ;
//assign USER_IO[1] = !user_out[1] ? 1'b0 : 1'bZ;
//assign USER_IO[2] = !user_out[2] ? 1'b0 : 1'bZ;
//assign USER_IO[3] = !user_out[3] ? 1'b0 : 1'bZ;
//assign USER_IO[4] = !user_out[4] ? 1'b0 : 1'bZ;
//assign USER_IO[5] = !user_out[5] ? 1'b0 : 1'bZ;
//assign USER_IO[6] = !user_out[6] ? 1'b0 : 1'bZ;
assign USER_IO[0] = user_out[0];
assign USER_IO[1] = user_out[1];
assign USER_IO[2] = user_out[2];
assign USER_IO[3] = user_out[3];
assign USER_IO[4] = user_out[4];
assign USER_IO[5] = user_out[5];
assign USER_IO[6] = user_out[6];
`else
assign USER_IO[0] = !user_out[0] ? 1'b0 : 1'bZ;
assign USER_IO[1] = !user_out[1] ? 1'b0 : 1'bZ;
assign USER_IO[2] = !(SW[1] ? HDMI_I2S : user_out[2]) ? 1'b0 : 1'bZ;
@@ -1534,6 +1554,7 @@ assign USER_IO[3] = !user_out[3] ? 1'b0 : 1'bZ;
assign USER_IO[4] = !(SW[1] ? HDMI_SCLK : user_out[4]) ? 1'b0 : 1'bZ;
assign USER_IO[5] = !(SW[1] ? HDMI_LRCLK : user_out[5]) ? 1'b0 : 1'bZ;
assign USER_IO[6] = !user_out[6] ? 1'b0 : 1'bZ;
`endif
assign user_in[0] = USER_IO[0];
assign user_in[1] = USER_IO[1];