1 |
3 |
kfleming |
BSC_COMP = bsc
|
2 |
|
|
VER_OPTS = +RTS -K100000000 --RTS -u -verilog -elab -no-show-method-conf \
|
3 |
|
|
-aggressive-conditions -vdir ./build/vdir -bdir ./build/bdir -dschedule
|
4 |
|
|
SIM_OPTS = +RTS -K100000000 --RTS -u -verilog -aggressive-conditions -dschedule -vdir ./build/vdir -bdir ./build/bdir
|
5 |
|
|
EXE_OPTS = +RTS -K100000000 --RTS -verilog -vsim iverilog -vdir ./build/vdir -bdir ./build/bdir
|
6 |
|
|
SIM_OPTS_NEW = +RTS -K100000000 --RTS -u -sim -aggressive-conditions -dschedule -vdir ./build/vdir -bdir ./build/bdir
|
7 |
|
|
|
8 |
|
|
sortdir = .
|
9 |
|
|
commondir = ../common
|
10 |
|
|
bsv_sim = ./BRAM_v
|
11 |
|
|
bsv_ver = ./BRAM_v
|
12 |
|
|
level_fifo_addr = ./BRAMLevelFIFOAdders
|
13 |
|
|
level_fifo_muxes = ./BRAMLevelFIFOMuxes
|
14 |
|
|
|
15 |
|
|
bram_fifo_testbench:
|
16 |
|
|
mkdir -p build
|
17 |
|
|
mkdir -p build/bdir
|
18 |
|
|
mkdir -p build/vdir
|
19 |
|
|
cp $(level_fifo_addr)/zeros.data ./
|
20 |
|
|
$(BSC_COMP) $(SIM_OPTS) -show-schedule -p +:$(bsv_sim):./:$(commondir):$(level_fifo_addr):./build/bdir -g mkVLevelFIFOTester $(sortdir)/VLevelFIFOTester.bsv > out.log
|
21 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkVLevelFIFOTester ./build/vdir/*.v $(bsv_sim)/*.v
|
22 |
|
|
|
23 |
|
|
bram_fifo_testbench_full:
|
24 |
|
|
mkdir -p build
|
25 |
|
|
mkdir -p build/bdir
|
26 |
|
|
mkdir -p build/vdir
|
27 |
|
|
cp $(level_fifo_addr)/zeros.data ./
|
28 |
|
|
$(BSC_COMP) $(SIM_OPTS) -show-schedule -p +:./:$(bsv_sim):$(commondir):$(level_fifo_addr):./build/bdir -g mkVLevelFIFOTesterFull $(sortdir)/VLevelFIFOTester.bsv > out.log
|
29 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkVLevelFIFOTesterFull ./build/vdir/*.v $(bsv_sim)/*.v
|
30 |
|
|
|
31 |
|
|
sort_tree_perf_testbench:
|
32 |
|
|
mkdir -p build
|
33 |
|
|
mkdir -p build/bdir
|
34 |
|
|
mkdir -p build/vdir
|
35 |
|
|
$(BSC_COMP) $(SIM_OPTS) -show-schedule -p +:./:$(commondir):$(bsv_sim):$(level_fifo_addr):./build/bdir -g mkSortTreeTestbench $(sortdir)/SortTreeTestbench.bsv > out.log
|
36 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkSortTreeTestbench ./build/vdir/*.v $(bsv_sim)/*.v
|
37 |
|
|
|
38 |
|
|
sort_tree_adder_verilog: clean
|
39 |
|
|
mkdir -p build
|
40 |
|
|
mkdir -p build/bdir
|
41 |
|
|
mkdir -p build/vdir
|
42 |
|
|
$(BSC_COMP) $(VER_OPTS) -p +:$(bsv_ver):$(level_fifo_addr):./:$(commondir):./build/bdir -g mkBRAMLevel6MergerInstance $(sortdir)/Sort.bsv > out.log
|
43 |
|
|
|
44 |
|
|
sort_tree_128_verilog: clean
|
45 |
|
|
mkdir -p build
|
46 |
|
|
mkdir -p build/bdir
|
47 |
|
|
mkdir -p build/vdir
|
48 |
|
|
$(BSC_COMP) $(VER_OPTS) -p +:$(bsv_ver):$(level_fifo_addr):./:$(commondir):./build/bdir -g mkSortTree128 $(sortdir)/SortTree128.bsv > out.log
|
49 |
|
|
|
50 |
|
|
sort_tree_256_verilog: clean
|
51 |
|
|
mkdir -p build
|
52 |
|
|
mkdir -p build/bdir
|
53 |
|
|
mkdir -p build/vdir
|
54 |
|
|
$(BSC_COMP) $(VER_OPTS) -p +:$(bsv_ver):$(level_fifo_addr):./:$(commondir):./build/bdir -g mkSortTree256 $(sortdir)/SortTree256.bsv > out.log
|
55 |
|
|
|
56 |
|
|
sort_tree_mux_verilog: clean
|
57 |
|
|
mkdir -p build
|
58 |
|
|
mkdir -p build/bdir
|
59 |
|
|
mkdir -p build/vdir
|
60 |
|
|
$(BSC_COMP) $(VER_OPTS) -p +:$(bsv_ver):./:$(commondir):$(level_fifo_muxes):./build/bdir -g mkBRAMLevel6MergerInstance $(sortdir)/Sort.bsv > out.log
|
61 |
|
|
|
62 |
|
|
butter_tb:
|
63 |
|
|
mkdir -p build
|
64 |
|
|
mkdir -p build/bdir
|
65 |
|
|
mkdir -p build/vdir
|
66 |
|
|
$(BSC_COMP) $(VER_OPTS) -p +:$(bsv_ver):./:$(commondir):$(level_fifo_muxes):./build/bdir -g mkButterflySortTest $(sortdir)/ButterflySort.bsv > out.log
|
67 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkButterflySortTest ./build/vdir/*.v $(bsv_sim)/*.v
|
68 |
|
|
|
69 |
|
|
%:
|
70 |
|
|
mkdir -p build
|
71 |
|
|
mkdir -p build/bdir
|
72 |
|
|
mkdir -p build/vdir
|
73 |
|
|
$(BSC_COMP) $(VER_OPTS) -show-schedule -p +:$(bsv_sim):$(level_fifo_addr):./:$(commondir):./build/bdir $@.bsv
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
bram_fifo_test:
|
77 |
|
|
mkdir -p build
|
78 |
|
|
mkdir -p build/bdir
|
79 |
|
|
mkdir -p build/vdir
|
80 |
|
|
$(BSC_COMP) $(SIM_OPTS) -show-schedule -p +:./:$(commondir):$(bsv_sim):$(level_fifo_addr):./build/bdir -g mkBRAMFIFOTest $(sortdir)/BRAMFIFOTest.bsv > out.log
|
81 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkBRAMFIFOTest ./build/vdir/*.v $(bsv_sim)/*.v
|
82 |
|
|
|
83 |
|
|
sort_tree_test:
|
84 |
|
|
mkdir -p build
|
85 |
|
|
mkdir -p build/bdir
|
86 |
|
|
mkdir -p build/vdir
|
87 |
|
|
$(BSC_COMP) $(SIM_OPTS) -show-schedule -p +:./:$(commondir):$(bsv_sim):$(level_fifo_addr):./build/bdir -g mkSortTest $(sortdir)/SortTest.bsv > out.log
|
88 |
|
|
$(BSC_COMP) $(EXE_OPTS) -e mkSortTest ./build/vdir/*.v $(bsv_sim)/*.v
|
89 |
|
|
|
90 |
|
|
.PHONY: clean
|
91 |
|
|
|
92 |
|
|
clean:
|
93 |
|
|
rm -rf build
|