Diego2
New Contributor
5 years agoget_clock_info -master_clock_pin returns nothing when the clock type is base
Hello
I created a base clock coming from a top-level port in the design. The problem I'm having is when I try to get the source clock pin using 'get_clock_info -master_clock_pin my_clk' it returns nothing. If I do that with a generated clock it works though.
tcl> create_clock -name "my_clk" -period 8 [get_ports clk]
tcl> create_generated_clock -name "my_clk_div2" -divide_by 2 -multiply_by 1 -source [get_ports clk] -master_clock clk_eri_sys______a_125_000k_c_p [get_nets clk_div2]
tcl> get_clock_info -master_clock_pin my_clk
<nothing>
tcl> get_clock_info -master_clock_pin my_clk_div2
clk
Is there any step that I'm missing?
With Vivado it's a bit clunky, but it works like this and it would return either a port or a pin name
tcl> get_property SOURCE_PINS [get_clocks <CLOCK_NAME>]
Thanks!