Files
CoCo3_Plus_MiSTer/scripts/ssc_integrated_timing.tcl
bholman cb40fed3b9 Introduce Coco 3 Plus for MiSTer
Add original-firmware Sound & Speech, four configurable Multi-Pak sockets,
bounded per-slot ROM allocation and a nine-page menu organized around devices
and media. Repair inherited clock/reset/CPU-memory/video paths and add explicit
conditional external-I/O timing contracts. Preserve native Main startup-file
ordering, saved layouts, stock-core separation and the coco3plus media profile.

Provide native Windows tool downloads, pinned ToolShed ROM assembly, fresh
Quartus builds, functional and fitted timing checks, reviewed release packaging
and passwordless SSH installation with backups. Retain original component
notices, document contribution copyright and keep SSC ROM inputs outside Git.

Validation: Quartus17.0.2 Build602 seed5, zero errors; 15 functional jobs,
368 both-corner timing scopes and eight tooling-integrity checks pass.
The renamed build reaches Disk BASIC, PRINT1+1 returns2 and SSC loads ready.
Physical cold power cycling and conditional board-delay assumptions remain
separate. Full original upstream histories are preserved before this single
consolidated implementation commit.
2026-11-18 16:00:45 -07:00

50 lines
1.9 KiB
Tcl

# quartus_sta -t ssc_integrated_timing.tcl PROJECT REVISION OUTPUT
package require ::quartus::project
package require ::quartus::sta
set project [file normalize [lindex $quartus(args) 0]]
set revision [lindex $quartus(args) 1]
set output [file normalize [lindex $quartus(args) 2]]
file mkdir $output
cd [file dirname $project]
project_open [file tail $project] -revision $revision
foreach model {slow fast} {
create_timing_netlist -model $model
read_sdc
update_timing_netlist
foreach {name pattern minimum} {
cartridge {*coco3|ssc|*} 1200
bridge {*coco3|ssc_bridge|*} 30
controller {*coco3|ssc|controller|*} 400
speech {*coco3|ssc|speech|*} 400
audio {*coco3|ssc|audio|*} 100
ay {*coco3|ssc|ay|*} 100
glue {*coco3|ssc|glue|*} 15
host {*coco3|ssc|host|*} 10
power {*ssc_power_release*} 2
} {
set nodes [get_keepers $pattern]
set count [get_collection_size $nodes]
puts "SSC_INTEGRATED_SCOPE $model $name $count"
if {$count<$minimum} {error "Incomplete SSC scope: $name"}
set audit [open [file join $output keepers-${name}-${model}.txt] w]
foreach_in_collection node $nodes {puts $audit [get_node_info -name $node]}
close $audit
foreach check {setup hold recovery removal} {
# Setup/hold must have substantive paths. Recovery/removal may legitimately
# be empty for synchronous-only chip helpers; preserve both reports.
report_timing -$check -to $nodes -npaths 40 -detail full_path \
-file [file join $output ${name}-in-${model}-${check}.rpt]
report_timing -$check -from $nodes -npaths 40 -detail full_path \
-file [file join $output ${name}-out-${model}-${check}.rpt]
}
}
report_clock_transfers -setup -file [file join $output clock-transfers-${model}.rpt]
if {$model eq "slow"} {
report_clocks -file [file join $output clocks.rpt]
report_ucp -file [file join $output unconstrained.rpt]
report_exceptions -file [file join $output exceptions.rpt]
}
delete_timing_netlist
}
project_close -dont_export_assignments