| 1 | # |
|---|
| 2 | # $Id: Makefile.flags 146 2011-02-01 20:57:54Z rosiere $ |
|---|
| 3 | # |
|---|
| 4 | # [ Description ] |
|---|
| 5 | # |
|---|
| 6 | |
|---|
| 7 | ifeq ($(origin MORPHEO_TYPE), undefined) |
|---|
| 8 | $(error "variable MORPHEO_TYPE is undefined"); |
|---|
| 9 | endif |
|---|
| 10 | |
|---|
| 11 | #-----[ Simulator ]---------------------------------------- |
|---|
| 12 | SIMULATOR_SYSTEMC ?= systemc |
|---|
| 13 | SIMULATOR_VHDL ?= modelsim |
|---|
| 14 | |
|---|
| 15 | # 4 simulators for systemC : |
|---|
| 16 | # systemc - supported - SystemC 2.2.0 |
|---|
| 17 | # systemcass - supported - SystemCASS |
|---|
| 18 | # systemcass_deps - not yet supported - Systemcass, and use port dependency information instead of sensitivity list |
|---|
| 19 | # modelsim - not yet supported - Co simulation SystemC/VHDL with Modelsim |
|---|
| 20 | |
|---|
| 21 | # 1 simulator for VHDL |
|---|
| 22 | # modelsim - supported |
|---|
| 23 | |
|---|
| 24 | #-----[ Flags ]-------------------------------------------- |
|---|
| 25 | |
|---|
| 26 | # If you add a MORPHEO_FLAGS, add name in array "type_list" in file "environment.sh" |
|---|
| 27 | |
|---|
| 28 | MORPHEO_systemc_FLAGS = -DSYSTEMC \ |
|---|
| 29 | -DSTATISTICS \ |
|---|
| 30 | -DTRANSLATION |
|---|
| 31 | |
|---|
| 32 | MORPHEO_vhdl_FLAGS = -DVHDL \ |
|---|
| 33 | -DTRANSLATION |
|---|
| 34 | |
|---|
| 35 | MORPHEO_cosim_FLAGS = -DSYSTEMC \ |
|---|
| 36 | -DSTATISTICS \ |
|---|
| 37 | -DVHDL \ |
|---|
| 38 | -DTRANSLATION |
|---|
| 39 | |
|---|
| 40 | MORPHEO_debug_FLAGS = -DSYSTEMC \ |
|---|
| 41 | -DDEBUG=DEBUG_FUNC \ |
|---|
| 42 | -DVHDL |
|---|
| 43 | |
|---|
| 44 | MORPHEO_debug_systemc_FLAGS = -DSYSTEMC \ |
|---|
| 45 | -DDEBUG=DEBUG_FUNC |
|---|
| 46 | |
|---|
| 47 | MORPHEO_FLAGS = $(MORPHEO_$(MORPHEO_TYPE)_FLAGS) |
|---|
| 48 | |
|---|
| 49 | # | systemc | vhdl | cosim | debug | debug_systemc |
|---|
| 50 | #-----------------------+---------+------+-------+-------+--------------- |
|---|
| 51 | # TRANSLATION | X | X | X | | |
|---|
| 52 | # SYSTEMC | X | | X | X | X |
|---|
| 53 | # STATISTICS | X | | X | | |
|---|
| 54 | # VHDL | | X | X | X | |
|---|
| 55 | # VHDL_TESTBENCH | | | | | |
|---|
| 56 | # VHDL_TESTBENCH_ASSERT | | | | | |
|---|
| 57 | # DEBUG | | | | X | X |
|---|
| 58 | # DEBUG_MEMORY_LEAK | | | | | |
|---|
| 59 | # DEBUG_SIGNAL | | | | | |
|---|
| 60 | # POSITION | | | | | |
|---|
| 61 | # PRINT_COLOR | | | | | |
|---|
| 62 | |
|---|
| 63 | # Flags : |
|---|
| 64 | # TRANSLATION - Translate message |
|---|
| 65 | # SYSTEMC - To generate a systemc's model |
|---|
| 66 | # STATISTICS (need SYSTEMC) - In the simulation, generate a statistics's file |
|---|
| 67 | # VHDL - To generate a vhdl's models |
|---|
| 68 | # VHDL_TESTBENCH (need SYSTEMC) - In the simulation, generate two testbench's file (input and ouput) to validate the vhdl's model |
|---|
| 69 | # VHDL_TESTBENCH_ASSERT (need VHDL_TESTBENCH) - In the simulation, generate in testbench's file an serie of assert |
|---|
| 70 | # DEBUG={level} - Print Debug Message |
|---|
| 71 | # DEBUG_MEMORY_LEAK - |
|---|
| 72 | # DEBUG_SIGNAL - |
|---|
| 73 | # POSITION - To generate a position's files (it's input of viewer) |
|---|
| 74 | # PRINT_COLOR - Print with colors |
|---|