-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (66 loc) · 2.62 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#-
# Copyright (c) 2021-2022 Alexandre Joannou
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory (Department of Computer Science and
# Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
# DARPA SSITH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# Licensed to BERI Open Systems C.I.C. (BERI) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. BERI licenses this
# file to you under the BERI Hardware-Software License, Version 1.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.beri-open-systems.org/legal/license-1-0.txt
#
# Unless required by applicable law or agreed to in writing, Work 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.
#
# @BERI_LICENSE_HEADER_END@
#
SRCS = DE10Pro_bsv_shell.bsv
BLUESTUFFDIR = $(CURDIR)/BlueStuff
BLUEAVALONDIR = $(BLUESTUFFDIR)/BlueAvalon
BLUEAXI4DIR = $(BLUESTUFFDIR)/BlueAXI4
BLUEAXI4DIRS = $(BLUEAXI4DIR):$(BLUEAXI4DIR)/AXI4:$(BLUEAXI4DIR)/AXI4Lite:$(BLUEAXI4DIR)/AXI4Stream:$(BLUEAXI4DIR)/BlueUnixBridges
BLUEBASICSDIR = $(BLUESTUFFDIR)/BlueBasics
BLUEUTILSDIR = $(BLUESTUFFDIR)/BlueUtils
# generated files directories
BDIR = $(CURDIR)/bdir
VDIR = $(CURDIR)/vdir
SIMDIR = $(CURDIR)/simdir
BSC = bsc
BSVPATH = +:$(BLUESTUFFDIR):$(BLUEAVALONDIR):$(BLUEAXI4DIRS):$(BLUEBASICSDIR):$(BLUEUTILSDIR)
BSCFLAGS = -p $(BSVPATH)
BSCFLAGS += -bdir $(BDIR)
BSCFLAGS += -vdir $(VDIR)
BSCFLAGS += -simdir $(SIMDIR)
BSCFLAGS += -suppress-warnings T0127:S0080 # no orphan typeclass warning
#BSCFLAGS += +RTS -K512M -RTS
#BSCFLAGS += -show-schedule
#BSCFLAGS += -sched-dot
#BSCFLAGS += -show-range-conflict
#BSCFLAGS += -show-rule-rel \* \*
#BSCFLAGS += -steps-warn-interval n
#.PHONY: all
#all: mkDummyDE10Pro_bsv_shell_Sig.v mkPassThroughToDRAMDE10Pro_bsv_shell_Sig.v
mkPassThroughToDRAMDE10Pro_bsv_shell_Sig.v: $(SRCS)
mkdir -p $(BDIR) $(VDIR) $(SIMDIR)
$(BSC) $(BSCFLAGS) -verilog -g mkPassThroughToDRAMDE10Pro_bsv_shell_Sig -u DE10Pro_bsv_shell.bsv
mkDummyDE10Pro_bsv_shell_Sig.v: $(SRCS)
mkdir -p $(BDIR) $(VDIR) $(SIMDIR)
$(BSC) $(BSCFLAGS) -verilog -g mkDummyDE10Pro_bsv_shell_Sig -u DE10Pro_bsv_shell.bsv
.PHONY: clean mrproper
clean:
rm -f -r $(BDIR)
rm -f -r $(VDIR)
rm -f -r $(SIMDIR)
mrproper: clean
rm -f -r *.v