From 421474cef166eb76ade75498bcf68557eb95e7de Mon Sep 17 00:00:00 2001 From: dylanbenzi Date: Sun, 11 Oct 2026 15:33:37 -0400 Subject: [PATCH] update floorplan SRAM macros --- scripts/apr/steps/step_floorplan.tcl | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/scripts/apr/steps/step_floorplan.tcl b/scripts/apr/steps/step_floorplan.tcl index 5300684..ef7da33 100755 --- a/scripts/apr/steps/step_floorplan.tcl +++ b/scripts/apr/steps/step_floorplan.tcl @@ -1,7 +1,6 @@ # ===== Floorplan ===== # ## Chip Dimension -### TODO adjust to more appropriate values ### heads up: these variables aren't magic! ### make sure you pass them to the appropriate command. set x_dim 1268.9941 @@ -20,9 +19,8 @@ set bottom_offset 9.6 #floorPlan -site CoreSite \ # -s $x_dim $y_dim \ # $left_offset $right_offset $bottom_offset $top_offset -## TODO is this using the right variables? floorPlan -site CoreSite -adjustToSite \ - -s x_dim y_dim \ + -s $x_dim $y_dim \ $left_offset $bottom_offset $right_offset $top_offset # Set Design Mode @@ -30,18 +28,23 @@ setDesignMode -process 130 -topRoutingLayer 5 ### ===== Place Blocks ===== # # Edit halo around every block -## TODO are the values for these macro names right? ## reference chip_top.sv -set macro_name_1 data_sram -set macro_name_2 memory_sram +set macro_name_1 data_memory +set macro_name_2 instruction_memory -## TODO place blocks in an appropriate location (not 0,0!) -placeInstance $macro_name_1 0 0 -fixed -placeInstance $macro_name_2 0 0 -fixed +set macro_w 387.870 +set macro_h 306.775 +set halo_buffer 21 + +set sram_x1 [expr {($x_dim - 2*$macro_w) / 2 + $left_offset}] +set sram_y1 [expr {($y_dim - $macro_h) / 2 + $bottom_offset}] # add block halos -addHaloToBlock {21 21 21 21} macro_name_1 -addHaloToBlock {21 21 21 21} macro_name_2 +addHaloToBlock [list $halo_buffer $halo_buffer $halo_buffer $halo_buffer] $macro_name_1 +addHaloToBlock [list $halo_buffer $halo_buffer $halo_buffer $halo_buffer] $macro_name_2 + +placeInstance $macro_name_1 $sram_x1 $sram_y1 -fixed +placeInstance $macro_name_2 [expr {$sram_x1 + $macro_w}] $sram_y1 -fixed # ===== Power Plan ===== # # ===== Define Global Nets ===== #