----------- 0 1 """ max_usage_ratio_2d = [[0.8, 0.7], [0.85, 0.75], [0.85, 0.85], [0.85, 0.75]] ##################### DON'T TOUCH THE SECTION BELOW ################################# target_dir = 'autobridge' formator = FormatHLS( rpt_path=f'{solution_path}/syn/report/', hls_sche_path=f'{solution_path}/.autopilot/db/', top_hdl_path=f'{solution_path}/syn/verilog/{top_name}_{top_name}.v', top_name=top_name, DDR_loc_2d_x=DDR_loc_2d_x, DDR_loc_2d_y=DDR_loc_2d_y, DDR_enable=DDR_enable, max_usage_ratio_2d=max_usage_ratio_2d, board_name=board_name, target_dir=target_dir, relay_station_count=lambda x: 2 * x, # how many levels of relay stations to add for x-unit of crossing max_search_time=600, NaiveBalance=True) # run floorplanning g = graph.Graph(formator) # move results to target dir if (os.path.isdir(target_dir)): subprocess.run(['rm', '-rf', f'{target_dir}']) subprocess.run(['mkdir', f'{target_dir}/'])
NaiveBalance = True #----------------------------- target_dir = 'kernel0_u250_autobridge' formator = FormatHLS(rpt_path=rpt_path, hls_sche_path=hls_sche_path, top_hdl_path=top_hdl_path, top_name=top_name, DDR_loc_2d_x=DDR_loc_2d_x, DDR_loc_2d_y=DDR_loc_2d_y, DDR_enable=DDR_enable, max_usage_ratio_2d=max_usage_ratio_2d, column=column, board_name=board_name, coorinate_expansion_ratio=2, max_width_threshold=10000, NUM_PER_SLR_HORIZONTAL=4, horizontal_cross_weight=0.7, target_dir=target_dir, relay_station_count=relay_station_count, relay_station_template=relay_station_template, constraint_edge=constraint_edge, constraint_marked_edge=constraint_marked_edge, only_keep_rs_hierarchy=only_keep_rs_hierarchy, max_search_time=max_search_time, NaiveBalance=NaiveBalance) g = graph.Graph(formator) ################