Ignore:
Timestamp:
Apr 14, 2009, 8:39:12 PM (15 years ago)
Author:
rosiere
Message:

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common

    r103 r113  
    2222endif
    2323
     24##-----[ Entity ]-------------------------------------------
     25#ENTITY                         = $$($(BASENAME) $$PWD)
     26
    2427#-----[ Directory ]----------------------------------------
    2528#DIR_TMP                         = .
     
    2730DIR_INC                         = include
    2831DIR_SRC                         = src
    29 DIR_OBJ                         = obj
     32DIR_OBJ                         = $(DIR_TMP)/obj
     33DIR_LIB                         = $(DIR_TMP)/lib
    3034DIR_SCRIPT                      = $(MORPHEO_SCRIPT)
    3135
     
    3539                                  -I$(DIR_MORPHEO)
    3640
    37 LIBDIR                          = $(DIR_LIBRARY)                        \
     41LIBDIR                          = -L$(DIR_LIB) \
    3842                                  $(SYSTEMC_LIBDIR_$(SIMULATOR))       
    3943#                                 $(OR1K_LIBDIR)                               
    40 
    41 LIBS                            = $(LIBRARY) -lm $(SYSTEMC_LIBNAME_$(SIMULATOR))
    42 
    43 #                                 $(OR1K_LIBNAME) -lbfd 
    4444
    4545FLAGS_COMMON                    = $(SYSTEMC_CFLAGS_$(SIMULATOR))        \
     
    5050
    5151#-----[ Variable ]-----------------------------------------
    52 ENTITY                          = $$($(BASENAME) $$PWD)
    53 
    54 OBJECTS_COMMON                  = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp))
     52#OBJECTS_COMMON                 = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp))
     53SOURCES                         = $(wildcard $(DIR_SRC)/*.cpp)
     54OBJECTS_COMMON                  = $(addprefix $(DIR_OBJ)/$(ENTITY)_, $(addsuffix .o, $(basename $(notdir $(SOURCES)))))
    5555
    5656HEADERS                         = $(wildcard $(DIR_INC)/*.h)
    5757
    5858#-----[ Rules ]--------------------------------------------
    59 .PRECIOUS                       : $(DIR_OBJ)/%.o
     59.PRECIOUS                       : $(DIR_OBJ)/$(ENTITY)_%.o
    6060
    6161test_env                        :
    6262                                @$(ECHO) "-------------------| $(ENTITY)"
    6363
     64test                            :
     65                                @echo $(DIR_LIBRARY);
    6466
    65 $(DIR_OBJ)/%.o                  : $(DIR_SRC)/%.cpp $(HEADERS)
     67$(DIR_OBJ)/$(ENTITY)_%.o        : $(DIR_SRC)/%.cpp $(HEADERS)
    6668                                @\
    6769                                $(ECHO) "Compilation        : $*";\
    68                                 $(CXX) $(CFLAGS) -c -o $@ $<;
     70                                $(SYSTEMC_CXX_$(SIMULATOR)) $(CFLAGS) -c -o $@ $<;
    6971
    7072$(DIR_OBJ)                      :
     
    7678                                @\
    7779                                $(ECHO) "Delete     temporary files in directory $(PWD)";\
    78                                 $(RM)   $(DIR_OBJ)      \
    79                                         $(DIR_BIN)      \
    80                                         *~              \
    81                                         $(DIR_SRC)/*~   \
     80                                $(RM)   $(OBJECTS_COMMON)     \
     81                                        *~                    \
     82                                        $(DIR_SRC)/*~         \
    8283                                        $(DIR_INC)/*~;
    8384
    8485common_clean_all                : common_clean
     86                                @\
     87                                $(RM)   $(DIR_OBJ)
    8588
    8689common_help                     :
Note: See TracChangeset for help on using the changeset viewer.