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

Subversion Repositories wbscope

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 dgisselq
################################################################################
2
##
3 13 dgisselq
## Filename:    Makefile
4 12 dgisselq
##
5 13 dgisselq
## 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 both the
9
##      wishbone scope and its RLE compressed brother using Verilator.
10
##
11
##
12 12 dgisselq
## Creator:     Dan Gisselquist, Ph.D.
13
##              Gisselquist Technology, LLC
14
##
15
################################################################################
16
##
17
## Copyright (C) 2015-2017, Gisselquist Technology, LLC
18
##
19
## This program is free software (firmware): you can redistribute it and/or
20
## modify it under the terms of  the GNU General Public License as published
21
## by the Free Software Foundation, either version 3 of the License, or (at
22
## your option) any later version.
23
##
24
## This program is distributed in the hope that it will be useful, but WITHOUT
25
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
26
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27
## for more details.
28
##
29
## You should have received a copy of the GNU General Public License along
30
## with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
31
## target there if the PDF file isn't present.)  If not, see
32
##  for a copy.
33
##
34
## License:     GPL, v3, as defined and found on www.gnu.org,
35
##              http://www.gnu.org/licenses/gpl.html
36
##
37
##
38
################################################################################
39
##
40
##
41
.PHONY: all
42 13 dgisselq
all: wbscope_tb wbscopc_tb
43 12 dgisselq
 
44
RTLD := ../../rtl
45
VOBJ := obj_dir
46
 
47 13 dgisselq
#
48
#
49
# Building the wbscope test bench
50
#
51
#
52 12 dgisselq
$(VOBJ)/Vwbscope_tb.cpp: $(RTLD)/wbscope.v wbscope_tb.v
53 13 dgisselq
        verilator -Wall -O3 -trace -cc  -y $(RTLD) wbscope_tb.v
54 12 dgisselq
$(VOBJ)/Vwbscope_tb.h: $(VOBJ)/Vwbscope_tb.cpp
55
 
56
$(VOBJ)/Vwbscope_tb__ALL.a: $(VOBJ)/Vwbscope_tb.cpp $(VOBJ)/Vwbscope_tb.h
57
        make --no-print-directory --directory=$(VOBJ) -f Vwbscope_tb.mk
58
 
59
.PHONY: wbscope_tb
60
wbscope_tb: $(VOBJ)/Vwbscope_tb__ALL.a
61
 
62 13 dgisselq
#
63
#
64
# Building the wbscopc test bench, for the compressed wbscope
65
#
66
#
67
$(VOBJ)/Vwbscopc_tb.cpp: $(RTLD)/wbscopc.v wbscopc_tb.v
68
        verilator -Wall -O3 -trace -cc  -y $(RTLD) wbscopc_tb.v
69
$(VOBJ)/Vwbscopc_tb.h: $(VOBJ)/Vwbscopc_tb.cpp
70
 
71
$(VOBJ)/Vwbscopc_tb__ALL.a: $(VOBJ)/Vwbscopc_tb.cpp $(VOBJ)/Vwbscopc_tb.h
72
        make --no-print-directory --directory=$(VOBJ) -f Vwbscopc_tb.mk
73
 
74
.PHONY: wbscopc_tb
75
wbscopc_tb: $(VOBJ)/Vwbscopc_tb__ALL.a
76
 
77 12 dgisselq
# $(VOBJ)/Vaxiscope_tb.cpp: $(RTLD)/axiscope.v axiscope.v
78
#       verilator -trace -cc  -y $(RTLD) wbscope_tb.v
79
# $(VOBJ)/Vaxiscope_tb.h: $(VOBJ)/Vwbscope_tb.cpp
80
 
81
.PHONY: clean
82
clean:
83
        rm -rf $(VOBJ)

powered by: WebSVN 2.1.0

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