The invention provides a python-based
clock tree
visualization implementation method and
system, and relates to the technical field of integrated circuits, and the method comprises the steps: reading an sdc file, extracting all
clock information according to a grammar rule of the sdc file, and storing the
clock information into a first dictionary according to names; reading the
netlist, obtaining port information of all modules, and storing the port information into a second dictionary according to the names of the modules; reading a file of the
library file, extracting port information of each module, and supplementing the port information to a second dictionary; all clock paths in the sdc are traced, and a fourth dictionary only containing all clock paths is generated; according to the fourth dictionary, dividing and drawing a port connection relationship in each module according to the modules, and forming a
circuit diagram of each module; and developing a graphical interface for displaying the drawn
circuit diagram, and setting functional keys in the interface. According to the method, a complete clock path and an integrally designed clock structure can be presented, a graphical interface can be provided, and the clock structure and the clock path can be visually viewed.