Skip to content

Commit 53f91ae

Browse files
committed
synth: clockgate command demo for sky130hd
1 parent 7b4e7aa commit 53f91ae

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

flow/platforms/sky130hd/config.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hd.v
7777
# Define ABC driver and load
7878
export ABC_DRIVER_CELL = sky130_fd_sc_hd__buf_1
7979
export ABC_LOAD_IN_FF = 5
80+
81+
export CLOCKGATE_CMD = clockgate -pos sky130_fd_sc_hd__dlclkp_4 GATE:CLK:GCLK -min_net_size 8
82+
8083
#--------------------------------------------------------
8184
# Floorplan
8285
# -------------------------------------------------------

flow/scripts/synth.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ foreach cell $::env(DONT_USE_CELLS) {
4040
lappend dfflibmap_args -dont_use $cell
4141
}
4242

43+
yosys $::env(CLOCKGATE_CMD)
44+
4345
# Technology mapping of flip-flops
4446
# dfflibmap only supports one liberty file
4547
if {[env_var_exists_and_non_empty DFF_LIB_FILE]} {

0 commit comments

Comments
 (0)