Skip to content

Commit

Permalink
synth: clockgate command demo for sky130hd
Browse files Browse the repository at this point in the history
Signed-off-by: Emil J. Tywoniak <emil@tywoniak.eu>
  • Loading branch information
widlarizer committed Oct 17, 2024
1 parent 7b4e7aa commit 20683e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/platforms/sky130hd/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
# -------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions flow/scripts/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]} {
Expand Down

0 comments on commit 20683e7

Please sign in to comment.