Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/user/FlowVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ configuration file.
| Variable | Description | Default |
| --- | --- | --- |
| <a name="ABC_AREA"></a>ABC_AREA| Strategies for Yosys ABC synthesis: Area/Speed. Default ABC_SPEED.| 0|
| <a name="ABC_CLOCK_PERIOD_IN_PS"></a>ABC_CLOCK_PERIOD_IN_PS| Clock period to be used by STA during synthesis. Default value read from `constraint.sdc`.| |
| <a name="ABC_DRIVER_CELL"></a>ABC_DRIVER_CELL| Default driver cell used during ABC synthesis.| |
| <a name="ABC_LOAD_IN_FF"></a>ABC_LOAD_IN_FF| During synthesis set_load value used.| |
| <a name="ABSTRACT_SOURCE"></a>ABSTRACT_SOURCE| Which .odb file to use to create abstract| |
Expand Down Expand Up @@ -342,7 +341,6 @@ configuration file.
## synth variables

- [ABC_AREA](#ABC_AREA)
- [ABC_CLOCK_PERIOD_IN_PS](#ABC_CLOCK_PERIOD_IN_PS)
- [ABC_DRIVER_CELL](#ABC_DRIVER_CELL)
- [ABC_LOAD_IN_FF](#ABC_LOAD_IN_FF)
- [ADDER_MAP_FILE](#ADDER_MAP_FILE)
Expand Down
9 changes: 0 additions & 9 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ memory:
# Run Synthesis using yosys
#-------------------------------------------------------------------------------

$(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)
$(UNSET_AND_MAKE) do-sdc-clock-period

.PHONY: do-sdc-clock-period
do-sdc-clock-period:
mkdir -p $(dir $(SDC_FILE_CLOCK_PERIOD))
echo $(ABC_CLOCK_PERIOD_IN_PS) > $(SDC_FILE_CLOCK_PERIOD)

.PHONY: yosys-dependencies
yosys-dependencies: $(YOSYS_DEPENDENCIES)

Expand Down Expand Up @@ -316,7 +308,6 @@ clean_synth:
rm -f $(REPORTS_DIR)/synth_*
rm -f $(LOG_DIR)/1_*
rm -f $(SYNTH_STATS)
rm -f $(SDC_FILE_CLOCK_PERIOD)

# ==============================================================================
# _____ _ ___ ___ ____ ____ _ _ _ _
Expand Down
2 changes: 0 additions & 2 deletions flow/designs/gf12/bp_dual/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export FOOTPRINT_TCL = $(PLATFORM_DIR)/bp/footprint.tcl
export DIE_AREA = 0 0 3000 3000
export CORE_AREA = 200 200 2800 2800

export ABC_CLOCK_PERIOD_IN_PS = 1250

export TNS_END_PERCENT = 0
export PLACE_DENSITY = 0.50

Expand Down
2 changes: 0 additions & 2 deletions flow/designs/gf12/bp_quad/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export FOOTPRINT_TCL = $(PLATFORM_DIR)/bp/footprint.tcl
export DIE_AREA = 0 0 3000 3000
export CORE_AREA = 200 200 2800 2800

export ABC_CLOCK_PERIOD_IN_PS = 1250

export TNS_END_PERCENT = 0
export PLACE_DENSITY = 0.40

Expand Down
2 changes: 0 additions & 2 deletions flow/designs/gf12/bp_single/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export FOOTPRINT_TCL = $(PLATFORM_DIR)/bp/footprint.tcl
export DIE_AREA = 0 0 3000 3000
export CORE_AREA = 200 200 2800 2800

export ABC_CLOCK_PERIOD_IN_PS = 1250

export PLACE_DENSITY = 0.80

export MACRO_WRAPPERS = $(PLATFORM_DIR)/bp/wrappers/wrappers.tcl
Expand Down
6 changes: 0 additions & 6 deletions flow/platforms/ihp-sg13g2/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ export CLKGATE_MAP_FILE = $(PLATFORM_DIR)/cells_clkgate.v
# Define ABC driver and load
export ABC_DRIVER_CELL = sg13g2_buf_4
export ABC_LOAD_IN_FF = 6.0
ifeq ($(origin ABC_CLOCK_PERIOD_IN_PS), undefined)
ifneq ($(wildcard $(SDC_FILE)),)
# Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
export ABC_CLOCK_PERIOD_IN_PS ?= $(shell sed -nE "s/^set clk_period (.+)|.* -period (.+) .*/\1\2/p" $(SDC_FILE) | head -1 | awk '{print $$1*1000}')
endif
endif

# -----------------------------------------------------
# Sizing
Expand Down
11 changes: 0 additions & 11 deletions flow/scripts/synth_preamble.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,6 @@ if { [env_var_exists_and_non_empty DONT_USE_CELLS] } {
set abc_args [list -script $abc_script \
{*}$lib_args {*}$lib_dont_use_args -constr $::env(OBJECTS_DIR)/abc.constr]

if { [env_var_exists_and_non_empty SDC_FILE_CLOCK_PERIOD] } {
puts "Extracting clock period from SDC file: $::env(SDC_FILE_CLOCK_PERIOD)"
set fp [open $::env(SDC_FILE_CLOCK_PERIOD) r]
set clock_period [string trim [read $fp]]
if { $clock_period != "" } {
puts "Setting clock period to $clock_period"
lappend abc_args -D $clock_period
}
close $fp
}

set constr [open $::env(OBJECTS_DIR)/abc.constr w]
puts $constr "set_driving_cell $::env(ABC_DRIVER_CELL)"
puts $constr "set_load $::env(ABC_LOAD_IN_FF)"
Expand Down
6 changes: 0 additions & 6 deletions flow/scripts/variables.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions flow/scripts/variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ export WRAP_CFG = $(PLATFORM_DIR)/wrapper.cfg
export TCLLIBPATH := util/cell-veneer $(TCLLIBPATH)

export SYNTH_SCRIPT ?= $(SCRIPTS_DIR)/synth.tcl
export SDC_FILE_CLOCK_PERIOD = $(RESULTS_DIR)/clock_period.txt

export YOSYS_DEPENDENCIES=$(LIB_FILES) $(WRAPPED_LIBS) $(DFF_LIB_FILE) $(VERILOG_FILES) $(SYNTH_NETLIST_FILES) $(LATCH_MAP_FILE) $(ADDER_MAP_FILE) $(SDC_FILE_CLOCK_PERIOD)
export YOSYS_DEPENDENCIES=$(LIB_FILES) $(WRAPPED_LIBS) $(DFF_LIB_FILE) $(VERILOG_FILES) $(SYNTH_NETLIST_FILES) $(LATCH_MAP_FILE) $(ADDER_MAP_FILE)

# Ubuntu 22.04 ships with older than 0.28.11, so support older versions
# for a while still.
Expand Down Expand Up @@ -214,13 +213,6 @@ endef
export ISSUE_VARIABLES := $(foreach V, $(ISSUE_VARIABLES_NAMES), $(if $($V),$V=$($V),$V='')$(newline))
export COMMAND_LINE_ARGS := $(foreach V,$(.VARIABLES),$(if $(filter command% line, $(origin $V)),$(V)))

# Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
ifeq ($(origin ABC_CLOCK_PERIOD_IN_PS), undefined)
ifneq ($(wildcard $(SDC_FILE)),)
export ABC_CLOCK_PERIOD_IN_PS := $(shell sed -nE "s/^set\s+clk_period\s+(\S+).*|.*-period\s+(\S+).*/\1\2/p" $(SDC_FILE) | head -1 | awk '{print $$1}')
endif
endif

.PHONY: vars
vars:
mkdir -p $(OBJECTS_DIR)
Expand Down
6 changes: 0 additions & 6 deletions flow/scripts/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,6 @@ MIN_BUF_CELL_AND_PORTS:
Used to insert a buffer cell to pass through wires. Used in synthesis.
stages:
- synth
ABC_CLOCK_PERIOD_IN_PS:
description: >
Clock period to be used by STA during synthesis. Default value read from
`constraint.sdc`.
stages:
- synth
ABC_DRIVER_CELL:
description: |
Default driver cell used during ABC synthesis.
Expand Down
9 changes: 1 addition & 8 deletions flow/util/genMassive.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
# Synthesis
##################

# Clock period for Yosys (for synthesis)
# The unit should follow each design (ns, ps) (float)
ABC_CLOCK_PERIOD = []
# Hierarchical Synthsis. 0 = hierarchical, 1 = flatten, empty = flatten
# (default) (int)
FLATTEN = []
Expand Down Expand Up @@ -144,7 +141,6 @@
SweepingAttributes = {
"PLATFORM_DESIGN": PLATFORM_DESIGN,
"CP": CLK_PERIOD,
"ABC_CP": ABC_CLOCK_PERIOD,
"FLATTEN": FLATTEN,
"UNCERTAINTY": UNCERTAINTY,
"IO_DELAY": IO_DELAY,
Expand Down Expand Up @@ -264,7 +260,6 @@ def adjustFastRoute(filedata, adjSet, GrOverflow):
def writeConfigs(CurAttrs, CurChunkNum):
CurPlatform, CurDesign = CurAttrs.get("PLATFORM_DESIGN").split("-")
CurClkPeriod = CurAttrs.get("CP")
CurAbcClkPeriod = CurAttrs.get("ABC_CP")
CurFlatten = CurAttrs.get("FLATTEN")
CurUncertainty = CurAttrs.get("UNCERTAINTY")
CurIoDelay = CurAttrs.get("IO_DELAY")
Expand Down Expand Up @@ -312,7 +307,7 @@ def writeConfigs(CurAttrs, CurChunkNum):
return

# print(CurPlatform, CurDesign)
# print(CurClkPeriod, CurAbcClkPeriod, CurFlatten, CurCoreUtil)
# print(CurClkPeriod, CurFlatten, CurCoreUtil)
# print(CurAspectRatio, CurCoreDieMargin, CurGpPad, CurDpPad)
# print(CurCtsClusterSize, CurCtsClusterDiameter, CurLayerAdjust)
# print(CurLayerAdjustM1, CurLayerAdjustM2, CurLayerAdjustM3)
Expand Down Expand Up @@ -365,8 +360,6 @@ def writeConfigs(CurAttrs, CurChunkNum):
"export SDC_FILE = $(DESIGN_DIR)/constraint-DoE-%s.sdc\n" % variantName
)

if CurAbcClkPeriod != "empty":
fo.write("export ABC_CLOCK_PERIOD_IN_PS = %s\n" % CurAbcClkPeriod)
if CurFlatten != "empty":
if CurFlatten == 0:
fo.write("export SYNTH_ARGS = \n")
Expand Down
Loading