Commit ee0c274d authored by Federico Vaga's avatar Federico Vaga

allow to use different CHEBY tool

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 80df3e5d
......@@ -10,11 +10,13 @@ HTML += svec_ref_fmc_adc_100Ms_mmap.htm
HTML += spec_ref_fmc_adc_100Ms_mmap.htm
HTML += fmc_adc_mezzanine_mmap.htm
CHEBY ?= cheby
all: $(HTML)
.PHONY: clean
CHEBY_BUILD=(cd $(dir $<); cheby -i $(notdir $<) --gen-doc --doc html) > $@
CHEBY_BUILD=(cd $(dir $<); $(CHEBY) -i $(notdir $<) --gen-doc --doc html) > $@
fmc_adc_mezzanine_mmap.htm: $(TOP_DIR)/hdl/cheby/fmc_adc_mezzanine_mmap.cheby
$(CHEBY_BUILD)
......
......@@ -7,12 +7,14 @@ SIM =../testbench/include
SOURCES = $(wildcard *.cheby)
TARGETS = $(SOURCES:.cheby=.vhd)
CHEBY ?= cheby
all: $(TARGETS)
.PHONY: $(TARGETS)
$(TARGETS): %.vhd : %.cheby
@echo -e "\n\033[34m\033[1m-> Processing file $<\033[0m"
cheby -i $< --gen-hdl=$@
cheby -i $< --gen-consts=$(SIM)/$(@:.vhd=.v)
cheby -i $< --gen-c=../../software/include/hw/$(<:.cheby=.h)
$(CHEBY) -i $< --gen-hdl=$@
$(CHEBY) -i $< --gen-consts=$(SIM)/$(@:.vhd=.v)
$(CHEBY) -i $< --gen-c=../../software/include/hw/$(<:.cheby=.h)
......@@ -9,14 +9,16 @@ SW =../../../software/include/hw
SOURCES = $(wildcard *.cheby)
TARGETS = $(SOURCES:.cheby=.vhd)
CHEBY ?= cheby
all: $(TARGETS)
.PHONY: $(TARGETS)
$(TARGETS): %.vhd : %.cheby
@echo "\n\033[34m\033[1m-> Processing file $<\033[0m"
@cheby -i $< --gen-hdl=$@
@cheby -i $< \
@$(CHEBY) -i $< --gen-hdl=$@
@$(CHEBY) -i $< \
--gen-doc=$(DOC)/$(@:.vhd=.html) \
--gen-consts=$(SIM)/$(@:.vhd=.v) \
--gen-c=$(SW)/$(@:.vhd=.h)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment