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
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ module I2cGpioExpanderTop (
.p2c (sg13g2_IOPad_io_gpio_7_p2c ), //o
.pad (io_gpio_7_PAD ) //~
);
(* keep *) sg13g2_IOPadVdd sg13g2_IOPadVdd_inst (
);
(* keep *) sg13g2_IOPadVss sg13g2_IOPadVss_inst (
);
(* keep *) sg13g2_IOPadIOVss sg13g2_IOPadIOVss_inst (
);
(* keep *) sg13g2_IOPadIOVdd sg13g2_IOPadIOVdd_inst (
);
assign clock = sg13g2_IOPad_io_clock_p2c;
assign reset = sg13g2_IOPad_io_reset_p2c;
always @(*) begin
Expand Down
23 changes: 22 additions & 1 deletion flow/designs/ihp-sg13g2/i2c-gpio-expander/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ export PLACE_DENSITY = 0.75
export MACRO_PLACE_HALO = 20 20
export CORNERS = slow fast

export FOOTPRINT_TCL = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/pad.tcl
export IO_NORTH_PINS = sg13g2_IOPad_io_gpio_3 \
sg13g2_IOPad_io_gpio_4 \
sg13g2_IOPad_io_gpio_5 \
sg13g2_IOPad_io_gpio_6 \
sg13g2_IOPad_io_gpio_7
export IO_EAST_PINS = sg13g2_IOPadVdd_inst \
sg13g2_IOPadVss_inst \
sg13g2_IOPad_io_address_0 \
sg13g2_IOPad_io_address_1 \
sg13g2_IOPad_io_address_2
export IO_SOUTH_PINS = sg13g2_IOPad_io_clock \
sg13g2_IOPad_io_reset \
sg13g2_IOPad_io_i2c_scl \
sg13g2_IOPad_io_i2c_sda \
sg13g2_IOPad_io_i2c_interrupt
export IO_WEST_PINS = sg13g2_IOPad_io_gpio_0 \
sg13g2_IOPad_io_gpio_1 \
sg13g2_IOPad_io_gpio_2 \
sg13g2_IOPadIOVss_inst \
sg13g2_IOPadIOVdd_inst
export FOOTPRINT_TCL = $(PLATFORM_DIR)/pad.tcl

export PDN_TCL = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/pdn.tcl

export BLOCKS = I2cDeviceCtrl
Expand Down
208 changes: 0 additions & 208 deletions flow/designs/ihp-sg13g2/i2c-gpio-expander/pad.tcl

This file was deleted.

2 changes: 1 addition & 1 deletion flow/designs/ihp-sg13g2/i2c-gpio-expander/rules-base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"synth__design__instance__area__stdcell": {
"value": 286097.29,
"value": 311335.1878,
"compare": "<="
},
"constraints__clocks__count": {
Expand Down
22 changes: 22 additions & 0 deletions flow/platforms/ihp-sg13g2/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,28 @@ export TAPCELL_TCL ?= $(PLATFORM_DIR)/tapcell.tcl

export MACRO_PLACE_HALO ?= 40 40

# Will be placed left to right
export IO_NORTH_PINS ??=
export IO_SOUTH_PINS ??=
# Will be placed bottom to top
export IO_EAST_PINS ??=
export IO_WEST_PINS ??=

# Variables for bondpad
export IO_BONDPAD_SIZE ?= 70
export IO_BONDPAD_NAME ?= bondpad_70x70
# Variables for padframe
export IO_LENGTH ?= 180
export IO_WIDTH ?= 80
export IO_SEALRING_OFFSET ?= 70
export IO_FILLER_CELLS ?= \
sg13g2_Filler10000 \
sg13g2_Filler4000 \
sg13g2_Filler2000 \
sg13g2_Filler1000 \
sg13g2_Filler400 \
sg13g2_Filler200

#---------------------------------------------------------
# Place
# --------------------------------------------------------
Expand Down
41 changes: 41 additions & 0 deletions flow/platforms/ihp-sg13g2/pad.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
set IO_OFFSET [expr { $::env(IO_BONDPAD_SIZE) + $::env(IO_SEALRING_OFFSET) }]
Comment thread
maliberty marked this conversation as resolved.
Resolved

# padframe core power pins
add_global_connection -net {VDD} -pin_pattern {^vdd$} -power
add_global_connection -net {VSS} -pin_pattern {^vss$} -ground

# padframe io power pins
add_global_connection -net {IOVDD} -pin_pattern {^iovdd$} -power
add_global_connection -net {IOVSS} -pin_pattern {^iovss$} -ground

make_fake_io_site -name IOLibSite -width 1 -height $::env(IO_LENGTH)
make_fake_io_site -name IOLibCSite -width $::env(IO_LENGTH) -height $::env(IO_LENGTH)

make_io_sites \
-horizontal_site IOLibSite \
-vertical_site IOLibSite \
-corner_site IOLibCSite \
-offset $IO_OFFSET

# Place IO cells
place_pads -row IO_NORTH $::env(IO_NORTH_PINS)
place_pads -row IO_EAST $::env(IO_EAST_PINS)
place_pads -row IO_SOUTH $::env(IO_SOUTH_PINS)
place_pads -row IO_WEST $::env(IO_WEST_PINS)

# Place Corner Cells and Filler
place_corners sg13g2_Corner

set iofill [regexp -all -inline {\S+} $::env(IO_FILLER_CELLS)]

place_io_fill -row IO_NORTH {*}$iofill
place_io_fill -row IO_EAST {*}$iofill
place_io_fill -row IO_SOUTH {*}$iofill
place_io_fill -row IO_WEST {*}$iofill

connect_by_abutment

set IO_BONDPAD_Y [expr { double($::env(IO_BONDPAD_SIZE)) * -1.0 }]
place_bondpad -bond $::env(IO_BONDPAD_NAME) sg13g2_IOPad* -offset "5.0 $IO_BONDPAD_Y"

remove_io_rows