blob: a3caf8903aaa6251ccbb90c630bd52877b3fa779 [file] [log] [blame]
# 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
set script_dir [file dirname [file normalize [info script]]]
set ::env(DESIGN_NAME) user_proj_example
set ::env(VERILOG_FILES) "\
$script_dir/../../verilog/rtl/defines.v \
$script_dir/../../verilog/rtl/user_proj_example.v \
$script_dir/../../verilog/rtl/softshell/rtl/softshell_top.v \
$script_dir/../../verilog/rtl/softshell/rtl/rv_core.v \
$script_dir/../../verilog/rtl/softshell/rtl/pinmux.v \
$script_dir/../../verilog/rtl/softshell/rtl/pcpi_flexio.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/wb_arbiter_3.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/wb_arbiter_4.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/wb_arbiter_5.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/arbiter.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/priority_encoder.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/wb_mux_3.v \
$script_dir/../../verilog/rtl/softshell/third_party/verilog-wishbone/rtl/wb_mux_5.v \
$script_dir/../../verilog/rtl/softshell/third_party/picorv32_wb/mem_ff_wb.v \
$script_dir/../../verilog/rtl/softshell/third_party/picorv32_wb/simpleuart.v \
$script_dir/../../verilog/rtl/softshell/third_party/picorv32_wb/spimemio.v \
$script_dir/../../verilog/rtl/softshell/third_party/picorv32_wb/gpio32_wb.v \
$script_dir/../../verilog/rtl/softshell/third_party/picorv32_wb/picorv32.v \
$script_dir/../../verilog/rtl/softshell/third_party/wb2axip/rtl/afifo.v"
#set ::env(VERILOG_INCLUDE_DIRS) "\
# $script_dir/../../softshell"
# For the manually instantiated buffers in softshell_top.
# set ::env(SYNTH_READ_BLACKBOX_LIB) 1
set ::env(CLOCK_PORT) "wb_clk_i"
#set ::env(CLOCK_NET) "softshell.wb_clk_i"
set ::env(CLOCK_PERIOD) "20"
set ::env(FP_SIZING) absolute
set ::env(DIE_AREA) "0 0 2500 3100"
set ::env(DESIGN_IS_CORE) 0
set ::env(FP_PDN_CORE_RING) 0
#set ::env(GLB_RT_ALLOW_CONGESTION) 1
set ::env(GLB_RT_MAXLAYER) 5
# 0.4 results in shorts, 0.35 - 0.3 sometimes results in metal loops due to routing.
set ::env(PL_TARGET_DENSITY) 0.38
# Don't use met5.
set ::env(GLB_RT_OBS) "met5 0 0 2500 3100"
# Diodes inserted using interactive.tcl.
set ::env(DIODE_INSERTION_STRATEGY) 0
set ::env(ROUTING_CORES) 6
set ::env(FP_PIN_ORDER_CFG) $script_dir/pin_order.cfg
# set ::env(FP_CONTEXT_DEF) $script_dir/../user_project_wrapper/runs/user_project_wrapper/tmp/floorplan/ioPlacer.def.macro_placement.def
# set ::env(FP_CONTEXT_LEF) $script_dir/../user_project_wrapper/runs/user_project_wrapper/tmp/merged_unpadded.lef