File tree Expand file tree Collapse file tree 7 files changed +7
-12
lines changed
Expand file tree Collapse file tree 7 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ export LATCH_MAP_FILE = $(PLATFORM_DIR)/yoSys/cells_latch_R.v
5858export CLKGATE_MAP_FILE = $(PLATFORM_DIR ) /yoSys/cells_clkgate_R.v
5959export ADDER_MAP_FILE ?= $(PLATFORM_DIR ) /yoSys/cells_adders_R.v
6060
61- # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
62- 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}')
6361export ABC_DRIVER_CELL = BUFx2_ASAP7_75t_R
6462
6563# BUF_X1, pin (A) = 0.974659. Arbitrarily multiply by 4
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ export RC_FILE = $(PLATFORM_DIR)/setRC.tcl
4444export TIEHI_CELL_AND_PORT = gf180mcu_fd_sc_mcu$(TRACK_OPTION )$(POWER_OPTION ) __tieh Z
4545export TIELO_CELL_AND_PORT = gf180mcu_fd_sc_mcu$(TRACK_OPTION )$(POWER_OPTION ) __tiel ZN
4646
47- # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
48- 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*1000}')
4947export ABC_DRIVER_CELL = gf180mcu_fd_sc_mcu$(TRACK_OPTION )$(POWER_OPTION ) __buf_4
5048export ABC_LOAD_IN_FF = 0.01343
5149
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ export LATCH_MAP_FILE = $(PLATFORM_DIR)/cells_latch.v
3737export CLKGATE_MAP_FILE = $(PLATFORM_DIR ) /cells_clkgate.v
3838export ADDER_MAP_FILE ?= $(PLATFORM_DIR ) /cells_adders.v
3939#
40- # Set yosys-abc clock period to first "-period" found in sdc file
41- 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}')
4240export ABC_DRIVER_CELL = BUF_X1
4341# BUF_X1, pin (A) = 0.974659. Arbitrarily multiply by 4
4442export ABC_LOAD_IN_FF = 3.898
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hd.v
7777# Define ABC driver and load
7878export ABC_DRIVER_CELL = sky130_fd_sc_hd__buf_1
7979export ABC_LOAD_IN_FF = 5
80- # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
81- 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}')
8280# --------------------------------------------------------
8381# Floorplan
8482# -------------------------------------------------------
Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hd.v
7878# Define ABC driver and load
7979export ABC_DRIVER_CELL = sky130_fd_sc_hd__buf_1
8080export ABC_LOAD_IN_FF = 5
81- # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
82- 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}')
8381# --------------------------------------------------------
8482# Floorplan
8583# -------------------------------------------------------
Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hs.v
3939# Define ABC driver and load
4040export ABC_DRIVER_CELL = sky130_fd_sc_hs__buf_1
4141export ABC_LOAD_IN_FF = 5
42- # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
43- 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}')
4442# --------------------------------------------------------
4543# Floorplan
4644# -------------------------------------------------------
Original file line number Diff line number Diff line change @@ -152,3 +152,10 @@ endif
152152.PHONY : update_sdc_clocks
153153update_sdc_clocks : $(RESULTS_DIR ) /route.guide
154154 cp $(RESULTS_DIR ) /updated_clks.sdc $(SDC_FILE )
155+
156+ # Set yosys-abc clock period to first "clk_period" value or "-period" value found in sdc file
157+ ifeq ($(origin ABC_CLOCK_PERIOD_IN_PS ) , undefined)
158+ ifneq ($(wildcard $(SDC_FILE)),)
159+ 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}')
160+ endif
161+ endif
You can’t perform that action at this time.
0 commit comments