update floorplan SRAM macros
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# ===== Floorplan ===== #
|
# ===== Floorplan ===== #
|
||||||
|
|
||||||
## Chip Dimension
|
## Chip Dimension
|
||||||
### TODO adjust to more appropriate values
|
|
||||||
### heads up: these variables aren't magic!
|
### heads up: these variables aren't magic!
|
||||||
### make sure you pass them to the appropriate command.
|
### make sure you pass them to the appropriate command.
|
||||||
set x_dim 1268.9941
|
set x_dim 1268.9941
|
||||||
@@ -20,9 +19,8 @@ set bottom_offset 9.6
|
|||||||
#floorPlan -site CoreSite \
|
#floorPlan -site CoreSite \
|
||||||
# -s $x_dim $y_dim \
|
# -s $x_dim $y_dim \
|
||||||
# $left_offset $right_offset $bottom_offset $top_offset
|
# $left_offset $right_offset $bottom_offset $top_offset
|
||||||
## TODO is this using the right variables?
|
|
||||||
floorPlan -site CoreSite -adjustToSite \
|
floorPlan -site CoreSite -adjustToSite \
|
||||||
-s x_dim y_dim \
|
-s $x_dim $y_dim \
|
||||||
$left_offset $bottom_offset $right_offset $top_offset
|
$left_offset $bottom_offset $right_offset $top_offset
|
||||||
|
|
||||||
# Set Design Mode
|
# Set Design Mode
|
||||||
@@ -30,18 +28,23 @@ setDesignMode -process 130 -topRoutingLayer 5
|
|||||||
|
|
||||||
### ===== Place Blocks ===== #
|
### ===== Place Blocks ===== #
|
||||||
# Edit halo around every block
|
# Edit halo around every block
|
||||||
## TODO are the values for these macro names right?
|
|
||||||
## reference chip_top.sv
|
## reference chip_top.sv
|
||||||
set macro_name_1 data_sram
|
set macro_name_1 data_memory
|
||||||
set macro_name_2 memory_sram
|
set macro_name_2 instruction_memory
|
||||||
|
|
||||||
## TODO place blocks in an appropriate location (not 0,0!)
|
set macro_w 387.870
|
||||||
placeInstance $macro_name_1 0 0 -fixed
|
set macro_h 306.775
|
||||||
placeInstance $macro_name_2 0 0 -fixed
|
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
|
# add block halos
|
||||||
addHaloToBlock {21 21 21 21} macro_name_1
|
addHaloToBlock [list $halo_buffer $halo_buffer $halo_buffer $halo_buffer] $macro_name_1
|
||||||
addHaloToBlock {21 21 21 21} macro_name_2
|
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 ===== #
|
# ===== Power Plan ===== #
|
||||||
# ===== Define Global Nets ===== #
|
# ===== Define Global Nets ===== #
|
||||||
|
|||||||
Reference in New Issue
Block a user