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

Subversion Repositories wbscope

[/] [wbscope/] [trunk/] [bench/] [rtl/] [Makefile] - Blame information for rev 12

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 dgisselq
################################################################################
2
#
3
# Filename:     Makefile
4
#
5
# Project:      WBScope, a wishbone hosted scope
6
#
7
# Purpose:      This makefile builds a verilator simulation of the rtl
8
#               testbenches necessary to test certain components of the
9
#       wishbone scope using Verilator.  It does not make the system within
10
##      Icarus, Vivado or Quartus.
11
##
12
##
13
## Creator:     Dan Gisselquist, Ph.D.
14
##              Gisselquist Technology, LLC
15
##
16
################################################################################
17
##
18
## Copyright (C) 2015-2017, 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
## You should have received a copy of the GNU General Public License along
31
## with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
32
## target there if the PDF file isn't present.)  If not, see
33
##  for a copy.
34
##
35
## License:     GPL, v3, as defined and found on www.gnu.org,
36
##              http://www.gnu.org/licenses/gpl.html
37
##
38
##
39
################################################################################
40
##
41
##
42
.PHONY: all
43
all: wbscope_tb
44
 
45
RTLD := ../../rtl
46
VOBJ := obj_dir
47
 
48
$(VOBJ)/Vwbscope_tb.cpp: $(RTLD)/wbscope.v wbscope_tb.v
49
        verilator -trace -cc  -y $(RTLD) wbscope_tb.v
50
$(VOBJ)/Vwbscope_tb.h: $(VOBJ)/Vwbscope_tb.cpp
51
 
52
$(VOBJ)/Vwbscope_tb__ALL.a: $(VOBJ)/Vwbscope_tb.cpp $(VOBJ)/Vwbscope_tb.h
53
        make --no-print-directory --directory=$(VOBJ) -f Vwbscope_tb.mk
54
 
55
.PHONY: wbscope_tb
56
wbscope_tb: $(VOBJ)/Vwbscope_tb__ALL.a
57
 
58
# $(VOBJ)/Vaxiscope_tb.cpp: $(RTLD)/axiscope.v axiscope.v
59
#       verilator -trace -cc  -y $(RTLD) wbscope_tb.v
60
# $(VOBJ)/Vaxiscope_tb.h: $(VOBJ)/Vwbscope_tb.cpp
61
 
62
.PHONY: clean
63
clean:
64
        rm -rf $(VOBJ)

powered by: WebSVN 2.1.0

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