blob: eae0f2b8344e1e85791f93391370c13b501a36ac [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
## PDK
export PDK ?= sky130A
export PDK_PATH = $(PDK_ROOT)/$(PDK)
## Caravel Pointers
export CARAVEL_ROOT ?= ../../../../caravel
export CARAVEL_PATH = $(CARAVEL_ROOT)/verilog
export VERILOG_PATH = $(CARAVEL_ROOT)/../mgmt_core_wrapper/verilog
export USER_PROJECT_VERILOG = $(CARAVEL_ROOT)/../verilog
POWERPC_CROSS_COMPILE?=powerpc64le-linux-gnu-
POWERPC_CFLAGS=-static -Os -g -Wall -std=c99 -msoft-float -mno-string -mno-multiple -mno-vsx -mno-altivec -mlittle-endian -fno-stack-protector -ffreestanding -fdata-sections -ffunction-sections -nostdlib -I../include
## Simulation mode: RTL/GL
SIM_DEFINES = -DFUNCTIONAL -DSIM -DUNIT_DELAY=\#1 -DUSE_POWER_PINS
SIM?=RTL
.SUFFIXES: