- added anaborate target
git-svn-id: http://moon:8086/svn/vhdl/trunk@1401 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
+11
-3
@@ -3,6 +3,10 @@
|
|||||||
# SRCS
|
# SRCS
|
||||||
# ENTITY_RUN
|
# ENTITY_RUN
|
||||||
|
|
||||||
|
GHDL := ghdl
|
||||||
|
GHDL_GCC := ghdl-gcc
|
||||||
|
|
||||||
|
RUN_OPTS := --vcd=$(BUILD_DIR)/$(NAME).vcd --wave=$(BUILD_DIR)/$(NAME).ghw --assert-level=error
|
||||||
|
|
||||||
all: analyze
|
all: analyze
|
||||||
|
|
||||||
@@ -10,16 +14,20 @@ $(BUILD_DIR):
|
|||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
analyze: $(BUILD_DIR) $(SRCS)
|
analyze: $(BUILD_DIR) $(SRCS)
|
||||||
ghdl -a --work=$(NAME) --workdir=$(BUILD_DIR) $(SRCS)
|
$(GHDL) -a --work=$(NAME) --workdir=$(BUILD_DIR) $(SRCS)
|
||||||
|
|
||||||
|
anaborate: $(BUILD_DIR) $(SRCS)
|
||||||
|
$(GHDL_GCC) -c -o $(BUILD_DIR)/$(NAME) --work=$(NAME) --workdir=$(BUILD_DIR) $(SRCS) -e $(ENTITY_RUN)
|
||||||
|
-$(BUILD_DIR)/$(NAME) $(RUN_OPTS) >$(BUILD_DIR)/$(NAME).log
|
||||||
|
|
||||||
run: analyze
|
run: analyze
|
||||||
-ghdl -r --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_RUN) --vcd=$(BUILD_DIR)/$(NAME).vcd --wave=$(BUILD_DIR)/$(NAME).ghw --assert-level=error >$(BUILD_DIR)/$(NAME).log
|
-$(GHDL) -r --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_RUN) $(RUN_OPTS) >$(BUILD_DIR)/$(NAME).log
|
||||||
|
|
||||||
sim: run
|
sim: run
|
||||||
exec gtkwave -f $(BUILD_DIR)/$(NAME).ghw &
|
exec gtkwave -f $(BUILD_DIR)/$(NAME).ghw &
|
||||||
|
|
||||||
synth: analyze
|
synth: analyze
|
||||||
ghdl --synth --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_SYN)
|
$(GHDL) --synth --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_SYN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BUILD_DIR)/$(NAME)*.cf
|
rm -f $(BUILD_DIR)/$(NAME)*.cf
|
||||||
|
|||||||
Reference in New Issue
Block a user