Files
CoCo3_Plus_MiSTer/scripts/nmi_timing_paths.tcl
T
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

61 lines
2.8 KiB
Tcl

# quartus_sta -t nmi_timing_paths.tcl PROJECT REVISION OUTPUT_DIRECTORY
package require ::quartus::project
package require ::quartus::sta
set project [lindex $quartus(args) 0]
set revision [lindex $quartus(args) 1]
set output [file normalize [lindex $quartus(args) 2]]
file mkdir $output
project_open $project -revision $revision
foreach model {slow fast} {
create_timing_netlist -model $model
read_sdc
update_timing_netlist
set nmi [get_registers {*GLBCPU09|NMI*}]
if {[get_collection_size $nmi] < 5} {error "Expected complete CPU NMI register scope"}
puts "NMI_REGISTERS $model [get_collection_size $nmi]"
set cpu [get_registers {*GLBCPU09|*}]
foreach check {setup hold} {
report_timing -$check -from $cpu -to $cpu -npaths 5 -detail full_path \
-file [file join $output cpu-internal-${model}-${check}.rpt]
}
# Register-only endpoints would miss the effective mask/pending view.
# Kept combinational nets must also be covered through to CPU consumers.
if {[get_collection_size $nmi] > 5} {
foreach signal {NMIMask NMILatched} {
set through [get_nets *GLBCPU09|$signal]
if {[get_collection_size $through] == 0} {error "Missing kept NMI net $signal"}
puts "NMI_THROUGH $model $signal [get_collection_size $through]"
foreach check {setup hold} {
report_timing -$check -through $through -npaths 20 -detail full_path \
-file [file join $output nmi-through-${signal}-${model}-${check}.rpt]
}
}
}
foreach check {setup hold recovery removal} {
report_timing -$check -to $nmi -npaths 20 -detail full_path \
-file [file join $output nmi-in-${model}-${check}.rpt]
report_timing -$check -from $nmi -npaths 20 -detail full_path \
-file [file join $output nmi-out-${model}-${check}.rpt]
report_timing -$check -npaths 5 -detail full_path \
-file [file join $output global-${model}-${check}.rpt]
}
if {$model eq "slow"} {
set audit [open [file join $output nmi-register-clocks.tsv] w]
puts $audit "register\tclock_pin\tclock_driver"
foreach_in_collection reg $nmi {
foreach edge [get_register_info -clock_edges $reg] {
set pin [get_edge_info -src $edge]
foreach input_edge [get_node_info -clock_edges $pin] {
puts $audit "[get_register_info -name $reg]\t[get_node_info -name $pin]\t[get_node_info -name [get_edge_info -src $input_edge]]"
}
}
}
close $audit
report_clocks -file [file join $output clocks.rpt]
report_ucp -file [file join $output unconstrained.rpt]
report_clock_transfers -file [file join $output clock-transfers.rpt]
}
delete_timing_netlist
}
project_close