blob: 3c6b72ff56862bb2111f3e06b9632e99a3712d6a [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# Entry point test Makefile for building and running tests.
# These are generic set of option groups that apply to all testbenches.
# This flow requires the following options to be set:
# DV_DIR - current dv directory that contains the test Makefile
# DUT_TOP - top level dut module name
# TB_TOP - top level tb module name
# DOTF - .f file used for compilation
# COMPILE_KEY - compile option set
# TEST_NAME - name of the test to run - this is supplied on the command line
DV_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
export DUT_TOP := trial1_reg_top
export TB_TOP := tb
FUSESOC_CORE := lowrisc:ip:trial1_sim:0.1
COMPILE_KEY ?= default
TOPS ?= ${TB_TOP}
TEST_NAME ?= trial1_sanity
UVM_TEST ?= ${TEST_NAME}
####################################
# Include the tool Makefile below #
# Dont add anything else below it! #
####################################
include ${DV_DIR}/../../../dv/tools/Makefile