# quartus_sta -t video_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 snapshot [get_registers {*coco3_sdram|video_address_snapshot[*]*}] set fetch [get_registers {*video_fetch|*}] set controller [get_registers {*coco3_sdram|*}] set source [get_registers {*MISTER_COCOVID|ROW_ADD[*]* *MISTER_COCOVID|SCREEN_START_ADD[*]*}] foreach {name collection minimum} [list snapshot $snapshot 20 fetch $fetch 10 controller $controller 40 source $source 20] { set count [get_collection_size $collection] puts "VIDEO_SCOPE $model $name $count" if {$count < $minimum} {error "Incomplete video timing scope: $name"} } foreach check {setup hold} { report_timing -$check -from $source -to $snapshot -npaths 30 -detail full_path \ -file [file join $output address-${model}-${check}.rpt] report_timing -$check -from $snapshot -to $controller -npaths 30 -detail full_path \ -file [file join $output activation-${model}-${check}.rpt] report_timing -$check -to $fetch -npaths 30 -detail full_path \ -file [file join $output fetch-in-${model}-${check}.rpt] report_timing -$check -from $fetch -npaths 30 -detail full_path \ -file [file join $output fetch-out-${model}-${check}.rpt] report_timing -$check -to $controller -npaths 30 -detail full_path \ -file [file join $output controller-in-${model}-${check}.rpt] report_timing -$check -from $controller -npaths 30 -detail full_path \ -file [file join $output controller-out-${model}-${check}.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