# If you are not using a PE, make sure that the
# appropriate class is set to notset
# Otherwise, set the classname (only, no peX_ prepended)
# to you java class name for each pe

# Supply class names here
export CLASS0 = notset
export CLASS1 = notset
export CLASS2 = notset

# Uncomment the appropriate part and package

#export SYSTOLIC_PART=4013e
#export SYSTOLIC_PART=4013xl
#export SYSTOLIC_PART=4020e
#export SYSTOLIC_PART=4020xl
#export SYSTOLIC_PART=4025e
#export SYSTOLIC_PART=4028ex
#export SYSTOLIC_PART=4028xl
#export SYSTOLIC_PART=4036ex
#export SYSTOLIC_PART=4036xl
#export SYSTOLIC_PART=4044xl
#export SYSTOLIC_PART=4052xl
#export SYSTOLIC_PART=4062xl
#export SYSTOLIC_PART=4085xl
export SYSTOLIC_PART=40150xv

#export PE0_PART=4013e
#export PE0_PART=4013xl
#export PE0_PART=4020e
#export PE0_PART=4020xl
#export PE0_PART=4025e
#export PE0_PART=4028ex
#export PE0_PART=4028xl
#export PE0_PART=4036ex
#export PE0_PART=4036xl
#export PE0_PART=4044xl
#export PE0_PART=4052xl
#export PE0_PART=4062xl
#export PE0_PART=4085xl
export PE0_PART=4085xla

#export SYSTOLIC_PACKAGE=hq240 # for most boards
#export SYSTOLIC_PACKAGE=pq240 # for 4013E, 4013XL, 4020XL
export SYSTOLIC_PACKAGE=bg560 # slaac1 rev1

#export PE0_PACKAGE=bg432 # for XL boards
#export PE0_PACKAGE=hq304 # for EX/E boards
export PE0_PACKAGE=bg560 # for slaac1 rev1 pe0

#export SPEEDGRADE=-3
#export SPEEDGRADE=-2
#export SPEEDGRADE=-1
export SPEEDGRADE=-09


all:
	@$(MAKE) -C syn all

pe0:	x0_${CLASS0}.edn
	@$(MAKE) -C syn pe0

pe1:	xp_${CLASS1}.edn
	@$(MAKE) -C syn pe1

pe2:	xp_${CLASS2}.edn
	@$(MAKE) -C syn pe2

clean:
	@$(MAKE) -C syn clean

allclean:
	@$(MAKE) -C syn clean
	rm -f *.sym *.x86 *.group *.signals

bin:
	@$(MAKE) -C syn bin
