OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [bench/] [rtl/] [Makefile] - Blame information for rev 209

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 209 dgisselq
################################################################################
2
#
3
# Filename:     Makefile
4
#
5
# Project:      Zip CPU -- a small, lightweight, RISC CPU soft core
6
#
7
# Purpose:      This makefile builds a verilator simulation of the rtl
8
#               testbenches necessary to test certain components of the
9
#       ZipSystem using Verilator.  It does not make the system within Icarus,
10
#       Vivado or Quartus.
11
#
12
#
13
# Creator:      Dan Gisselquist, Ph.D.
14
#               Gisselquist Technology, LLC
15
#
16
################################################################################
17
#
18
# Copyright (C) 2015-2019, Gisselquist Technology, LLC
19
#
20
# This program is free software (firmware): you can redistribute it and/or
21
# modify it under the terms of  the GNU General Public License as published
22
# by the Free Software Foundation, either version 3 of the License, or (at
23
# your option) any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
28
# for more details.
29
#
30
# License:      GPL, v3, as defined and found on www.gnu.org,
31
#               http://www.gnu.org/licenses/gpl.html
32
#
33
#
34
################################################################################
35
#
36
.PHONY: all
37
all: zipmmu_tb
38
 
39
CORED:= ../../rtl/core
40
PRPHD:= ../../rtl/peripherals
41
VOBJ := obj_dir
42
VERILATOR := verilator
43
VFLAGS    := -Wall -MMD -trace -y $(PRPHD) -cc
44
SUBMAKE   := $(MAKE) --no-print-directory -C
45
 
46
$(VOBJ)/Vzipmmu_tb.cpp: $(PRPHD)/zipmmu.v zipmmu_tb.v memdev.v
47
        $(VERILATOR) $(VFLAGS) zipmmu_tb.v
48
$(VOBJ)/Vzipmmu_tb.h: $(VOBJ)/Vzipmmu_tb.cpp
49
 
50
$(VOBJ)/Vzipmmu_tb__ALL.a: $(VOBJ)/Vzipmmu_tb.cpp $(VOBJ)/Vzipmmu_tb.h
51
        $(SUBMAKE) $(VOBJ) -f Vzipmmu_tb.mk
52
 
53
.PHONY: zipmmu_tb
54
zipmmu_tb: $(VOBJ)/Vzipmmu_tb__ALL.a
55
 
56
.PHONY: clean
57
clean:
58
        rm -rf $(VOBJ)
59
 
60
 
61
DEPS := $(wildcard $(VOBJ)/*.d)
62
ifneq ($(DEPS),)
63
include $(DEPS)
64
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.