From 20683e70e41f574b52b90334401ed499c40b11db Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 17 Oct 2024 16:50:59 +0200 Subject: [PATCH] synth: clockgate command demo for sky130hd Signed-off-by: Emil J. Tywoniak --- flow/platforms/sky130hd/config.mk | 3 +++ flow/scripts/synth.tcl | 2 ++ 2 files changed, 5 insertions(+) diff --git a/flow/platforms/sky130hd/config.mk b/flow/platforms/sky130hd/config.mk index 165cf2f3dc..ac2b5b0721 100644 --- a/flow/platforms/sky130hd/config.mk +++ b/flow/platforms/sky130hd/config.mk @@ -77,6 +77,9 @@ export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hd.v # Define ABC driver and load export ABC_DRIVER_CELL = sky130_fd_sc_hd__buf_1 export ABC_LOAD_IN_FF = 5 + +export CLOCKGATE_CMD = clockgate -pos sky130_fd_sc_hd__dlclkp_4 GATE:CLK:GCLK -min_net_size 8 + #-------------------------------------------------------- # Floorplan # ------------------------------------------------------- diff --git a/flow/scripts/synth.tcl b/flow/scripts/synth.tcl index ec1c3445c8..46857b3bd2 100644 --- a/flow/scripts/synth.tcl +++ b/flow/scripts/synth.tcl @@ -40,6 +40,8 @@ foreach cell $::env(DONT_USE_CELLS) { lappend dfflibmap_args -dont_use $cell } +yosys $::env(CLOCKGATE_CMD) + # Technology mapping of flip-flops # dfflibmap only supports one liberty file if {[env_var_exists_and_non_empty DFF_LIB_FILE]} {