forked from parallaxsw/OpenSTA
-
Notifications
You must be signed in to change notification settings - Fork 5
Small SDC fixes #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Small SDC fixes #63
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| Warning 198: ../examples/gcd_sky130hd.v line 527, module sky130_fd_sc_hd__tapvpwrvgnd_1 not found. Creating black box for TAP_11. | ||
| -- single-bit port, collection passed directly -- | ||
| after set: 1 | ||
| after remove (direct): 0 | ||
| ok | ||
| -- single-bit port, collection wrapped in a list -- | ||
| after remove (list): 0 | ||
| ok | ||
| -- multi-bit bus, collection passed directly -- | ||
| after set: 32 | ||
| after remove (direct): 0 | ||
| ok | ||
| -- multi-bit bus, collection wrapped in a list -- | ||
| after remove (list): 0 | ||
| ok | ||
| -- reset_input_delay alias, collection passed directly -- | ||
| after reset (direct): 0 | ||
| ok | ||
| -- output: single-bit port, collection passed directly -- | ||
| after set: 1 | ||
| after remove (direct): 0 | ||
| ok | ||
| -- output: single-bit port, collection wrapped in a list -- | ||
| after remove (list): 0 | ||
| ok | ||
| -- output: multi-bit bus, collection passed directly -- | ||
| after set: 16 | ||
| after remove (direct): 0 | ||
| ok | ||
| -- output: multi-bit bus, collection wrapped in a list -- | ||
| after remove (list): 0 | ||
| ok | ||
| -- reset_output_delay alias, collection passed directly -- | ||
| after reset (direct): 0 | ||
| ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| # remove_input_delay/remove_output_delay (and reset_* aliases) with a collection | ||
| # passed directly (not wrapped in a list). Regression for collection argument | ||
| # handling that previously only worked when the collection was wrapped with | ||
| # [list ...]. | ||
| read_liberty ../examples/sky130hd_tt.lib.gz | ||
| read_verilog ../examples/gcd_sky130hd.v | ||
| link_design gcd | ||
| create_clock -name clk -period 10 [get_ports clk] | ||
|
|
||
| set clk [lindex [get_clocks clk] 0] | ||
|
|
||
| # Count the set_input_delay/set_output_delay lines currently in effect. | ||
| proc port_delay_count { sdc_cmd } { | ||
| write_sdc results/remove_input_delay.sdc | ||
| set fp [open results/remove_input_delay.sdc r] | ||
| set count 0 | ||
| foreach line [split [read $fp] "\n"] { | ||
| if { [string match "$sdc_cmd*" $line] } { incr count } | ||
| } | ||
| close $fp | ||
| return $count | ||
| } | ||
|
|
||
| proc input_delay_count {} { | ||
| return [port_delay_count "set_input_delay"] | ||
| } | ||
|
|
||
| proc output_delay_count {} { | ||
| return [port_delay_count "set_output_delay"] | ||
| } | ||
|
|
||
| puts "-- single-bit port, collection passed directly --" | ||
| set port [get_ports req_msg[0]] | ||
| set_input_delay -clock [get_object_name $clk] 100 $port | ||
| puts "after set: [input_delay_count]" | ||
| remove_input_delay -clock [get_object_name $clk] $port | ||
| puts "after remove (direct): [input_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- single-bit port, collection wrapped in a list --" | ||
| set_input_delay -clock [get_object_name $clk] 100 $port | ||
| remove_input_delay -clock [get_object_name $clk] [list $port] | ||
| puts "after remove (list): [input_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- multi-bit bus, collection passed directly --" | ||
| set bus [get_ports req_msg*] | ||
| set_input_delay -clock [get_object_name $clk] 100 $bus | ||
| puts "after set: [input_delay_count]" | ||
| remove_input_delay -clock [get_object_name $clk] $bus | ||
| puts "after remove (direct): [input_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- multi-bit bus, collection wrapped in a list --" | ||
| set_input_delay -clock [get_object_name $clk] 100 $bus | ||
| remove_input_delay -clock [get_object_name $clk] [list $bus] | ||
| puts "after remove (list): [input_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- reset_input_delay alias, collection passed directly --" | ||
| set_input_delay -clock [get_object_name $clk] 100 $bus | ||
| reset_input_delay -clock [get_object_name $clk] $bus | ||
| puts "after reset (direct): [input_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- output: single-bit port, collection passed directly --" | ||
| set oport [get_ports resp_msg[0]] | ||
| set_output_delay -clock [get_object_name $clk] 100 $oport | ||
| puts "after set: [output_delay_count]" | ||
| remove_output_delay -clock [get_object_name $clk] $oport | ||
| puts "after remove (direct): [output_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- output: single-bit port, collection wrapped in a list --" | ||
| set_output_delay -clock [get_object_name $clk] 100 $oport | ||
| remove_output_delay -clock [get_object_name $clk] [list $oport] | ||
| puts "after remove (list): [output_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- output: multi-bit bus, collection passed directly --" | ||
| set obus [get_ports resp_msg*] | ||
| set_output_delay -clock [get_object_name $clk] 100 $obus | ||
| puts "after set: [output_delay_count]" | ||
| remove_output_delay -clock [get_object_name $clk] $obus | ||
| puts "after remove (direct): [output_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- output: multi-bit bus, collection wrapped in a list --" | ||
| set_output_delay -clock [get_object_name $clk] 100 $obus | ||
| remove_output_delay -clock [get_object_name $clk] [list $obus] | ||
| puts "after remove (list): [output_delay_count]" | ||
| puts "ok" | ||
|
|
||
| puts "-- reset_output_delay alias, collection passed directly --" | ||
| set_output_delay -clock [get_object_name $clk] 100 $obus | ||
| reset_output_delay -clock [get_object_name $clk] $obus | ||
| puts "after reset (direct): [output_delay_count]" | ||
| puts "ok" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.