embeddedsw/XilinxProcessorIPLib/linux_drivers/tmrctr/data/tmrctr.tcl
git perforce import user a539aa2c1a Initial import of //Rodin/HEAD/data/embeddedsw/ from the state at revision #head
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 884492]
2014-04-09 17:06:57 +05:30

9 lines
282 B
Tcl
Executable file

proc generate {drv_handle} {
#adding clock frequency
set ip [get_cells $drv_handle]
set clk [get_pins -of_objects $ip "S_AXI_ACLK"]
if {[llength $clk] } {
set freq [get_property CLK_FREQ $clk]
set_property clock-frequency "$freq" $drv_handle
}
}