11load ("@bazel-orfs//:openroad.bzl" , "orfs_flow" )
2- load ("@bazel-orfs//:sweep.bzl" , "orfs_sweep" )
3- load ("//util:plot_congestion.bzl" , "plot_congestion" )
4-
5- # Format densities, rounding to 2 decimal places.
6- SWEEPS = {
7- "PLACE_DENSITY" : [str (0.82 + x * 0.01 + 0.005 )[:4 ] for x in range (10 )],
8- }
9-
10- SWEEP = "PLACE_DENSITY"
112
123filegroup (
134 name = "mock-array-constraints" ,
@@ -38,13 +29,15 @@ orfs_flow(
3829 "MACRO_PLACE_HALO" : "0 2.16" ,
3930 "RTLMP_BOUNDARY_WT" : "0" ,
4031 "PDN_TCL" : "$(PLATFORM_DIR)/openRoad/pdn/BLOCKS_grid_strategy.tcl" ,
41- "MACRO_HALO_X " : "0.5" ,
42- "MACRO_HALO_Y " : "0.5" ,
32+ "MACRO_ROWS_HALO_X " : "0.5" ,
33+ "MACRO_ROWS_HALO_Y " : "0.5" ,
4334 "MACRO_BLOCKAGE_HALO" : "0" ,
4435 "MAX_ROUTING_LAYER" : "M9" ,
4536 "GDS_ALLOW_EMPTY" : "Element" ,
46- "PWR_NETS_VOLTAGEsS " : "" ,
37+ "PWR_NETS_VOLTAGES " : "" ,
4738 "GND_NETS_VOLTAGES" : "" ,
39+ "IO_PLACER_V" : "M5 M7" ,
40+ "IO_PLACER_H" : "M4 M6" ,
4841 },
4942 macros = ["Element_generate_abstract" ],
5043 sources = {
@@ -65,7 +58,7 @@ filegroup(
6558 visibility = [":__subpackages__" ],
6659)
6760
68- orfs_sweep (
61+ orfs_flow (
6962 name = "Element" ,
7063 abstract_stage = "route" ,
7164 arguments = {
@@ -84,28 +77,9 @@ orfs_sweep(
8477 "CORE_AREA" : "1.08 1.08 42.120000000000005 42.120000000000005" ,
8578 "PDN_TCL" : "$(PLATFORM_DIR)/openRoad/pdn/BLOCK_grid_strategy.tcl" ,
8679 },
87- other_variants = {"base" : {}},
8880 sources = {
8981 "IO_CONSTRAINTS" : [":mock-array-element-io" ],
9082 "SDC_FILE" : [":mock-array-constraints" ],
9183 },
92- sweep = {
93- value : {
94- "arguments" : {
95- SWEEP : value ,
96- },
97- "previous_stage" : {
98- "floorplan" : "Element_synth" ,
99- },
100- }
101- for value in SWEEPS [SWEEP ]
102- },
10384 verilog_files = ["//designs/src/mock-array:verilog" ],
10485)
105-
106- plot_congestion (
107- name = "plot" ,
108- srcs = [":Element_{value}_grt" .format (value = value ) for value in SWEEPS [SWEEP ]],
109- argument = SWEEP ,
110- values = SWEEPS [SWEEP ],
111- )
0 commit comments