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

Subversion Repositories cryptosorter

[/] [cryptosorter/] [trunk/] [memocodeDesignContest2008/] [xup/] [build/] [Makefile] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 kfleming
 
2
#Copyright (c) 2008 MIT
3
 
4
#Permission is hereby granted, free of charge, to any person
5
#obtaining a copy of this software and associated documentation
6
#files (the "Software"), to deal in the Software without
7
#restriction, including without limitation the rights to use,
8
#copy, modify, merge, publish, distribute, sublicense, and/or sell
9
#copies of the Software, and to permit persons to whom the
10
#Software is furnished to do so, subject to the following
11
#conditions:
12
 
13
#The above copyright notice and this permission notice shall be
14
#included in all copies or substantial portions of the Software.
15
 
16
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
#EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
#OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
#NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
#HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
#WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
#FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
#OTHER DEALINGS IN THE SOFTWARE.
24
 
25
#Author: Kermin Fleming
26
 
27
BSC_COMP = bsc
28
 
29
toplevel_module = mkTH
30
 
31
plbdir = ../PLBMaster
32
feederdir = ../../../lib/bsv/BRAMFeeder/src
33
debugdir = ../../../lib/bsv/Debug/
34
sortdir = ../../sort
35
ctrldir = ../../ctrl
36
commondir = ../Common
37
memo_common_dir = ../../common
38
aes_test = ../aesCore
39
aes_bsv_dir = ../../aesCore/bsv
40
aes_ver_dir = ../../aesCore/ver
41
bram_fifo_test = ../BRAMFIFO
42
sort_test = ../Sort
43
external_memory_dir = ../ExternalMemory
44
bramdir = ../../../lib/bsv/BRAM/
45
bram_target_dir      = ../../sort/BRAM_v
46
bram_fifo_dir = ../../sort/BRAMLevelFIFOAdders
47
top_dir = ../Top
48
bram_fifo_ver_dir = ../../sort/BRAM_v
49
rom_test = ../ROMTest
50
 
51
VER_OPTS =  +RTS -K100000000 --RTS -u -v -verilog -aggressive-conditions -vdir ./
52
SIM_OPTS =  +RTS -K100000000 --RTS -u -v -sim -aggressive-conditions -show-schedule
53
EXE_OPTS =  +RTS -K100000000 --RTS -sim
54
 
55
#--------------------------------------------------------------------
56
# Build targets
57
#--------------------------------------------------------------------
58
 
59
plbtester :
60
 
61
        $(BSC_COMP) $(SIM_OPTS) -bdir ./ -p +:$(plbdir):$(bramdir):$(memo_common_dir):$(feederdir):$(bramdir):$(commondir):$(debugdir):$(bram_blue_target_dir) -g mkPLBMasterTester $(plbdir)/PLBMasterTester.bsv > out.log
62
 
63
plbtester_verilog :
64
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(plbdir):$(bramdir):$(memo_common_dir):$(feederdir):$(bramdir):$(commondir):$(debugdir):$(bram_blue_target_dir) -g mkPLBMasterTester $(plbdir)/PLBMasterTester.bsv > out.log
65
 
66
external_memory_simulator:
67
        $(BSC_COMP) $(SIM_OPTS) -bdir ./ -p +:$(plbdir):$(commondir):$(memo_common_dir):$(external_memory_dir):$(bramdir):$(debugdir) \
68
                               -g mkExternalMemoryTestbench $(external_memory_dir)/ExternalMemoryTestbench.bsv > out.log
69
        $(BSC_COMP) $(EXE_OPTS) -bdir ./ -e mkExternalMemoryTestbench  *.ba
70
 
71
external_memory_tester_verilog:
72
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(commondir):$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(external_memory_dir):$(debugdir):$(bramdir):$(bram_blue_target_dir) -g mkExternalMemoryTester $(external_memory_dir)/ExternalMemoryTester.bsv > out.log
73
 
74
top_verilog:
75 4 kfleming
        $(BSC_COMP) $(VER_OPTS) -dschedule  -D LogArrayLen=18 -bdir ./ -p +:$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(external_memory_dir):$(debugdir):$(sortdir):$(ctrldir):$(aes_bsv_dir):$(bram_blue_target_dir):$(bram_fifo_ver_dir):$(bram_fifo_dir) -g mkSorter $(top_dir)/Sorter.bsv > out.log
76 3 kfleming
 
77
aes_tester_verilog:
78
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(debugdir):$(external_memory_dir):$(sortdir):$(ctrldir):$(bramdir):$(aes_bsv_dir):$(debugdir):$(bram_blue_target_dir):$(bram_fifo_ver_dir):$(bram_fifo_dir) -g mkAESTester $(aes_test)/AESTester.bsv > out.log
79
 
80
bramfifo_tester_verilog:
81
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(external_memory_dir):$(sortdir):$(ctrldir):$(bramdir):$(bram_blue_target_dir):$(bram_fifo_ver_dir):$(bram_fifo_dir) -g mkBRAMFIFOTester $(bram_fifo_test)/BRAMFIFOTester.bsv > out.log
82
 
83
sort_tester_verilog:
84
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(debugdir):$(external_memory_dir):$(sortdir):$(ctrldir):$(bramdir):$(bram_blue_target_dir):$(bram_fifo_ver_dir):$(bram_fifo_dir) -g mkSortTester $(sort_test)/SortTester.bsv > out.log
85
 
86
rom_test_verilog:
87
        $(BSC_COMP) $(VER_OPTS) -bdir ./ -p +:$(plbdir):$(feederdir):$(commondir):$(memo_common_dir):$(debugdir):$(external_memory_dir):$(sortdir):$(ctrldir):$(bramdir):$(aes_bsv_dir):$(bram_blue_target_dir):$(bram_fifo_ver_dir):$(bram_fifo_dir):$(rom_test) -g mkROMTest $(rom_test)/ROMTest.bsv > out.log
88
 
89
#--------------------------------------------------------------------
90
# Default make target
91
#--------------------------------------------------------------------
92
 
93
all : plbtester
94
 
95
#--------------------------------------------------------------------
96
# Clean up
97
#--------------------------------------------------------------------
98
 
99
clean :
100
        rm -rf $(junk) *~ \#* *.cxx *.ba *.o *.h *.bi *.bo *.bsv *.v *.log *.so a.out

powered by: WebSVN 2.1.0

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