File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ load ("@bazel-orfs//:sweep.bzl" , "orfs_sweep" )
2+ load ("//util:plot_congestion.bzl" , "plot_congestion" )
3+
4+ # Format densities, rounding to 2 decimal places.
5+ SWEEPS = {
6+ "PLACE_DENSITY" : [str (0.35 + x * 0.01 + 0.005 )[:4 ] for x in range (65 )],
7+ "CORE_UTILIZATION" : [str (40 + x * 5 ) for x in range (4 )],
8+ }
9+
10+ SWEEP = "PLACE_DENSITY"
11+
12+ orfs_sweep (
13+ name = "gcd" ,
14+ arguments = {
15+ # Faster builds
16+ "SKIP_INCREMENTAL_REPAIR" : "1" ,
17+ "GPL_TIMING_DRIVEN" : "0" ,
18+ "SKIP_LAST_GASP" : "1" ,
19+ # Various
20+ "DIE_AREA" : "0 0 16.2 16.2" ,
21+ "CORE_AREA" : "1.08 1.08 15.12 15.12" ,
22+ "PLACE_DENSITY" : "0.35" ,
23+ "SDC_FILE" : "$(location :constraint.sdc)" ,
24+ },
25+ other_variants = {"base" : {}},
26+ sources = {
27+ "SDC_FILE" : [":constraint.sdc" ],
28+ },
29+ sweep = {
30+ value : {
31+ "arguments" : {
32+ SWEEP : value ,
33+ },
34+ "previous_stage" : {
35+ "floorplan" : "gcd_synth" ,
36+ },
37+ }
38+ for value in SWEEPS [SWEEP ]
39+ },
40+ verilog_files = ["//designs/src/gcd:verilog" ],
41+ )
42+
43+ plot_congestion (
44+ name = "plot" ,
45+ srcs = [":gcd_{value}_grt" .format (value = value ) for value in SWEEPS [SWEEP ]],
46+ argument = SWEEP ,
47+ values = SWEEPS [SWEEP ],
48+ )
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NAME)/constr
77
88export DIE_AREA = 0 0 16.2 16.2
99export CORE_AREA = 1.08 1.08 15.12 15.12
10+ # The goal of this design is to have a smoketest that builds quickly,
11+ # that said, this design will go through grt with a 0.99 placement density.
1012export PLACE_DENSITY = 0.35
1113
1214# a smoketest for this option, there are a
Original file line number Diff line number Diff line change 1+ filegroup (
2+ name = "verilog" ,
3+ srcs = glob (include = ["*.v" ]),
4+ visibility = ["//visibility:public" ],
5+ )
You can’t perform that action at this time.
0 commit comments