[CONFIG] user_project_wrapper cleanup
diff --git a/openlane/Makefile b/openlane/Makefile index 4bc8b16..b556fb5 100644 --- a/openlane/Makefile +++ b/openlane/Makefile
@@ -63,7 +63,7 @@ @echo "Please export OPENLANE_ROOT" @exit 1 endif - git clone https://github.com/efabless/openlane.git --branch=develop $(OPENLANE_ROOT) && \ + git clone https://github.com/efabless/openlane.git --branch=master $(OPENLANE_ROOT) && \ cd $(OPENLANE_ROOT) && \ make openlane
diff --git a/openlane/user_project_wrapper/config.tcl b/openlane/user_project_wrapper/config.tcl index 1b28c3a..53b8b7b 100644 --- a/openlane/user_project_wrapper/config.tcl +++ b/openlane/user_project_wrapper/config.tcl
@@ -52,6 +52,11 @@ set ::env(TAP_DECAP_INSERTION) 0 set ::env(CLOCK_TREE_SYNTH) 0 +# Need to fix a FastRoute bug for this to work, but it's good +# for a sense of "isolation" +set ::env(MAGIC_ZEROIZE_ORIGIN) 0 +set ::env(MAGIC_WRITE_FULL_LEF) 1 + # Area Configurations. DON'T TOUCH. set ::env(FP_SIZING) absolute set ::env(DIE_AREA) "0 0 2920 3520" @@ -77,6 +82,7 @@ set ::env(SYNTH_USE_PG_PINS_DEFINES) "USE_POWER_PINS" #set ::env(PDN_CFG) $script_dir/pdn.tcl +# Pin Configurations. DON'T TOUCH set ::env(FP_PIN_ORDER_CFG) $script_dir/pin_order.cfg set ::env(FP_DEF_TEMPLATE) $script_dir/../../def/user_project_wrapper_empty.def set ::unit 2.4 @@ -90,8 +96,3 @@ -# Need to fix a FastRoute bug for this to work, but it's good -# for a sense of "isolation" -set ::env(MAGIC_ZEROIZE_ORIGIN) 0 -set ::env(MAGIC_WRITE_FULL_LEF) 1 -
diff --git a/openlane/user_project_wrapper/pdn.tcl b/openlane/user_project_wrapper/pdn.tcl deleted file mode 100644 index c1ab326..0000000 --- a/openlane/user_project_wrapper/pdn.tcl +++ /dev/null
@@ -1,62 +0,0 @@ -# SPDX-FileCopyrightText: 2020 Efabless Corporation -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# SPDX-License-Identifier: Apache-2.0 - -# Power nets -set ::power_nets $::env(_VDD_NET_NAME) -set ::ground_nets $::env(_GND_NET_NAME) - -pdngen::specify_grid stdcell { - name grid - core_ring { - met5 {width $::env(_WIDTH) spacing $::env(_SPACING) core_offset $::env(_H_OFFSET)} - met4 {width $::env(_WIDTH) spacing $::env(_SPACING) core_offset $::env(_V_OFFSET)} - } - rails { - } - straps { - met4 {width $::env(_WIDTH) pitch $::env(_V_PITCH) offset $::env(_V_PDN_OFFSET)} - met5 {width $::env(_WIDTH) pitch $::env(_H_PITCH) offset $::env(_H_PDN_OFFSET)} - } - connect {{met4 met5}} -} - -pdngen::specify_grid macro { - instance "obs_core_obs" - power_pins $::env(_VDD_NET_NAME) - ground_pins $::env(_GND_NET_NAME) - blockages "li1 met1 met2 met3 met4 met5" - straps { - } - connect {} -} - - -pdngen::specify_grid macro { - power_pins $::env(_VDD_NET_NAME) - ground_pins $::env(_GND_NET_NAME) - blockages "" - straps { - } - connect {} -} - -set ::halo 0 - -# POWER or GROUND #Std. cell rails starting with power or ground rails at the bottom of the core area -set ::rails_start_with "POWER" ; - -# POWER or GROUND #Upper metal stripes starting with power or ground rails at the left/bottom of the core area -set ::stripes_start_with "POWER" ; -
diff --git a/openlane/user_project_wrapper/x_interactive.tcl b/openlane/user_project_wrapper/x_interactive.tcl deleted file mode 100644 index e074109..0000000 --- a/openlane/user_project_wrapper/x_interactive.tcl +++ /dev/null
@@ -1,82 +0,0 @@ -# SPDX-FileCopyrightText: 2020 Efabless Corporation -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# SPDX-License-Identifier: Apache-2.0 - -# This file is no longer used. But it's kept here for reference. - -package require openlane -set script_dir [file dirname [file normalize [info script]]] - -prep -design $script_dir -tag user_project_wrapper -overwrite -set save_path $script_dir/../.. - -verilog_elaborate - -init_floorplan - -place_io_ol - -set ::env(FP_DEF_TEMPLATE) $script_dir/../../def/user_project_wrapper_empty.def - -apply_def_template - -add_macro_placement mprj 1150 1700 N - -manual_macro_placement f - -set ::env(_SPACING) 1.6 -set ::env(_WIDTH) 3 - -set power_domains [list {vccd1 vssd1} {vccd2 vssd2} {vdda1 vssa1} {vdda2 vssa2}] - -set ::env(_VDD_NET_NAME) vccd1 -set ::env(_GND_NET_NAME) vssd1 -set ::env(_V_OFFSET) 14 -set ::env(_H_OFFSET) $::env(_V_OFFSET) -set ::env(_V_PITCH) 180 -set ::env(_H_PITCH) 180 -set ::env(_V_PDN_OFFSET) 0 -set ::env(_H_PDN_OFFSET) 0 - -foreach domain $power_domains { - set ::env(_VDD_NET_NAME) [lindex $domain 0] - set ::env(_GND_NET_NAME) [lindex $domain 1] - gen_pdn - - set ::env(_V_OFFSET) \ - [expr $::env(_V_OFFSET) + 2*($::env(_WIDTH)+$::env(_SPACING))] - set ::env(_H_OFFSET) \ - [expr $::env(_H_OFFSET) + 2*($::env(_WIDTH)+$::env(_SPACING))] - set ::env(_V_PDN_OFFSET) [expr $::env(_V_PDN_OFFSET)+6*$::env(_WIDTH)] - set ::env(_H_PDN_OFFSET) [expr $::env(_H_PDN_OFFSET)+6*$::env(_WIDTH)] -} - -global_routing_or -detailed_routing - -run_magic -run_magic_spice_export - -save_views -lef_path $::env(magic_result_file_tag).lef \ - -def_path $::env(tritonRoute_result_file_tag).def \ - -gds_path $::env(magic_result_file_tag).gds \ - -mag_path $::env(magic_result_file_tag).mag \ - -save_path $save_path \ - -tag $::env(RUN_TAG) - -run_magic_drc - -run_lvs; # requires run_magic_spice_export - -run_antenna_check