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

Subversion Repositories mod_sim_exp

[/] [mod_sim_exp/] [trunk/] [sim/] [Makefile] - Blame information for rev 94

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

Line No. Rev Author Line
1 3 JonasDC
#VCOM    = /usr/local/bin/vcom
2 65 JonasDC
VCOMOPS = -explicit -check_synthesis -2002 -quiet
3 94 JonasDC
VLOGOPS = -vopt -nocovercells
4 3 JonasDC
#MAKEFLAGS = --silent
5
HDL_DIR = ../rtl/vhdl/
6 94 JonasDC
VER_DIR = ../rtl/verilog/
7 3 JonasDC
 
8
##
9 90 JonasDC
# hdl files
10 3 JonasDC
##
11 84 JonasDC
CORE_SRC =$(HDL_DIR)core/std_functions.vhd \
12
                 $(HDL_DIR)core/mod_sim_exp_pkg.vhd \
13
                 $(HDL_DIR)ram/dpram_generic.vhd \
14
                 $(HDL_DIR)ram/tdpram_generic.vhd \
15
                 $(HDL_DIR)ram/dpram_asym.vhd \
16
                 $(HDL_DIR)ram/dpramblock_asym.vhd \
17
                 $(HDL_DIR)core/modulus_ram_asym.vhd \
18
                 $(HDL_DIR)ram/tdpram_asym.vhd \
19
                 $(HDL_DIR)ram/tdpramblock_asym.vhd \
20
                 $(HDL_DIR)core/operand_ram_asym.vhd \
21
                 $(HDL_DIR)core/fifo_generic.vhd \
22
                 $(HDL_DIR)core/modulus_ram_gen.vhd \
23
                 $(HDL_DIR)core/operand_ram_gen.vhd \
24
                 $(HDL_DIR)core/adder_block.vhd \
25
                 $(HDL_DIR)core/autorun_cntrl.vhd \
26
                 $(HDL_DIR)core/cell_1b_adder.vhd \
27
                 $(HDL_DIR)core/cell_1b_mux.vhd \
28
                 $(HDL_DIR)core/cell_1b.vhd \
29
                 $(HDL_DIR)core/counter_sync.vhd \
30
                 $(HDL_DIR)core/d_flip_flop.vhd \
31
                 $(HDL_DIR)core/fifo_primitive.vhd \
32
                 $(HDL_DIR)core/modulus_ram.vhd \
33
                 $(HDL_DIR)core/mont_ctrl.vhd \
34
                 $(HDL_DIR)core/mod_sim_exp_core.vhd \
35
                 $(HDL_DIR)core/operand_dp.vhd \
36
                 $(HDL_DIR)core/operand_mem.vhd \
37
                 $(HDL_DIR)core/operand_ram.vhd \
38
                 $(HDL_DIR)core/operands_sp.vhd \
39
                 $(HDL_DIR)core/register_1b.vhd \
40
                 $(HDL_DIR)core/register_n.vhd \
41
                 $(HDL_DIR)core/standard_cell_block.vhd \
42
                 $(HDL_DIR)core/stepping_logic.vhd \
43
                 $(HDL_DIR)core/x_shift_reg.vhd \
44
                 $(HDL_DIR)core/sys_stage.vhd \
45
                 $(HDL_DIR)core/sys_last_cell_logic.vhd \
46
                 $(HDL_DIR)core/sys_first_cell_logic.vhd \
47
                 $(HDL_DIR)core/sys_pipeline.vhd \
48
                 $(HDL_DIR)core/mont_multiplier.vhd \
49 94 JonasDC
                 $(HDL_DIR)core/pulse_cdc.vhd \
50
                 $(HDL_DIR)core/clk_sync.vhd \
51 3 JonasDC
 
52 94 JonasDC
VER_SRC =$(VER_DIR)generic_fifo_dc.v \
53
                 $(VER_DIR)generic_fifo_dc_gray.v
54 3 JonasDC
 
55
##
56 84 JonasDC
# Testbench HDL files
57 3 JonasDC
##
58
TB_SRC_DIR = ../bench/vhdl/
59 84 JonasDC
TB_SRC =        $(TB_SRC_DIR)mod_sim_exp_core_tb.vhd \
60 94 JonasDC
                        $(TB_SRC_DIR)msec_axi_tb.vhd \
61
                        $(TB_SRC_DIR)axi_tb.vhd
62 3 JonasDC
 
63 84 JonasDC
##
64
# Interface HDL files
65
##
66
IF_SRC_DIR = ../rtl/vhdl/interface/
67
IF_SRC =        $(IF_SRC_DIR)axi/msec_ipcore_axilite.vhd
68
 
69 3 JonasDC
#######################################
70
all: mod_sim_exp
71
 
72
clean:
73
        rm -rf *_lib
74
 
75
mod_sim_exp_lib:
76
        vlib mod_sim_exp
77
 
78
work_lib:
79
        vlib work
80
 
81 84 JonasDC
libs: mod_sim_exp_lib work_lib
82 3 JonasDC
 
83
mod_sim_exp_com: mod_sim_exp_lib
84
        #echo --
85
        #echo building Modular Exponentiation Core
86
        #echo --
87 94 JonasDC
        vlog $(VLOGOPS) -work mod_sim_exp $(VER_SRC)
88 65 JonasDC
        vcom $(VCOMOPS) -work mod_sim_exp $(CORE_SRC)
89
        #echo Done!
90 3 JonasDC
 
91
mod_sim_exp_tb: work_lib
92
        #echo --
93 84 JonasDC
        #echo building Modular Exponentiation Core Testbenches
94 3 JonasDC
        #echo --
95
        vcom $(VCOMOPS) -work work $(TB_SRC)
96
 
97 84 JonasDC
msec_if: work_lib
98
        #echo --
99
        #echo building Modular Exponentiation Core Interface
100
        #echo --
101
        vcom $(VCOMOPS) -work work $(IF_SRC)
102
 
103 3 JonasDC
mod_sim_exp: mod_sim_exp_com mod_sim_exp_tb
104 24 JonasDC
        vsim -c -do mod_sim_exp.do -lib work mod_sim_exp_core_tb
105 84 JonasDC
 
106
mod_sim_exp_axi: mod_sim_exp_com msec_if mod_sim_exp_tb
107
        vsim -c -do mod_sim_exp.do -lib work msec_axi_tb

powered by: WebSVN 2.1.0

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