Skip to content

Commit 29bcaae

Browse files
committed
Merge branch 'master' into secure-rsz-default-max-fanout-50
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2 parents e266fe5 + cd435f0 commit 29bcaae

34 files changed

Lines changed: 294 additions & 150 deletions

‎docs/user/FlowVariables.md‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ configuration file.
177177
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
178178
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
179179
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
180-
| <a name="LEC_AUX_VERILOG_FILES"></a>LEC_AUX_VERILOG_FILES| Additional Verilog files (e.g. blackbox stubs) to include in LEC equivalence checks. Appended to the generated Verilog netlist before running the formal equivalence check.| |
181-
| <a name="LEC_CHECK"></a>LEC_CHECK| Perform a formal equivalence check between before and after netlists. If this fails, report an issue to OpenROAD.| 0|
180+
| <a name="LEC_AUX_VERILOG_FILES"></a>LEC_AUX_VERILOG_FILES| Additional Verilog files (e.g. blackbox stubs) to include in generated netlists for formal equivalence checks.| |
181+
| <a name="LEC_CHECK"></a>LEC_CHECK| Perform formal equivalence checks between before and after netlists. This checks CTS repair timing and the initial synthesis netlist against the final netlist. If this fails, report an issue to OpenROAD.| $(if $(wildcard $(KEPLER_FORMAL_EXE)),1,0)|
182182
| <a name="LIB_FILES"></a>LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| |
183183
| <a name="LIB_MODEL"></a>LIB_MODEL| Selects between NLDM and CCS timing models for the ASAP7 platform. Valid values: NLDM (default), CCS. Used in flow/platforms/asap7/config.mk to pick the LIB_DIR subdirectory and accumulate the corresponding $(CORNER)_$(LIB_MODEL)_LIB_FILES list, and in flow/scripts/load.tcl to gate CCS-specific Tcl branches.| NLDM|
184184
| <a name="MACRO_BLOCKAGE_HALO"></a>MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| |
185185
| <a name="MACRO_EXTENSION"></a>MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| |
186-
| <a name="MACRO_PLACEMENT_TCL"></a>MACRO_PLACEMENT_TCL| Specifies the path of a TCL file on how to place macros manually. The user may choose to place just some of the macros in the design. The macro placer will handle the remaining unplaced macros.| |
186+
| <a name="MACRO_PLACEMENT_TCL"></a>MACRO_PLACEMENT_TCL| Specifies the path of a TCL file on how to place macros manually. The user may choose to place just some of the macros in the design. The macro placer will handle the remaining unplaced macros. Note that using the macro placement file generated by the macro placer will not result in the same global placement as actually running the macro placer: the macro placement file does not contain the locations that the macro placer generates for the standard cells, and those locations impact global placement.| |
187187
| <a name="MACRO_PLACE_HALO"></a>MACRO_PLACE_HALO| Horizontal/vertical halo around macros (microns). Used by automatic macro placement.| |
188188
| <a name="MACRO_ROWS_HALO_X"></a>MACRO_ROWS_HALO_X| Horizontal distance between the edge of the macro and the beginning of the rows created by tapcell. Only available for ASAP7 PDK and GF180/uart-blocks design.| |
189189
| <a name="MACRO_ROWS_HALO_Y"></a>MACRO_ROWS_HALO_Y| Vertical distance between the edge of the macro and the beginning of the rows created by tapcell. Only available for ASAP7 PDK and GF180/uart-blocks design.| |
@@ -278,6 +278,7 @@ configuration file.
278278
| <a name="SDC_FILE"></a>SDC_FILE| The path to design constraint (SDC) file.| |
279279
| <a name="SDC_GUT"></a>SDC_GUT| Load design and remove all internal logic before doing synthesis. This is useful when creating a mock .lef abstract that has a smaller area than the amount of logic would allow. bazel-orfs uses this to mock SRAMs, for instance.| |
280280
| <a name="SEAL_GDS"></a>SEAL_GDS| Seal macro to place around the design.| |
281+
| <a name="SEC_CHECK"></a>SEC_CHECK| Perform a sequential equivalence check between the initial synthesis netlist and final netlist with the Kepler Formal PDR engine. If this fails, report an issue to OpenROAD.| 0|
281282
| <a name="SETUP_MOVE_SEQUENCE"></a>SETUP_MOVE_SEQUENCE| Passed as -sequence to repair_timing. This should be a string of move keywords separated by commas.| |
282283
| <a name="SETUP_SLACK_MARGIN"></a>SETUP_SLACK_MARGIN| Specifies a time margin for the slack when fixing setup violations. This option allows you to overfix or underfix(negative value, terminate retiming before 0 or positive slack). See HOLD_SLACK_MARGIN for more details.| 0|
283284
| <a name="SET_RC_TCL"></a>SET_RC_TCL| Metal & Via RC definition file path.| |
@@ -353,13 +354,16 @@ configuration file.
353354
- [DFF_MAP_FILE](#DFF_MAP_FILE)
354355
- [INFER_CLKGATES](#INFER_CLKGATES)
355356
- [LATCH_MAP_FILE](#LATCH_MAP_FILE)
357+
- [LEC_AUX_VERILOG_FILES](#LEC_AUX_VERILOG_FILES)
358+
- [LEC_CHECK](#LEC_CHECK)
356359
- [MIN_BUF_CELL_AND_PORTS](#MIN_BUF_CELL_AND_PORTS)
357360
- [NEG_CLKGATE_AND_PORTS](#NEG_CLKGATE_AND_PORTS)
358361
- [POST_SYNTH_TCL](#POST_SYNTH_TCL)
359362
- [POS_CLKGATE_AND_PORTS](#POS_CLKGATE_AND_PORTS)
360363
- [PRE_SYNTH_TCL](#PRE_SYNTH_TCL)
361364
- [SDC_FILE](#SDC_FILE)
362365
- [SDC_GUT](#SDC_GUT)
366+
- [SEC_CHECK](#SEC_CHECK)
363367
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
364368
- [SYNTH_ARGS](#SYNTH_ARGS)
365369
- [SYNTH_BLACKBOXES](#SYNTH_BLACKBOXES)
@@ -602,6 +606,8 @@ configuration file.
602606
- [CDL_FILE](#CDL_FILE)
603607
- [GDS_ALLOW_EMPTY](#GDS_ALLOW_EMPTY)
604608
- [GND_NETS_VOLTAGES](#GND_NETS_VOLTAGES)
609+
- [LEC_AUX_VERILOG_FILES](#LEC_AUX_VERILOG_FILES)
610+
- [LEC_CHECK](#LEC_CHECK)
605611
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
606612
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
607613
- [POST_DENSITY_FILL_TCL](#POST_DENSITY_FILL_TCL)
@@ -611,6 +617,7 @@ configuration file.
611617
- [PWR_NETS_VOLTAGES](#PWR_NETS_VOLTAGES)
612618
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
613619
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
620+
- [SEC_CHECK](#SEC_CHECK)
614621
- [SKIP_DETAILED_ROUTE](#SKIP_DETAILED_ROUTE)
615622
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
616623

‎flow/Makefile‎

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ $(eval $(call OPEN_GUI_SHORTCUT,$(1),$(1).odb))
404404
endif
405405

406406
.PHONY: do-$(1)
407-
do-$(1): $(OBJECTS_DIR)/copyright.txt
407+
do-$(1): $(DO_STEP_DEPS_$(1)) $(OBJECTS_DIR)/copyright.txt
408408
$(SCRIPTS_DIR)/flow.sh $(1) $(3)
409409
endef
410410

@@ -447,6 +447,26 @@ endif
447447

448448
$(RESULTS_DIR)/1_synth.sdc: $(RESULTS_DIR)/1_synth.odb
449449

450+
FORMAL_CHECK_DEPS =
451+
ifneq ($(filter 1,$(LEC_CHECK) $(SEC_CHECK)),)
452+
FORMAL_CHECK_DEPS += $(RESULTS_DIR)/1_synth_lec.v
453+
endif
454+
455+
.PHONY: check-kepler-formal
456+
check-kepler-formal:
457+
@if [ ! -x "$(KEPLER_FORMAL_EXE)" ]; then \
458+
echo "Error: Kepler Formal not found. Install Kepler Formal or set KEPLER_FORMAL_EXE."; \
459+
echo "Hint: Kepler Formal is needed when LEC_CHECK=1 or SEC_CHECK=1."; \
460+
exit 1; \
461+
fi
462+
463+
$(RESULTS_DIR)/1_synth_lec.v: $(RESULTS_DIR)/1_synth.odb $(RESULTS_DIR)/1_synth.sdc
464+
$(UNSET_AND_MAKE) do-1_synth
465+
466+
ifneq ($(filter 1,$(LEC_CHECK) $(SEC_CHECK)),)
467+
$(RESULTS_DIR)/1_synth_lec.v: | check-kepler-formal
468+
endif
469+
450470
$(eval $(call do-step,2_1_floorplan,$(RESULTS_DIR)/1_synth.odb $(RESULTS_DIR)/1_synth.sdc $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(FOOTPRINT) $(SIG_MAP_FILE) $(FOOTPRINT_TCL) $(LIB_FILES) $(IO_CONSTRAINTS),floorplan))
451471

452472
$(eval $(call do-copy,2_floorplan,2_1_floorplan.sdc,,.sdc))
@@ -545,8 +565,16 @@ cts: $(RESULTS_DIR)/4_cts.odb \
545565

546566
# Run TritonCTS
547567
# ------------------------------------------------------------------------------
568+
ifeq ($(LEC_CHECK),1)
569+
DO_STEP_DEPS_4_1_cts += check-kepler-formal
570+
endif
571+
548572
$(eval $(call do-step,4_1_cts,$(RESULTS_DIR)/3_place.odb $(RESULTS_DIR)/3_place.sdc,cts))
549573

574+
ifeq ($(LEC_CHECK),1)
575+
$(RESULTS_DIR)/4_1_cts.odb: | check-kepler-formal
576+
endif
577+
550578
$(RESULTS_DIR)/4_cts.sdc: $(RESULTS_DIR)/4_cts.odb
551579

552580
$(eval $(call do-copy,4_cts,4_1_cts.odb))
@@ -651,7 +679,15 @@ $(eval $(call do-step,6_1_fill,$(RESULTS_DIR)/5_route.odb $(RESULTS_DIR)/5_route
651679

652680
$(eval $(call do-copy,6_1_fill,5_route.sdc,,.sdc))
653681

654-
$(eval $(call do-step,6_report,$(RESULTS_DIR)/6_1_fill.odb $(RESULTS_DIR)/6_1_fill.sdc,final_report,.log,$(LOG_DIR)))
682+
ifneq ($(filter 1,$(LEC_CHECK) $(SEC_CHECK)),)
683+
DO_STEP_DEPS_6_report += check-kepler-formal
684+
endif
685+
686+
$(eval $(call do-step,6_report,$(RESULTS_DIR)/6_1_fill.odb $(RESULTS_DIR)/6_1_fill.sdc $(FORMAL_CHECK_DEPS),final_report,.log,$(LOG_DIR)))
687+
688+
ifneq ($(filter 1,$(LEC_CHECK) $(SEC_CHECK)),)
689+
$(LOG_DIR)/6_report.log: | check-kepler-formal
690+
endif
655691

656692
# final_report writes 6_final.sdc alongside 6_final.odb (constraints are
657693
# unchanged during finishing), mirroring how synth writes 1_synth.sdc.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"synth__canonical_netlist__hash": {
3-
"value": "583be2e7c135e29c3f1278b5b89263ff2a1f0891",
3+
"value": "ebaa691cab308fe6bb4b8b1d587926ac20ea4f68",
44
"compare": "==",
55
"level": "warning"
66
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 57763,
77+
"value": 57175,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {

‎flow/designs/gf12/ariane/rules-base.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -50800.0,
45+
"value": -236000.0,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {

‎flow/designs/gf12/tinyRocket/config.mk‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ export WRAP_LIBS = $(PLATFORM_DIR)/lib/gf12_1rf_lg6_w32_all_ffpg_sigcmin_0p
2525
export ADDITIONAL_GDS = $(PLATFORM_DIR)/gds/gf12_1rf_lg6_w32_all.gds2 \
2626
$(PLATFORM_DIR)/gds/gf12_1rf_lg6_w32_byte.gds2
2727

28-
# These values must be multiples of placement site
29-
export DIE_AREA = 0 0 400.008 399.84
30-
export CORE_AREA = 19.992 20.16 380.016 380.16
28+
export CORE_UTILIZATION = 50
3129

3230
export PLACE_DENSITY = 0.20
3331

‎flow/designs/gf12/tinyRocket/constraint.sdc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set clk_name core_clock
22
set clk_port_name clock
3-
set clk_period 800
3+
set clk_period 525
44
set clk_io_pct 0.2
55

66
set clk_port [get_ports $clk_port_name]

‎flow/designs/gf12/tinyRocket/rules-base.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"compare": "=="
1919
},
2020
"placeopt__design__instance__area": {
21-
"value": 16624,
21+
"value": 14729,
2222
"compare": "<="
2323
},
2424
"placeopt__design__instance__count__stdcell": {
@@ -38,43 +38,43 @@
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -40.0,
41+
"value": -149.0,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -1430.0,
45+
"value": -83300.0,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {
49-
"value": -40.0,
49+
"value": -26.2,
5050
"compare": ">="
5151
},
5252
"cts__timing__hold__tns": {
53-
"value": -160.0,
53+
"value": -105.0,
5454
"compare": ">="
5555
},
5656
"globalroute__antenna_diodes_count": {
5757
"value": 100,
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
61-
"value": -40.0,
61+
"value": -150.0,
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -160.0,
65+
"value": -74900.0,
6666
"compare": ">="
6767
},
6868
"globalroute__timing__hold__ws": {
69-
"value": -40.0,
69+
"value": -26.2,
7070
"compare": ">="
7171
},
7272
"globalroute__timing__hold__tns": {
73-
"value": -160.0,
73+
"value": -105.0,
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 477442,
77+
"value": 268129,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {
@@ -90,23 +90,23 @@
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
93-
"value": -40.0,
93+
"value": -126.0,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -160.0,
97+
"value": -40300.0,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {
101-
"value": -40.0,
101+
"value": -26.2,
102102
"compare": ">="
103103
},
104104
"finish__timing__hold__tns": {
105-
"value": -160.0,
105+
"value": -105.0,
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {
109-
"value": 17174,
109+
"value": 15300,
110110
"compare": "<="
111111
}
112112
}

‎flow/designs/gf180/aes-hybrid/rules-base.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -1.12,
41+
"value": -1.02,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
@@ -58,7 +58,7 @@
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
61-
"value": -1.1,
61+
"value": -1.06,
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
@@ -74,7 +74,7 @@
7474
"compare": ">="
7575
},
7676
"detailedroute__route__wirelength": {
77-
"value": 1477431,
77+
"value": 1436375,
7878
"compare": "<="
7979
},
8080
"detailedroute__route__drc_errors": {
@@ -90,7 +90,7 @@
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
93-
"value": -1.1,
93+
"value": -1.06,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
@@ -106,7 +106,7 @@
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {
109-
"value": 720794,
109+
"value": 716226,
110110
"compare": "<="
111111
}
112112
}

‎flow/designs/gf180/ibex/config.mk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export SYNTH_HDL_FRONTEND = slang
1212

1313
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
1414

15-
export CORE_UTILIZATION = 45
15+
export CORE_UTILIZATION = 60
1616
export PLACE_DENSITY_LB_ADDON = 0.1
1717

1818
export SWAP_ARITH_OPERATORS = 1

0 commit comments

Comments
 (0)