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

Subversion Repositories synchronous_reset_fifo

[/] [synchronous_reset_fifo/] [trunk/] [sim/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 madhu54321
# Makefile for fifo - Functionality Testing and Regression Testing
2
RTL = ../rtl/fifo.v
3
work = work
4
COVOP = -coveropt 3 +cover=bcft +acc
5
SVTB1= ../env/fifo_if.sv ../env/fifo_top.sv
6
INC = +incdir+../env +incdir+../lib
7
TEST = ../test/fifo_testcase.sv
8
#TEST1 = ../test/test1.sv
9
#TEST2 = ../test/test2.sv
10
VSIMOPT= -coverage -novopt -sva -sv_seed random -l sim_log.txt work.fifo_top
11
VSIMCOV= coverage save -onexit -assert -directive -cvg -codeAll mem_cov
12
VSIMBATCH= -c -do "$(VSIMCOV); run -all; exit"
13
 
14
report:
15
        firefox covhtmlreport/pages/__frametop.htm
16
 
17
lib:
18
        vlib $(work)
19
        vmap work $(work)
20
 
21
sv_cmp: lib comp0
22
 
23
run_sim:
24
        vsim $(VSIMOPT) $(VSIMBATCH)
25
        vcover report -html mem_cov
26
 
27
gui:
28
        vsim $(VSIMOPT)
29
 
30
comp0:
31
        vlog -work $(work) $(COVOP) $(RTL) $(SVTB1) $(INC) $(TEST)
32
comp1:
33
        vlog -work $(work) $(COVOP) $(RTL) $(SVTB1) $(INC) $(TEST1)
34
comp2:
35
        vlog -work $(work) $(COVOP) $(RTL) $(SVTB1) $(INC) $(TEST2)
36
 
37
run_gui: clean lib comp0 gui
38
run_test: clean lib comp0 run_sim
39
run_test1: clean lib comp1 run_sim
40
run_test2: clean lib comp2 run_sim
41
 
42
 
43
clean:
44
        rm -rf modelsim.* transcript* vlog.* work vsim.wlf fcover* covhtml* mem_cov* *.txt
45
 

powered by: WebSVN 2.1.0

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