Skip to content

Commit badbf35

Browse files
committed
Merge branch 'master' of github.com:The-OpenROAD-Project-private/OpenROAD-flow-scripts
2 parents 79b2eef + c9c22ca commit badbf35

197 files changed

Lines changed: 295101 additions & 16680 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ flow/platforms/*
6363
!flow/platforms/sky130io
6464
!flow/platforms/sky130ram
6565
!flow/platforms/gf180
66+
!flow/platforms/gt2n
6667
flow/private
6768

6869
# network

‎docs/user/FlowVariables.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ configuration file.
310310
| <a name="SYNTH_RETIME_MODULES"></a>SYNTH_RETIME_MODULES| *This is an experimental option and may cause adverse effects.* *No effort has been made to check if the retimed RTL is logically equivalent to the non-retimed RTL.* List of modules to apply automatic retiming to. These modules must not get dissolved and as such they should either be the top module or be included in SYNTH_KEEP_MODULES. The main use case is to quickly identify if performance can be improved by manually retiming the input RTL. Retiming will treat module ports like register endpoints/startpoints. The objective function of retiming isn't informed by SDC, even the clock period is ignored. As such, retiming will optimize for best delay at potentially high register number cost. Automatic retiming can produce suboptimal results as its timing model is crude and it doesn't find the optimal distribution of registers on long pipelines. See OR discussion # 8080.| |
311311
| <a name="SYNTH_SKIP_KEEP"></a>SYNTH_SKIP_KEEP| Only meaningful together with SYNTH_CHECKPOINT. When set, signals that the supplied checkpoint is still canonical RTLIL (coarse synth and `keep_hierarchy` have not been run yet), so synth.tcl runs the full coarse+fine synthesis flattened. When unset and SYNTH_CHECKPOINT is used, synth.tcl assumes the checkpoint already has coarse synth + `keep_hierarchy` done and resumes from `coarse:fine`.| 0|
312312
| <a name="SYNTH_SLANG_ARGS"></a>SYNTH_SLANG_ARGS| Additional arguments passed to the slang frontend during synthesis.| |
313+
| <a name="SYNTH_USE_SYN"></a>SYNTH_USE_SYN| If set to 1, run synthesis using the "syn" tool built into OpenROAD (the synth_syn.tcl flow) instead of the default Yosys-based flow. Defaults to 0 (Yosys flow).| 0|
313314
| <a name="SYNTH_WRAPPED_ADDERS"></a>SYNTH_WRAPPED_ADDERS| Specify the adder modules that can be used for synthesis, separated by commas. The default adder module is determined by the first element of this variable.| |
314315
| <a name="SYNTH_WRAPPED_MULTIPLIERS"></a>SYNTH_WRAPPED_MULTIPLIERS| Specify the multiplier modules that can be used for synthesis, separated by commas. The default multiplier module is determined by the first element of this variable.| |
315316
| <a name="SYNTH_WRAPPED_OPERATORS"></a>SYNTH_WRAPPED_OPERATORS| Synthesize multiple architectural options for each arithmetic operator in the design. These options are available for switching among in later stages of the flow.| |
@@ -348,6 +349,7 @@ configuration file.
348349
- [PRE_SYNTH_TCL](#PRE_SYNTH_TCL)
349350
- [SDC_FILE](#SDC_FILE)
350351
- [SDC_GUT](#SDC_GUT)
352+
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
351353
- [SLANG_PLUGIN_PATH](#SLANG_PLUGIN_PATH)
352354
- [SYNTH_ARGS](#SYNTH_ARGS)
353355
- [SYNTH_BLACKBOXES](#SYNTH_BLACKBOXES)
@@ -370,6 +372,7 @@ configuration file.
370372
- [SYNTH_RETIME_MODULES](#SYNTH_RETIME_MODULES)
371373
- [SYNTH_SKIP_KEEP](#SYNTH_SKIP_KEEP)
372374
- [SYNTH_SLANG_ARGS](#SYNTH_SLANG_ARGS)
375+
- [SYNTH_USE_SYN](#SYNTH_USE_SYN)
373376
- [SYNTH_WRAPPED_ADDERS](#SYNTH_WRAPPED_ADDERS)
374377
- [SYNTH_WRAPPED_MULTIPLIERS](#SYNTH_WRAPPED_MULTIPLIERS)
375378
- [TIEHI_CELL_AND_PORT](#TIEHI_CELL_AND_PORT)

‎flow/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ floorplan_to_place: $(RESULTS_DIR)/1_synth.odb $(RESULTS_DIR)/1_synth.sdc
404404

405405
# ==============================================================================
406406

407+
ifeq ($(SYNTH_USE_SYN),1)
408+
$(eval $(call do-step,1_synth,$(VERILOG_FILES) $(SDC_FILE) $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(LIB_FILES),synth_syn))
409+
else
407410
$(eval $(call do-step,1_synth,$(RESULTS_DIR)/1_2_yosys.v $(RESULTS_DIR)/1_2_yosys.sdc $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(LIB_FILES),synth_odb))
411+
endif
408412

409413
$(RESULTS_DIR)/1_synth.sdc: $(RESULTS_DIR)/1_synth.odb
410414

@@ -669,7 +673,7 @@ $(WRAPPED_GDSOAS): $(OBJECTS_DIR)/klayout_wrap.lyt $(WRAPPED_LEFS)
669673

670674
# Merge GDS using Klayout
671675
#-------------------------------------------------------------------------------
672-
$(GDS_MERGED_FILE): check-klayout $(RESULTS_DIR)/6_final.def $(OBJECTS_DIR)/klayout.lyt $(GDSOAS_FILES) $(WRAPPED_GDSOAS) $(SEAL_GDSOAS)
676+
$(GDS_MERGED_FILE): $(RESULTS_DIR)/6_final.def $(OBJECTS_DIR)/klayout.lyt $(GDSOAS_FILES) $(WRAPPED_GDSOAS) $(SEAL_GDSOAS) | check-klayout
673677
$(UNSET_AND_MAKE) do-gds-merged
674678

675679
.PHONY: do-gds-merged

‎flow/designs/asap7/aes-block/rules-base.json‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"synth__canonical_netlist__hash": {
3-
"value": "83fdb355d67936eac58202298e680864403e2e7c",
3+
"value": "3fc8a6d24fdb16116484d2eed15ff2dbe4531126",
44
"compare": "==",
55
"level": "warning"
66
},
@@ -10,39 +10,39 @@
1010
"level": "warning"
1111
},
1212
"synth__design__instance__area__stdcell": {
13-
"value": 1930.0,
13+
"value": 631.0,
1414
"compare": "<="
1515
},
1616
"constraints__clocks__count": {
1717
"value": 1,
1818
"compare": "=="
1919
},
2020
"placeopt__design__instance__area": {
21-
"value": 6699,
21+
"value": 6705,
2222
"compare": "<="
2323
},
2424
"placeopt__design__instance__count__stdcell": {
25-
"value": 9621,
25+
"value": 10214,
2626
"compare": "<="
2727
},
2828
"detailedplace__design__violations": {
2929
"value": 0,
3030
"compare": "=="
3131
},
3232
"cts__design__instance__count__setup_buffer": {
33-
"value": 837,
33+
"value": 888,
3434
"compare": "<="
3535
},
3636
"cts__design__instance__count__hold_buffer": {
37-
"value": 837,
37+
"value": 888,
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -89.2,
41+
"value": -84.1,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -3220.0,
45+
"value": -4320.0,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {
@@ -58,11 +58,11 @@
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
61-
"value": -22.5,
61+
"value": -31.1,
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -90.0,
65+
"value": -174.0,
6666
"compare": ">="
6767
},
6868
"globalroute__timing__hold__ws": {
@@ -74,7 +74,7 @@
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 49870,
77+
"value": 50261,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {
@@ -90,11 +90,11 @@
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
93-
"value": -31.5,
93+
"value": -56.6,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -123.0,
97+
"value": -1520.0,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {
@@ -106,7 +106,7 @@
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {
109-
"value": 6742,
109+
"value": 6750,
110110
"compare": "<="
111111
}
112112
}

‎flow/designs/asap7/aes-mbff/rules-base.json‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,35 @@
1414
"compare": "<="
1515
},
1616
"constraints__clocks__count": {
17-
"value": 1,
17+
"value": 2,
1818
"compare": "=="
1919
},
2020
"placeopt__design__instance__area": {
21-
"value": 1898,
21+
"value": 1897,
2222
"compare": "<="
2323
},
2424
"placeopt__design__instance__count__stdcell": {
25-
"value": 18142,
25+
"value": 18134,
2626
"compare": "<="
2727
},
2828
"detailedplace__design__violations": {
2929
"value": 0,
3030
"compare": "=="
3131
},
3232
"cts__design__instance__count__setup_buffer": {
33-
"value": 1578,
33+
"value": 1577,
3434
"compare": "<="
3535
},
3636
"cts__design__instance__count__hold_buffer": {
37-
"value": 1578,
37+
"value": 1577,
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -21.6,
41+
"value": -20.8,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -78.6,
45+
"value": -77.8,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {
@@ -58,11 +58,11 @@
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
61-
"value": -19.5,
61+
"value": -19.0,
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -76.5,
65+
"value": -76.0,
6666
"compare": ">="
6767
},
6868
"globalroute__timing__hold__ws": {
@@ -74,7 +74,7 @@
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 68982,
77+
"value": 69120,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {
@@ -90,11 +90,11 @@
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
93-
"value": -19.0,
93+
"value": -20.8,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -76.0,
97+
"value": -77.8,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {
@@ -106,7 +106,7 @@
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {
109-
"value": 1947,
109+
"value": 1942,
110110
"compare": "<="
111111
}
112112
}

‎flow/designs/asap7/aes/config.mk‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ export DESIGN_NICKNAME = aes
66
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
77
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
88

9-
export ABC_AREA = 1
10-
119
export CORE_UTILIZATION = 70
1210
export CORE_ASPECT_RATIO = 1
1311
export CORE_MARGIN = 2
@@ -27,3 +25,4 @@ else ifeq ($(FLOW_VARIANT),combine)
2725
$(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/blackbox/1_synth.v
2826
endif
2927

28+
export SYNTH_USE_SYN = 1

‎flow/designs/asap7/aes/constraint.sdc‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ set clk_io_pct 0.2
66
set clk_port [get_ports $clk_port_name]
77

88
create_clock -name $clk_name -period $clk_period $clk_port
9+
set clk_io_name vclk_$clk_name
10+
create_clock -name $clk_io_name -period $clk_period
11+
set_clock_latency 77.930 [get_clocks $clk_name]
12+
set_clock_latency 77.930 [get_clocks $clk_io_name]
913

1014
set non_clock_inputs [all_inputs -no_clocks]
1115

12-
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_name $non_clock_inputs
13-
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_name [all_outputs]
16+
set_input_delay [expr $clk_period * $clk_io_pct] -clock $clk_io_name $non_clock_inputs
17+
set_output_delay [expr $clk_period * $clk_io_pct] -clock $clk_io_name [all_outputs]

‎flow/designs/asap7/aes/rules-base.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
22
"synth__canonical_netlist__hash": {
3-
"value": "3882365f5e814a21a600274234b3a087270968d4",
3+
"value": "N/A",
44
"compare": "==",
55
"level": "warning"
66
},
77
"synth__netlist__hash": {
8-
"value": "a04d44da52dba7d4a701d80927ba32d1d89ef9a1",
8+
"value": "N/A",
99
"compare": "==",
1010
"level": "warning"
1111
},
1212
"synth__design__instance__area__stdcell": {
13-
"value": 1780.0,
13+
"value": 1610.0,
1414
"compare": "<="
1515
},
1616
"constraints__clocks__count": {
17-
"value": 1,
17+
"value": 2,
1818
"compare": "=="
1919
},
2020
"placeopt__design__instance__area": {
21-
"value": 1849,
21+
"value": 1614,
2222
"compare": "<="
2323
},
2424
"placeopt__design__instance__count__stdcell": {
25-
"value": 17477,
25+
"value": 14476,
2626
"compare": "<="
2727
},
2828
"detailedplace__design__violations": {
2929
"value": 0,
3030
"compare": "=="
3131
},
3232
"cts__design__instance__count__setup_buffer": {
33-
"value": 1520,
33+
"value": 1259,
3434
"compare": "<="
3535
},
3636
"cts__design__instance__count__hold_buffer": {
37-
"value": 1520,
37+
"value": 1259,
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -19.0,
41+
"value": -28.9,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -76.0,
45+
"value": -119.0,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {
@@ -58,11 +58,11 @@
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
61-
"value": -19.5,
61+
"value": -28.0,
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -76.6,
65+
"value": -164.0,
6666
"compare": ">="
6767
},
6868
"globalroute__timing__hold__ws": {
@@ -74,7 +74,7 @@
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 60637,
77+
"value": 57961,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {
@@ -90,11 +90,11 @@
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
93-
"value": -20.8,
93+
"value": -24.2,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -77.8,
97+
"value": -87.7,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {
@@ -106,7 +106,7 @@
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {
109-
"value": 1884,
109+
"value": 1664,
110110
"compare": "<="
111111
}
112112
}

‎flow/designs/asap7/aes_lvt/config.mk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export ASAP7_USE_VT = LVT
1818

1919
export RECOVER_POWER = 100
2020

21-
21+
export SYNTH_USE_SYN = 1

‎flow/designs/asap7/aes_lvt/rules-base.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"synth__canonical_netlist__hash": {
3-
"value": "7cb97d6d20f0fb4831af6dc20aea1d411aecc09a",
3+
"value": "N/A",
44
"compare": "==",
55
"level": "warning"
66
},
77
"synth__netlist__hash": {
8-
"value": "d84684a5256bf993bde8bccdff31af8237663019",
8+
"value": "N/A",
99
"compare": "==",
1010
"level": "warning"
1111
},

0 commit comments

Comments
 (0)