mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-09-09 03:02:42 +00:00
57 lines
1.3 KiB
Makefile
Executable File
57 lines
1.3 KiB
Makefile
Executable File
#===================================================================
|
|
#
|
|
# Makefile
|
|
# --------
|
|
# Makefile for building the touch sense top simulations.
|
|
#
|
|
#
|
|
# Author: Joachim Strombergson
|
|
# Copyright (C) 2022 - Tillitis AB
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
#===================================================================
|
|
|
|
TOP_SRC=../rtl/touch_sense.v
|
|
TB_TOP_SRC =../tb/tb_touch_sense.v
|
|
|
|
CC = iverilog
|
|
CC_FLAGS = -Wall
|
|
|
|
LINT = verilator
|
|
LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME
|
|
|
|
|
|
all: top.sim
|
|
|
|
|
|
top.sim: $(TB_TOP_SRC) $(TOP_SRC)
|
|
$(CC) $(CC_FLAGS) -o top.sim $(TB_TOP_SRC) $(TOP_SRC)
|
|
|
|
|
|
sim-top: top.sim
|
|
./top.sim
|
|
|
|
|
|
lint-top: $(TOP_SRC)
|
|
$(LINT) $(LINT_FLAGS) $(TOP_SRC)
|
|
|
|
|
|
clean:
|
|
rm -f top.sim
|
|
|
|
|
|
help:
|
|
@echo "Build system for simulation of touch sense core"
|
|
@echo ""
|
|
@echo "Supported targets:"
|
|
@echo "------------------"
|
|
@echo "all: Build all simulation targets."
|
|
@echo "top.sim: Build top level simulation target."
|
|
@echo "sim-top: Run top level simulation."
|
|
@echo "lint-top: Lint top rtl source files."
|
|
@echo "clean: Delete all built files."
|
|
|
|
#===================================================================
|
|
# EOF Makefile
|
|
#===================================================================
|