-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synthesis: tests: counter: enable ASAP7 physical design sample
Signed-off-by: Pawel Czarnecki <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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,16 @@ | ||
current_design counter | ||
|
||
set clk_name core_clock | ||
set clk_port_name clk | ||
set clk_period 10000 | ||
set clk_io_pct 0.2 | ||
|
||
set clk_port [get_ports $clk_port_name] | ||
|
||
create_clock -name $clk_name -period $clk_period $clk_port | ||
|
||
set non_clock_inputs [lsearch -inline -all -not -exact [all_inputs] $clk_port] | ||
|
||
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_name $non_clock_inputs | ||
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_name [all_outputs] | ||
|