DREAMPlace: LEF/DEF Format error

Hi, Prof. Lin.

I really appreciate your help with the installation of our environment. However, I still have a problem when running DREAMPlace with LEF/DEF file format. I extracted LEF/DEF format file after macro placement of our chip design from IC Compiler II Tool.

But the result looks unnormal. The process is terminated with the below error.

========================================================
                       DREAMPlace
            Yibo Lin (http://yibolin.com)
   David Z. Pan (http://users.ece.utexas.edu/~dpan)
========================================================
[INFO   ] DREAMPlace - parameters = {'aux_input': '', 'lef_input': 'design.lef', 'def_input': 'design.def', 'verilog_input': '', 'gpu': 1, 'num_bins_x': 512, 'num_bins_y': 512, 'global_place_stages': [{'num_bins_x': 512, 'num_bins_y': 512, 'iteration': 1000, 'learning_rate': 0.01, 'wirelength': 'weighted_average', 'optimizer': 'nesterov', 'Llambda_density_weight_iteration': 1, 'Lsub_iteration': 1}], 'target_density': 1.0, 'density_weight': 8e-05, 'random_seed': 1000, 'result_dir': 'results', 'scale_factor': 1.0, 'ignore_net_degree': 100, 'gp_noise_ratio': 0.025, 'enable_fillers': 1, 'global_place_flag': 1, 'legalize_flag': 1, 'detailed_place_flag': 1, 'stop_overflow': 0.07, 'dtype': 'float32', 'detailed_place_engine': '', 'detailed_place_command': '', 'plot_flag': 0, 'RePlAce_ref_hpwl': 350000, 'RePlAce_LOWER_PCOF': 0.95, 'RePlAce_UPPER_PCOF': 1.05, 'gamma': 4.0, 'RePlAce_skip_energy_flag': 0, 'random_center_init_flag': 1, 'sort_nets_by_degree': 0, 'num_threads': 8, 'dump_global_place_solution_flag': 0, 'dump_legalize_solution_flag': 0, 'routability_opt_flag': 0, 'route_num_bins_x': 512, 'route_num_bins_y': 512, 'node_area_adjust_overflow': 0.15, 'max_num_area_adjust': 3, 'adjust_nctugr_area_flag': 0, 'adjust_rudy_area_flag': 1, 'adjust_pin_area_flag': 1, 'area_adjust_stop_ratio': 0.01, 'route_area_adjust_stop_ratio': 0.01, 'pin_area_adjust_stop_ratio': 0.05, 'unit_horizontal_capacity': 1.5625, 'unit_vertical_capacity': 1.45, 'unit_pin_capacity': 0.058, 'max_route_opt_adjust_rate': 2.0, 'route_opt_adjust_exponent': 2.0, 'pin_stretch_ratio': 1.414213562, 'max_pin_opt_adjust_rate': 1.5, 'deterministic_flag': 0}
[INFO   ] lef_input = design.lef
[INFO   ] def_input = design.def
[INFO   ] verilog_input =
[INFO   ] bookshelf_aux_input =
[INFO   ] bookshelf_pl_input =
[INFO   ] def_size_input =
[INFO   ] def_output = design-out.def
[INFO   ] rpt_output =
[INFO   ] target_util = 0
[INFO   ] max_displace = 0
[INFO   ] bin size = (10, 10) #rows
[INFO   ] sbin size = (5, 5) #rows
[INFO   ] bin_space_threshold = 0.2
[INFO   ] abu = 2,10 5,5 10,2 20,1
[INFO   ] def_ignore_cells =
[INFO   ] macro_obs_aware_layers =
[INFO   ] enable_place = true
[INFO   ] enable_legalize = true
[INFO   ] evaluate_overlap = false
[INFO   ] move_multi_row_cell = true
[INFO   ] align_power_line = true
[INFO   ] cluster_cell = false
[INFO   ] sort_nets_by_degree = false
[INFO   ] file_format = DEF
[INFO   ] max_iters = 6
[INFO   ] reading design.lef
[INFO   ] set CORE site to gaunit, 700 x 1680
[INFO   ] set CORE site to unit, 140 x 1680
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file
[WARNING] unsupported shape 3 in LEF file

…

[INFO   ] reading design.def
[INFO   ] detect 1069 rows, 633339 components, 1370 IO pins, 638286 nets, 209 blockages
[WARNING] no layer specified by pin VDDI
[WARNING] no position or bounding box specified by pin VDDI, set to (0, 0, 0, 0)
[WARNING] no layer specified by pin VSSI
[WARNING] no position or bounding box specified by pin VSSI, set to (0, 0, 0, 0)
- PIN clk_i ;
  + PROPERTY ACCESS_DIRECTION 0 top STRING ;
END PINPROPERTIES
- PIN nsocdbgreset_i ;
  + PROPERTY ACCESS_DIRECTION 0 top STRING ;
END PINPROPERTIES
- PIN aclkenm0_i ;
  + PROPERTY ACCESS_DIRECTION 0 top STRING ;
END PINPROPERTIES
- PIN atclken_i ;
  + PROPERTY ACCESS_DIRECTION 0 top STRING ;
END PINPROPERTIES
- PIN ncpureset_i[3] ;
  + PROPERTY ACCESS_DIRECTION 0 top STRING ;
END PINPROPERTIES

…

[WARNING] no Bookshelf file specified
[WARNING] no additional Bookshelf .pl file specified
[WARNING] 0 nets with 0 pins from same nodes
[WARNING] 737 nets should be ignored due to not enough pins
[INFO   ] sort nodes in the order of movable and fixed
[INFO   ] Group cells for fence regions
[INFO   ] Construct 0 groups
[INFO   ] Fence region groups done
[DEBUG  ] num_terminals 316, numFixed 104, numPlaceBlockages 212, num_terminal_NIs 1370
[DEBUG  ] fixed area overlap: 2.86723e+12 fixed area total: 8.9364e+12, space area = 2.96215e+12
/home/wooshik.myung/MRX/DREAMPlace/install/dreamplace/PlaceDB.py:538: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  self.node2pin_map = np.array(self.node2pin_map)
/home/wooshik.myung/MRX/DREAMPlace/install/dreamplace/PlaceDB.py:543: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  self.net2pin_map = np.array(self.net2pin_map)
[INFO   ] DREAMPlace - set scale_factor = 0.00714286, as site_width = 140
[INFO   ] DREAMPlace - scale coordinate system by 0.00714286
[INFO   ] DREAMPlace -
================================= Benchmark Statistics =================================
#nodes = 634921, #terminals = 316, # terminal_NIs = 1370, #movable = 633235, #nets = 638286
die area = (14.2857, 14.2857, 23199.3, 12842.3) 2.97417e+08
row height = 12, site width = 1
num_bins = 2048x1024, bin sizes = 0.9434x1.04395
#pins = 2328700, #movable_pins = 2305180
total_movable_node_area = 8.21663e+07, total_fixed_node_area = 4.44939e+08, total_space_area = 1.5113e+08
utilization = 0.54368, target_density = 1
use placeable_area = 1.5113e+08 to compute fillers
total_filler_node_area = 6.89636e+07, #fillers = 563320, filler sizes = 10.202x12
========================================================================================
[INFO   ] DREAMPlace - reading benchmark takes 20.6048 seconds
[INFO   ] DREAMPlace - reading database takes 20.60 seconds
[INFO   ] DREAMPlace - move cells to the center of layout with random noise
[WARNING] DREAMPlace - net weights are all the same, ignored
[INFO   ] DREAMPlace - non-linear placement initialization takes 3.50 seconds
[INFO   ] DREAMPlace - 512x512 bins #bins 512x512, bin sizes 3.7736x2.08789, max_num_bins = 4, padding = 0
[INFO   ] dreamplace.ops.electric_potential.electric_potential - regard 0 cells as movable macros in global placement
[WARNING] DREAMPlace - quadratic density penalty is disabled, density weight update is forced to be based on HPWL
[INFO   ] DREAMPlace - use nesterov optimizer
[INFO   ] DREAMPlace - add 2.5% noise
[INFO   ] dreamplace.ops.electric_potential.electric_potential - fixed density map: average 558.362, max 1134.56, bin area 1134.56
[INFO   ] DREAMPlace - nesterov initialization takes 0.0205834 seconds
[INFO   ] DREAMPlace - density_weight = 8.911208E-12
[INFO   ] DREAMPlace - optimizer step 20.954 ms
[INFO   ] DREAMPlace - iteration    0, (   0,  0,  0), Obj 6.094683E+07, DensityWeight 0.000000E+00, HPWL 1.180129E+08, Overflow 9.995572E-01, MaxDensity 1.805E+04, gamma 2.813516E+03, time 3.525ms
[INFO   ] DREAMPlace - full step 30.917 ms
[INFO   ] DREAMPlace - optimizer step 14.852 ms
[INFO   ] DREAMPlace - iteration    1, (   1,  0,  0), Obj 4.726366E+07, DensityWeight 8.911208E-12, HPWL 1.207893E+08, Overflow 9.863314E-01, MaxDensity 2.112E+04, gamma 2.807148E+03, time 2.392ms
[INFO   ] DREAMPlace - full step 17.678 ms
[INFO   ] DREAMPlace - optimizer step 14.684 ms
[INFO   ] DREAMPlace - iteration    2, (   2,  0,  0), Obj 4.134486E+07, DensityWeight 8.888930E-12, HPWL 1.273907E+08, Overflow 9.762924E-01, MaxDensity 2.017E+04, gamma 2.623461E+03, time 2.383ms
[INFO   ] DREAMPlace - full step 17.502 ms
[INFO   ] DREAMPlace - optimizer step 15.428 ms
[INFO   ] DREAMPlace - iteration    3, (   3,  0,  0), Obj 3.963135E+07, DensityWeight 8.866707E-12, HPWL 1.243980E+08, Overflow 9.710488E-01, MaxDensity 2.116E+04, gamma 2.492101E+03, time 2.385ms
[INFO   ] DREAMPlace - full step 18.250 ms
[INFO   ] DREAMPlace - optimizer step 15.003 ms

…

[DEBUG  ] 2. move node 76983 from 16387.3 to 16366.3, blank (2184.29, 16387.3)
[DEBUG  ] 2. move node 77239 from 16383.3 to 16362.3, blank (1678.29, 16383.3)
[DEBUG  ] 2. move node 81008 from 16397.3 to 16386.3, blank (1678.29, 16397.3)
[DEBUG  ] 2. move node 87241 from 16396.3 to 16369.3, blank (10917.3, 16396.3)
[DEBUG  ] 2. move node 557420 from 16385.3 to 16374.3, blank (16293.3, 16385.3)
[DEBUG  ] 2. move node 550106 from 16393.3 to 16382.3, blank (16293.3, 16393.3)
[DEBUG  ] 2. move node 87961 from 16398.3 to 16387.3, blank (10917.3, 16398.3)

…

[ERROR  ] node 632857 (8331.29, 3758.29) failed to align to row 312 (3758.29, 3770.29) and site
[ERROR  ] node 632858 (8537.29, 3746.29) failed to align to row 311 (3746.29, 3758.29) and site
[ERROR  ] node 632861 (8727.29, 3758.29) failed to align to row 312 (3758.29, 3770.29) and site
[ERROR  ] node 632871 (8393.29, 3746.29) failed to align to row 311 (3746.29, 3758.29) and site
[ERROR  ] node 632872 (8259.29, 3746.29) failed to align to row 311 (3746.29, 3758.29) and site
[ERROR  ] node 632874 (8482.29, 3758.29) failed to align to row 312 (3758.29, 3770.29) and site
[ERROR  ] node 632911 (8288.29, 3758.29) failed to align to row 312 (3758.29, 3770.29) and site
[INFO   ] Legality check takes 8135.46 ms
[INFO   ] DREAMPlace - ABCDPlace input legal flag = 0
[INFO   ] DREAMPlace - detailed placement takes 8.140 seconds
[INFO   ] DREAMPlace - iteration  716, HPWL 1.284749E+08, time 0.311ms
[INFO   ] DREAMPlace - non-linear placement takes 46.42 seconds
[INFO   ] DREAMPlace - writing to results/design/design.gp.def
[INFO   ] writing placement to results/design/design.gp.def
[INFO   ] DREAMPlace - write SolutionFileFormat.DEF takes 4.010 seconds
[INFO   ] DREAMPlace - placement takes 71.039 seconds

Would you give me some advice to handle this problem? Thanks.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 26 (12 by maintainers)

Most upvoted comments

That’s good to know. I guess some numerical issues cause the placer regard single-row cells as multi-row cells during legalization. I will try looking into it this week.