@@ -8,20 +8,30 @@ puts [libsdcparse_create_port "gen_clk1" -direction INPUT]
88puts [libsdcparse_create_port " gen_clk2" -direction INPUT]
99# CHECK: [[gen_clk3_port_ptr:__vtr_obj_[0-9]+]]
1010puts [libsdcparse_create_port " gen_clk3" -direction INPUT]
11+ # CHECK: [[clk4_port_ptr:__vtr_obj_[0-9]+]]
12+ puts [libsdcparse_create_port " clk4" -direction INPUT]
13+ # CHECK: [[clk4_net_ptr:__vtr_obj_[0-9]+]]
14+ puts [libsdcparse_create_net " clk4" ]
1115
1216create_clock -period 1.0 clk1
1317
14- # CHECK: create_generated_clock -source clk1 -divide_by 4 {[[gen_clk1_port_ptr]]}
18+ # CHECK: create_generated_clock -source {[[clk1_port_ptr]]} -divide_by 4 {[[gen_clk1_port_ptr]]}
1519create_generated_clock -source clk1 -divide_by 4 gen_clk1
1620
1721# CHECK: gen_clk1: {{__vtr_obj_[0-9]+}}
1822puts " gen_clk1: [ get_clocks gen_clk1] "
1923
20- # CHECK: create_generated_clock -source clk1 -multiply_by 5 {[[gen_clk2_port_ptr]]}
24+ # CHECK: create_generated_clock -source {[[clk1_port_ptr]]} -multiply_by 5 {[[gen_clk2_port_ptr]]}
2125create_generated_clock -source clk1 -multiply_by 5 gen_clk2
2226
23- # CHECK: create_generated_clock -name gen_clk_custom_name -source clk1 -multiply_by 6 {[[gen_clk3_port_ptr]]}
27+ # CHECK: create_generated_clock -name gen_clk_custom_name -source {[[clk1_port_ptr]]} -multiply_by 6 {[[gen_clk3_port_ptr]]}
2428create_generated_clock -name gen_clk_custom_name -source clk1 -multiply_by 6 gen_clk3
2529
26- # CHECK: create_generated_clock -name gen_clk4 -source clk1 -multiply_by 8 -add {[[gen_clk2_port_ptr]]}
30+ # CHECK: create_generated_clock -name gen_clk4 -source {[[clk1_port_ptr]]} -multiply_by 8 -add {[[gen_clk2_port_ptr]]}
2731create_generated_clock -name gen_clk4 -source clk1 -multiply_by 8 gen_clk2 -add
32+
33+ # CHECK: create_generated_clock -name gen_clk5 -source {[[clk1_port_ptr]]} -divide_by 2
34+ create_generated_clock -name gen_clk5 -source clk1 -divide_by 2
35+
36+ # CHECK: create_generated_clock -source {[[clk4_port_ptr]] [[clk4_net_ptr]]} -divide_by 2 {[[gen_clk1_port_ptr]]}
37+ create_generated_clock -source clk4 -divide_by 2 gen_clk1
0 commit comments