mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-10 09:48:06 +00:00
sdc: specialize stubs for the call graph
This commit is contained in:
parent
dead2aa03f
commit
a4dc0156bb
3 changed files with 2 additions and 17 deletions
18
passes/cmds/sdc/graph-stubs.sdc
Normal file
18
passes/cmds/sdc/graph-stubs.sdc
Normal file
|
@ -0,0 +1,18 @@
|
|||
proc unknown {args} {
|
||||
global sdc_call_index
|
||||
global sdc_calls
|
||||
if {![info exists sdc_call_index]} {
|
||||
set sdc_call_index 0
|
||||
}
|
||||
if {![info exists sdc_calls]} {
|
||||
set sdc_calls {}
|
||||
}
|
||||
set ret "YOSYS_SDC_MAGIC_NODE_$sdc_call_index"
|
||||
incr sdc_call_index
|
||||
lappend sdc_calls $args
|
||||
# puts "unknown $args, returning YOSYS_SDC_MAGIC_NODE_$sdc_call_index"
|
||||
return $ret
|
||||
}
|
||||
proc list {args} {
|
||||
return [unknown "list" {*}$args]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue