Skip to content

Commit

Permalink
Merge pull request #2552 from The-OpenROAD-Project-staging/secure-flo…
Browse files Browse the repository at this point in the history
…w-new_ungrouping

New ungrouping logic
  • Loading branch information
maliberty authored Jan 10, 2025
2 parents d29133c + 913f2dd commit faaca5d
Show file tree
Hide file tree
Showing 22 changed files with 1,924 additions and 1,854 deletions.
12 changes: 1 addition & 11 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ include $(PLATFORM_DIR)/config.mk
# is no way to escape space in defaults.py and get "foreach" to work.
$(foreach line,$(shell $(SCRIPTS_DIR)/defaults.py),$(eval export $(subst __SPACE__, ,$(line))))

# Enables hierarchical yosys
export SYNTH_STATS = $(RESULTS_DIR)/synth_stats.txt
export SYNTH_STATS_SCRIPT = $(SCRIPTS_DIR)/synth_stats.tcl
# If the design, nor $(PLATFORM_DIR)/config.mk provided a default, provide one here
export MAX_UNGROUP_SIZE ?= 0

Expand Down Expand Up @@ -454,13 +451,6 @@ memory:

export SYNTH_SCRIPT ?= $(SCRIPTS_DIR)/synth.tcl
export SYNTH_MEMORY_MAX_BITS ?= 4096

.PHONY: do-yosys-stats
do-yosys-stats:
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)
(export VERILOG_FILES=$(RESULTS_DIR)/1_synth.rtlil; \
$(TIME_CMD) $(YOSYS_EXE) $(YOSYS_FLAGS) -c $(SYNTH_STATS_SCRIPT)) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys_stats.log)

export SDC_FILE_CLOCK_PERIOD = $(RESULTS_DIR)/clock_period.txt

$(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)
Expand All @@ -487,7 +477,7 @@ $(RESULTS_DIR)/1_synth.rtlil: $(YOSYS_DEPENDENCIES)
$(UNSET_AND_MAKE) do-yosys-canonicalize

$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
$(UNSET_AND_MAKE) do-yosys-stats do-yosys
$(UNSET_AND_MAKE) do-yosys

.PHONY: do-synth
do-synth:
Expand Down
488 changes: 243 additions & 245 deletions flow/designs/asap7/aes-block/metadata-base-ok.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions flow/designs/asap7/aes-block/rules-base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"synth__design__instance__area__stdcell": {
"value": 2310.54,
"value": 2293.17,
"compare": "<="
},
"constraints__clocks__count": {
Expand All @@ -12,27 +12,27 @@
"compare": "<="
},
"placeopt__design__instance__count__stdcell": {
"value": 12203,
"value": 11853,
"compare": "<="
},
"detailedplace__design__violations": {
"value": 0,
"compare": "=="
},
"cts__design__instance__count__setup_buffer": {
"value": 1061,
"value": 1031,
"compare": "<="
},
"cts__design__instance__count__hold_buffer": {
"value": 1061,
"value": 1031,
"compare": "<="
},
"globalroute__antenna_diodes_count": {
"value": 0,
"compare": "<="
},
"detailedroute__route__wirelength": {
"value": 98764,
"value": 88188,
"compare": "<="
},
"detailedroute__route__drc_errors": {
Expand All @@ -48,15 +48,15 @@
"compare": "<="
},
"finish__timing__setup__ws": {
"value": -164.76,
"value": -198.03,
"compare": ">="
},
"finish__design__instance__area": {
"value": 7462,
"value": 7443,
"compare": "<="
},
"finish__timing__drv__setup_violation_count": {
"value": 531,
"value": 515,
"compare": "<="
},
"finish__timing__drv__hold_violation_count": {
Expand Down
2 changes: 1 addition & 1 deletion flow/designs/asap7/riscv32i/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export RTLMP_MAX_INST = 3500
export RTLMP_MIN_MACRO = 1
export RTLMP_MAX_MACRO = 5

export MAX_UNGROUP_SIZE ?= 1000
export MAX_UNGROUP_SIZE ?= 10000

export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/riscv32i/*.v))
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/riscv32i/constraint.sdc
Expand Down
Loading

0 comments on commit faaca5d

Please sign in to comment.