Skip to content

Commit

Permalink
Merge pull request ipbus#1 from ipbus/ipbb_integration
Browse files Browse the repository at this point in the history
Added Makefile to simplify fli building
  • Loading branch information
alessandrothea committed Feb 13, 2017
2 parents 81dbd93 + 054bf45 commit 6cb2d4f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions components/ipbus_eth/firmware/sim/modelsim_fli/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This script designed for 64b QuestaSim/ModelSim
#
# Dave Newbold, February 2011
# Alessandro Thea, December 2016

SIMEXE:=vsim

ifeq (, $(shell which ${SIMEXE}))
$(error "No ModelSim/QuestaSim in $(PATH), have you added it to PATH?")
endif

TAP_DEV?="tap0"
MODELSIM_ROOT:=$(shell cd $$(dirname $$(which ${SIMEXE}) )/.. && pwd)

mac_fli.so: export MTI_VCO_MODE=64
mac_fli.so: mac_fli.c
gcc -shared -fPIC -Wl,-Bsymbolic,--allow-shlib-undefined,--export-dynamic -D TAP_DEV=${TAP_DEV} -I${MODELSIM_ROOT}/include/ -o $@ $<

clean:
rm mac_fli.so

0 comments on commit 6cb2d4f

Please sign in to comment.