head 1.83; access; symbols bg2_23:1.80 bg2_22:1.80 bg2_21:1.80 bg2_20:1.80 bg2_16:1.80 bg2_15:1.80 bg2_12:1.80 bg2_07:1.80 isorc2008_submission:1.74 handbook_alpha_edition:1.72 jtres2007_submission:1.65 bg1_07:1.63 bg1_06:1.63 bg1_05:1.63 TAL_101:1.61 TAL_100:1.59 jtres_submission:1.52 wises06_submission:1.39 lctes2006_submission:1.31 rtgc_isorc2006:1.23.0.4 isorc2006:1.23.0.2 rtgc_paper:1.23 bg1_00:1.14; locks; strict; comment @# @; 1.83 date 2008.10.16.10.03.12; author martin; state Exp; branches; next 1.82; commitid 206848f7115e4567; 1.82 date 2008.09.16.17.16.31; author martin; state Exp; branches; next 1.81; commitid 34f348cfe9ee4567; 1.81 date 2008.08.23.14.01.05; author stefant; state Exp; branches; next 1.80; commitid 53048b018104567; 1.80 date 2008.05.22.13.02.57; author martin; state Exp; branches; next 1.79; commitid 2a0548356eff4567; 1.79 date 2008.04.08.11.06.05; author stefant; state Exp; branches; next 1.78; commitid 471247fb518b4567; 1.78 date 2008.02.13.15.32.17; author martin; state Exp; branches; next 1.77; commitid 6a4247b30d7f4567; 1.77 date 2008.01.30.14.33.43; author jeuneS2; state Exp; branches; next 1.76; commitid 7a3e47a08a874567; 1.76 date 2008.01.14.22.01.21; author stefant; state Exp; branches; next 1.75; commitid 5cca478bdba94567; 1.75 date 2007.12.19.10.58.53; author 9914pich; state Exp; branches; next 1.74; commitid 77834768f96c4567; 1.74 date 2007.11.21.09.42.11; author 9914pich; state Exp; branches; next 1.73; commitid 7bdf4743fd724567; 1.73 date 2007.11.08.13.34.20; author martin; state Exp; branches; next 1.72; commitid 3d46473310594567; 1.72 date 2007.10.06.15.13.04; author martin; state Exp; branches; next 1.71; commitid 4a4c4707a5fc4567; 1.71 date 2007.10.03.01.27.36; author martin; state Exp; branches; next 1.70; commitid 30a14702f0044567; 1.70 date 2007.10.03.00.27.05; author martin; state Exp; branches; next 1.69; commitid 122e4702e1d44567; 1.69 date 2007.09.24.17.47.16; author martin; state Exp; branches; next 1.68; commitid 7efe46f7f8214567; 1.68 date 2007.09.22.02.40.52; author jeunes2; state Exp; branches; next 1.67; commitid 141246f480644567; 1.67 date 2007.09.02.22.15.30; author martin; state Exp; branches; next 1.66; commitid 181c46db36004567; 1.66 date 2007.07.24.11.59.30; author martin; state Exp; branches; next 1.65; commitid 1b4c46a5e99f4567; 1.65 date 2007.05.26.19.09.39; author martin; state Exp; branches; next 1.64; commitid 2807465885f24567; 1.64 date 2007.04.13.13.35.01; author martin; state Exp; branches; next 1.63; commitid 6a4f461f87024567; 1.63 date 2006.11.04.23.51.50; author martin; state Exp; branches; next 1.62; commitid 372e454d27944567; 1.62 date 2006.10.31.14.20.32; author martin; state Exp; branches; next 1.61; commitid 445845475bae4567; 1.61 date 2006.10.26.01.01.00; author martin; state Exp; branches; next 1.60; commitid 1213454008ca4567; 1.60 date 2006.10.18.20.50.54; author martin; state Exp; branches; next 1.59; commitid 7970453693ab4567; 1.59 date 2006.10.08.20.03.56; author martin; state Exp; branches; next 1.58; commitid 7484452959aa4567; 1.58 date 2006.10.04.17.35.39; author martin; state Exp; branches; next 1.57; commitid 73ac4523f0e94567; 1.57 date 2006.10.04.17.21.34; author martin; state Exp; branches; next 1.56; commitid 6b0c4523ed984567; 1.56 date 2006.10.04.16.21.32; author martin; state Exp; branches; next 1.55; commitid 49d14523df3d4567; 1.55 date 2006.08.11.16.08.11; author martin; state Exp; branches; next 1.54; commitid 79ad44dcab694567; 1.54 date 2006.08.11.01.35.56; author martin; state Exp; branches; next 1.53; commitid 443944dbdef94567; 1.53 date 2006.06.30.01.03.32; author martin; state Exp; branches; next 1.52; commitid 1a5544a478624567; 1.52 date 2006.06.30.01.02.49; author martin; state Exp; branches; next 1.51; commitid 19f744a478364567; 1.51 date 2006.06.23.00.22.02; author martin; state Exp; branches; next 1.50; commitid 47a0449b34284567; 1.50 date 2006.06.19.16.58.30; author martin; state Exp; branches; next 1.49; commitid 1d5d4496d7b44567; 1.49 date 2006.06.14.19.20.08; author martin; state Exp; branches; next 1.48; commitid 13a2449061664567; 1.48 date 2006.06.07.16.21.35; author martin; state Exp; branches; next 1.47; commitid 35914486fd0d4567; 1.47 date 2006.06.07.16.08.37; author martin; state Exp; branches; next 1.46; commitid 2c644486fa014567; 1.46 date 2006.05.29.10.28.18; author martin; state Exp; branches; next 1.45; commitid 60c0447accc04567; 1.45 date 2006.05.22.13.39.22; author martin; state Exp; branches; next 1.44; commitid 31e04471bf074567; 1.44 date 2006.04.28.19.42.40; author martin; state Exp; branches; next 1.43; commitid 4da64452702d4567; 1.43 date 2006.04.28.15.21.19; author martin; state Exp; branches; next 1.42; commitid 69b2445232ec4567; 1.42 date 2006.04.20.16.12.31; author martin; state Exp; branches; next 1.41; commitid 79064447b2ec4567; 1.41 date 2006.04.18.12.04.17; author martin; state Exp; branches; next 1.40; commitid 3ac64444d5bc4567; 1.40 date 2006.03.15.18.05.03; author martin; state Exp; branches; next 1.39; commitid 12ee4418574c4567; 1.39 date 2006.03.15.17.59.03; author martin; state Exp; branches; next 1.38; commitid 1090441855de4567; 1.38 date 2006.03.11.16.29.53; author martin; state Exp; branches; next 1.37; commitid 4ff4412faf04567; 1.37 date 2006.03.07.10.18.48; author martin; state Exp; branches; next 1.36; commitid 7141440d5e064567; 1.36 date 2006.03.02.09.17.15; author martin; state Exp; branches; next 1.35; commitid 70764406b8124567; 1.35 date 2006.02.20.19.36.41; author martin; state Exp; branches; next 1.34; commitid 642443fa1a464567; 1.34 date 2006.02.13.18.50.10; author martin; state Exp; branches; next 1.33; commitid 649643f0d4d44567; 1.33 date 2006.02.13.17.00.49; author martin; state Exp; branches; next 1.32; commitid 1abf43f0bb314567; 1.32 date 2006.02.12.20.54.09; author martin; state Exp; branches; next 1.31; commitid 239143ef9fc04567; 1.31 date 2006.02.12.18.11.01; author martin; state Exp; branches; next 1.30; commitid 64943ef7a334567; 1.30 date 2006.02.07.00.24.18; author martin; state Exp; branches; next 1.29; commitid 301543e7e8b14567; 1.29 date 2006.01.30.13.09.11; author martin; state Exp; branches; next 1.28; commitid 5f3543de0fe94567; 1.28 date 2006.01.12.23.30.20; author martin; state Exp; branches; next 1.27; commitid 381643c6e67d4567; 1.27 date 2006.01.12.10.12.30; author martin; state Exp; branches; next 1.26; commitid 82843c62b524567; 1.26 date 2005.12.23.01.09.43; author martin; state Exp; branches; next 1.25; commitid 336543ab4e564567; 1.25 date 2005.12.21.14.39.58; author martin; state Exp; branches; next 1.24; commitid 342d43a9693d4567; 1.24 date 2005.12.15.17.47.06; author martin; state Exp; branches; next 1.23; commitid 566943a1ac184567; 1.23 date 2005.12.15.17.43.48; author martin; state Exp; branches; next 1.22; commitid 55a543a1ab4b4567; 1.22 date 2005.12.07.09.17.00; author martin; state Exp; branches; next 1.21; commitid a1f4396a8764567; 1.21 date 2005.12.01.23.53.50; author martin; state Exp; branches; next 1.20; commitid 1e14438f8d0d4567; 1.20 date 2005.12.01.22.21.04; author martin; state Exp; branches; next 1.19; commitid 524438f774e4567; 1.19 date 2005.11.05.19.08.47; author martin; state Exp; branches; next 1.18; commitid 4998436d033c4567; 1.18 date 2005.10.19.13.16.22; author martin; state Exp; branches; next 1.17; commitid 7834356471f4567; 1.17 date 2005.10.19.10.26.09; author martin; state Exp; branches; next 1.16; commitid 50b443561f404567; 1.16 date 2005.10.11.16.07.46; author martin; state Exp; branches; next 1.15; commitid 7fb6434be34f4567; 1.15 date 2005.08.27.17.47.31; author martin; state Exp; branches; next 1.14; commitid 3d464310a7304567; 1.14 date 2005.08.25.09.13.07; author martin; state Exp; branches; next 1.13; commitid 4e5c430d8ba04567; 1.13 date 2005.08.16.12.37.35; author martin; state Exp; branches; next 1.12; commitid 1a1f4301de0c4567; 1.12 date 2005.08.15.14.53.30; author martin; state Exp; branches; next 1.11; commitid 276b4300ac684567; 1.11 date 2005.08.11.15.51.53; author martin; state Exp; branches; next 1.10; commitid 7ce042fb74174567; 1.10 date 2005.08.11.13.47.07; author martin; state Exp; branches; next 1.9; commitid 5e1c42fb56d64567; 1.9 date 2005.08.11.13.24.42; author martin; state Exp; branches; next 1.8; commitid 576742fb51964567; 1.8 date 2005.08.11.13.05.55; author martin; state Exp; branches; next 1.7; commitid 4a3942fb4d314567; 1.7 date 2005.08.11.13.04.28; author martin; state Exp; branches; next 1.6; commitid 49c342fb4cd94567; 1.6 date 2005.08.11.12.39.26; author martin; state Exp; branches; next 1.5; commitid 406842fb46f94567; 1.5 date 2005.08.11.12.24.59; author martin; state Exp; branches; next 1.4; commitid 3aed42fb43984567; 1.4 date 2005.07.31.16.14.19; author martin; state Exp; branches; next 1.3; commitid 3e6542ecf8da4567; 1.3 date 2005.07.31.16.08.18; author martin; state Exp; branches; next 1.2; commitid 3dd442ecf7704567; 1.2 date 2005.07.31.12.28.46; author martin; state Exp; branches; next 1.1; commitid c9442ecc3fa4567; 1.1 date 2005.07.26.12.06.53; author martin; state Exp; branches; next ; commitid 1c5742e6275a4567; desc @@ 1.83 log @WCET preprocessing @ text @# # Makefile # # Should build JOP and all tools from scratch. # # not included at the moment: # ACEX board # configuration CPLD compiling # Spartan-3 targets # # You probably want to change the folloing parts in the Makefile: # # QPROJ ... your Quartus FPGA project # COM_* ... your communication settings # all:, japp: ... USB or serial download # TARGET_APP_PATH, MAIN_CLASS ... your target application # # for a quick change you can also use command line arguments when invoking make: # make japp -e QPROJ=cycwrk TARGET_APP_PATH=java/target/src/bench MAIN_CLASS=jbe/DoAll # # # # Set USB to true for an USB based board (dspio, usbmin, lego) # USB=false # # com1 is the usual serial port # com5 is the FTDI VCOM for the USB download # use -usb to download the Java application # without the echo 'protocol' on USB # ifeq ($(USB),true) COM_PORT=COM5 COM_FLAG=-e -usb else COM_PORT=COM1 COM_FLAG=-e endif BLASTER_TYPE=ByteBlasterMV #BLASTER_TYPE=USB-Blaster ifeq ($(WINDIR),) USBRUNNER=./USBRunner else USBRUNNER=USBRunner.exe endif # 'some' different Quartus projects QPROJ=cycmin cycbaseio cycbg dspio lego cycfpu cyc256x16 sopcmin usbmin cyccmp # if you want to build only one Quartus project use e.q.: ifeq ($(USB),true) QPROJ=usbmin else QPROJ=cycmin endif # Which project do you want to be downloaded? DLPROJ=$(QPROJ) # Which project do you want to be programmed into the flash? FLPROJ=$(DLPROJ) # IP address for Flash programming IPDEST=192.168.1.2 IPDEST=192.168.0.123 P1=test P2=test P3=HelloWorld #P2=jvm #P3=DoAll #P1=rtapi #P2=examples/scopes #P3=LocalScope #P3=LocalMatrixCalc #P1=test #P2=rtlib #P3=CMPBuffer #P1=common #P2=ejip123/examples #P3=HelloWorldHereIPing #P1=bench #P2=jbe #P3=DoApp # The test program for Basio and the NAND Flash #P3=FlashBaseio #P1=app #P2=oebb #P3=Main #P2=wcet #P3=Loop WCET_METHOD=measure #P1=. #P2=dsvmmcp #P3=TestDSVMMCP # # some variables # TOOLS=java/tools # setting for my Eclipse CVS project # TOOLS=../../workspace/cvs_jop_tools EXT_CP=-classpath java/lib/bcel-5.1.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar\;java/lib/lpsolve55j.jar\;java/lib/log4j-1.2.15.jar # The line below makes the compilation crash, because it causes JOPizer to include a *lot* # of classes which are actually not necessary. #EXT_CP=-classpath java/jopeclipse/com.jopdesign.jopeclipse/lib/bcel-5.2.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar\;java/lib/lpsolve55j.jar #EXT_CP=-classpath java/lib/recompiled_bcel-5.2.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar\;java/lib/lpsolve55j.jar #TOOLS_JFLAGS=-d $(TOOLS)/dist/classes $(EXT_CP) -sourcepath $(TOOLS)/src\;$(TARGET)/src/common TOOLS_JFLAGS=-g -d $(TOOLS)/dist/classes $(EXT_CP) -sourcepath $(TOOLS)/src\;$(TARGET)/src/common PCTOOLS=java/pc PCTOOLS_JFLAGS=-g -d $(PCTOOLS)/dist/classes -sourcepath $(PCTOOLS)/src TARGET=java/target # changed to add another class to the tool chain #TOOLS_CP=$(EXT_CP)\;$(TOOLS)/dist/lib/jop-tools.jar TOOLS_CP=$(EXT_CP)\;$(TOOLS)/dist/lib/jop-tools.jar\;$(TOOLS)/dist/lib/JopDebugger.jar TARGET_SOURCE=$(TARGET)/src/common\;$(TARGET)/src/jdk_base\;$(TARGET)/src/jdk11\;$(TARGET)/src/rtapi\;$(TARGET_APP_SOURCE_PATH) TARGET_JFLAGS=-d $(TARGET)/dist/classes -sourcepath $(TARGET_SOURCE) -bootclasspath "" -extdirs "" -classpath "" -source 1.5 GCC_PARAMS="" # uncomment this if you want floating point operations in hardware # ATTN: be sure to choose 'cycfpu' as QPROJ else no FPU will be available #GCC_PARAMS="-DFPU_ATTACHED" # # Add your application source pathes and class that contains the # main method here. We are using those simple P1/2/3 variables for # P1=directory, P2=package name, and P3=main class # for sources 'inside' the JOP source tree # # TARGET_APP_PATH is the path to your application source # # MAIN_CLASS is the class that contains the Main method with package names # TARGET_APP_PATH=$(TARGET)/src/$(P1) MAIN_CLASS=$(P2)/$(P3) # here an example how to define an application outside # from the jop directory tree #TARGET_APP_PATH=/usr2/muvium/jopaptalone/src #MAIN_CLASS=com/muvium/eclipse/PeriodicTimer/JOPBootstrapLauncher # add more directoies here when needed # (and use \; to escape the ';' when using a list!) TARGET_APP_SOURCE_PATH=$(TARGET_APP_PATH)\;$(TARGET)/src/bench TARGET_APP=$(TARGET_APP_PATH)/$(MAIN_CLASS).java # setting for rup DSVM on JopCMP #TARGET_APP_PATH=/usrx/DSVMFP/src # just any name that the .jop file gets. JOPBIN=$(P3).jop # # Debugger stuff # # Added flags for development with JDWP #DEBUG_PORT = 8000 DEBUG_PORT = 8001 DEBUG_PARAMETERS= -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=$(DEBUG_PORT) #DEBUG_PARAMETERS= #DEBUG_JOPIZER=$(DEBUG_PARAMETERS) DEBUG_JOPIZER= #DEBUG_JOPSIM=$(DEBUG_PARAMETERS) DEBUG_JOPSIM= # # application optimization with ProGuard: # proguard.sourceforge.net/ # uncomment following line to use it #OPTIMIZE=mv java/target/dist/lib/classes.zip java/target/dist/lib/in.zip; java -jar java/lib/proguard.jar @@optimize.pro # # application optimization with JOPtimizer # uncomment the following lines to use it # #OPTIMIZE=java $(EXT_CP)\;$(TOOLS)/dist/lib/joptimizer.jar joptimizer.JOPtimizerRunner \ # -config jar:file:$(TOOLS)/dist/lib/joptimizer.jar!/jop.conf $(MAIN_CLASS) && \ # cd $(TARGET)/dist/classes && jar cf ../lib/classes.zip * # build everything from scratch all: make directories make tools ifeq ($(USB),true) make jopusb else make jopser endif make japp # build the Java application and download it japp: make java_app ifeq ($(USB),true) make config_usb else make config_byteblaster endif make download # shortcut for my work in Eclipse on TCP/IP eapp: ecl_app config_byteblaster download install: @@echo nothing to install clean: @@echo "that's specific for my configuration ;-)" cd modelsim && ./clean.bat @@echo classes d:/bin/del_class.bat cd quartus && d:/bin/qu_del.bat # # build all the (Java) tools # tools: -rm -rf $(TOOLS)/dist mkdir $(TOOLS)/dist mkdir $(TOOLS)/dist/lib mkdir $(TOOLS)/dist/classes javac $(TOOLS_JFLAGS) $(TOOLS)/src/*.java javac $(TOOLS_JFLAGS) $(TOOLS)/src/com/jopdesign/build/*.java javac $(TOOLS_JFLAGS) $(TOOLS)/src/com/jopdesign/tools/*.java javac $(TOOLS_JFLAGS) $(TOOLS)/src/com/jopdesign/wcet/*.java # Build libgraph and joptimizer #make joptimizer -e TOOLS_JFLAGS="$(TOOLS_JFLAGS)" TOOLS="$(TOOLS)" # quick hack to get the tools with the debugger ok # the build.xml from the debugger contains the correct info # but also some more (old?) stuff # does not work as some Sun classes for JDWP are missing # javac $(TOOLS_JFLAGS) $(TOOLS)/src/com/jopdesign/debug/jdwp/*.java cd $(TOOLS)/dist/classes && jar cf ../lib/jop-tools.jar * # # Build joptimizer and libgraph # JAR must contain the filename of the jar tool of the JDK. # ifneq ($(JAVA_HOME),) JAR="$(JAVA_HOME)/bin/jar" else JAR=jar endif joptimizer: make compile_java -e JAVAC_FLAGS="$(TOOLS_JFLAGS)" JAVA_DIR=$(TOOLS)/src/com/jopdesign/libgraph make compile_java -e JAVAC_FLAGS="$(TOOLS_JFLAGS)" JAVA_DIR=$(TOOLS)/src/joptimizer #cd $(TOOLS)/dist/classes && jar cfm ../lib/joptimizer.jar ../../src/joptimizer/MANIFEST.MF \ cd $(TOOLS)/dist/classes && $(JAR) cf ../lib/joptimizer.jar \ joptimizer com/jopdesign/libgraph \ -C ../../src/joptimizer log4j.properties \ -C ../../src/joptimizer jop.conf cd $(TOOLS)/dist/classes && $(JAR) uf ../lib/joptimizer.jar \ -C ../../src joptimizer/config/jop-arch.properties \ -C ../../src joptimizer/config/jvm-arch.properties # # A helper target to compile all java files in a directory and all subdirs # Dont know how to 'find' on windows, so going the long way.. # ifneq ($(JAVA_DIR),) jdirs := $(subst :,,$(shell ls -R $(JAVA_DIR) | grep ":")) jfiles := $(foreach dir,$(jdirs),$(wildcard $(dir)/*.java)) endif compile_java: @@echo "Compiling files in $(JAVA_DIR) .." @@javac $(JAVAC_FLAGS) $(jfiles) # we moved the pc stuff to it's own target to be # NOT built on make all. # It depends on javax.comm which is NOT installed # by default - Blame SUN on this! # # TODO: change it to RXTXcomm if it's working ok # pc: -rm -rf $(PCTOOLS)/dist mkdir $(PCTOOLS)/dist mkdir $(PCTOOLS)/dist/lib mkdir $(PCTOOLS)/dist/classes # make compile_java -e JAVA_DIR=$(PCTOOLS)/src javac $(PCTOOLS_JFLAGS) $(PCTOOLS)/src/udp/*.java cd $(PCTOOLS)/dist/classes && jar cf ../lib/jop-pc.jar * # # compile and JOPize the application # java_app: -rm -rf $(TARGET)/dist -mkdir $(TARGET)/dist -mkdir $(TARGET)/dist/classes -mkdir $(TARGET)/dist/lib -mkdir $(TARGET)/dist/bin javac $(TARGET_JFLAGS) $(TARGET)/src/common/com/jopdesign/sys/*.java javac $(TARGET_JFLAGS) $(TARGET_APP) cd $(TARGET)/dist/classes && jar cf ../lib/classes.zip * $(OPTIMIZE) # use SymbolManager for Paulo's version of JOPizer instead java $(DEBUG_JOPIZER) $(TOOLS_CP) -Dmgci=false com.jopdesign.build.JOPizer \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/dist/bin/$(JOPBIN) $(MAIN_CLASS) # java $(DEBUG_JOPIZER) $(TOOLS_CP) -Dmgci=false com.jopdesign.debug.jdwp.jop.JopSymbolManager \ # -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/dist/bin/$(JOPBIN) $(MAIN_CLASS) java $(TOOLS_CP) com.jopdesign.tools.jop2dat $(TARGET)/dist/bin/$(JOPBIN) cp *.dat modelsim rm -f *.dat # # do it from my eclipse workspace # ecl_app: cd ../../workspace/cvs_jop_target/classes && jar cf ../../../cpu/jop/java/target/dist/lib/classes.zip * java $(TOOLS_CP) -Dmgci=false com.jopdesign.build.JOPizer \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/dist/bin/$(JOPBIN) $(MAIN_CLASS) java $(TOOLS_CP) com.jopdesign.tools.jop2dat $(TARGET)/dist/bin/$(JOPBIN) cp *.dat modelsim rm -f *.dat # # test AppInfo # MS: some temporary targets for AppInfo and libgraph tests # appinfo: tools java $(DEBUG_JOPIZER) $(TOOLS_CP) com.jopdesign.build.AppInfo \ -cp $(TARGET)/dist/lib/classes.zip $(MAIN_CLASS) testapp: tools make java_app -mkdir $(TARGET)/xxx java $(DEBUG_JOPIZER) $(TOOLS_CP) com.jopdesign.build.WcetPreprocess \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/xxx $(MAIN_CLASS) java $(DEBUG_JOPIZER) $(TOOLS_CP) -Dmgci=false com.jopdesign.build.JOPizer \ -cp $(TARGET)/xxx -o $(TARGET)/dist/bin/$(JOPBIN) $(MAIN_CLASS) ifeq ($(USB),true) make config_usb else make config_byteblaster endif make download testlib: make joptimizer -e TOOLS_JFLAGS="$(TOOLS_JFLAGS)" TOOLS="$(TOOLS)" java $(EXT_CP)\;$(TOOLS)/dist/lib/joptimizer.jar joptimizer.TestLib \ -cp $(TARGET)/dist/lib/classes.zip $(MAIN_CLASS) # # project.sof fiels are used to boot from the serial line # jopser: cd asm && export GCC_PARAMS=$(GCC_PARAMS) && ./jopser.bat @@echo $(QPROJ) for target in $(QPROJ); do \ make qsyn -e QBT=$$target; \ cd quartus/$$target; \ cd ../..; \ done # # project.rbf fiels are used to boot from the USB interface # jopusb: cd asm && export GCC_PARAMS=$(GCC_PARAMS) && ./jopusb.bat @@echo $(QPROJ) for target in $(QPROJ); do \ make qsyn -e QBT=$$target; \ cd quartus/$$target; \ quartus_cpf -c jop.sof ../../rbf/$$target.rbf; \ cd ../..; \ done # # project.ttf files are used to boot from flash. # jopflash: cd asm && ./jopflash.bat @@echo $(QPROJ) for target in $(QPROJ); do \ make qsyn -e QBT=$$target; \ quartus_cpf -c quartus/$$target/jop.sof ttf/$$target.ttf; \ done # # Quartus build process # called by jopser, jopusb,... # qsyn: echo $(QBT) echo "building $(QBT)" -rm -rf quartus/$(QBT)/db -rm -f quartus/$(QBT)/jop.sof -rm -f jbc/$(QBT).jbc -rm -f rbf/$(QBT).rbf quartus_map quartus/$(QBT)/jop quartus_fit quartus/$(QBT)/jop quartus_asm quartus/$(QBT)/jop quartus_tan quartus/$(QBT)/jop # # Modelsim target # without the tools # sim: java_app cd asm && ./jopsim.bat cd modelsim && ./sim.bat # for simulation of CMP # cd modelsim && ./sim_cmp.bat # # JopSim target # without the tools # jsim: java_app java $(DEBUG_JOPSIM) -cp java/tools/dist/lib/jop-tools.jar -Dlog="false" \ com.jopdesign.tools.JopSim java/target/dist/bin/$(JOPBIN) # # JopServer target # without the tools # jsim_server: java_app java $(DEBUG_JOPSIM) \ -cp java/tools/dist/lib/jop-tools.jar\;$(TOOLS)/dist/lib/JopDebugger.jar -Dlog="false" \ com.jopdesign.debug.jdwp.jop.JopServer java/target/dist/bin/$(JOPBIN) config_byteblaster: cd quartus/$(DLPROJ) && quartus_pgm -c $(BLASTER_TYPE) -m JTAG jop.cdf config_usb: cd rbf && ../$(USBRUNNER) $(DLPROJ).rbf download: # java -cp java/tools/dist/lib/jop-tools.jar\;java/lib/RXTXcomm.jar com.jopdesign.tools.JavaDown \ # $(COM_FLAG) java/target/dist/bin/$(JOPBIN) $(COM_PORT) # # this is the download version with down.exe down $(COM_FLAG) java/target/dist/bin/$(JOPBIN) $(COM_PORT) # # flash programming # prog_flash: java_app quartus_pgm -c ByteblasterMV -m JTAG -o p\;jbc/$(DLPROJ).jbc down java/target/dist/bin/$(JOPBBIN) $(COM_PORT) java -cp java/pc/dist/lib/jop-pc.jar udp.Flash java/target/dist/bin/$(JOPBIN) $(IPDEST) java -cp java/pc/dist/lib/jop-pc.jar udp.Flash ttf/$(FLPROJ).ttf $(IPDEST) quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;quartus/cycconf/cyc_conf.pof # # flash programming for the BG hardware as an example # #prog_flash: # quartus_pgm -c ByteblasterMV -m JTAG -o p\;jbc/$(DLPROG).jbc # cd java/target && ./build.bat app oebb BgInit # down java/target/dist/bin/oebb_BgInit.jop $(COM_PORT) # cd java/target && ./build.bat app oebb Main # java -cp java/pc/dist/lib/jop-pc.jar udp.Flash java/target/dist/bin/oebb_Main.jop 192.168.1.2 # java -cp java/pc/dist/lib/jop-pc.jar udp.Flash ttf/$(FLPROJ).ttf 192.168.1.2 # quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;quartus/cycconf/cyc_conf.pof erase_flash: java -cp java/pc/dist/lib/jop-pc.jar udp.Erase $(IPDEST) pld_init: quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;quartus/cycconf/cyc_conf_init.pof pld_conf: quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;quartus/cycconf/cyc_conf.pof oebb: java -cp java/pc/dist/lib/jop-pc.jar udp.Flash java/target/dist/bin/oebb_Main.jop 192.168.1.2 # do the whole build process including flash programming # for BG and baseio (TAL) bg: directories tools jopflash jopser prog_flash # # some directories for configuration files # directories: jbc ttf rbf jbc: mkdir jbc ttf: mkdir ttf rbf: mkdir rbf # # this line configures the FPGA and programs the PLD # but uses a .jbc file # # However, the order is not so perfect. We would prefere to first # program the PLD. # xxx: quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;jbc/cycbg.jbc quartus_pgm -c $(BLASTER_TYPE) -m JTAG -o p\;jbc/cyc_conf.jbc # # JOP porting test programs # # TODO: combine all quartus stuff to a single target # jop_blink_test: cd asm && ./build.bat blink @@echo $(QPROJ) for target in $(QPROJ); do \ echo "building $$target"; \ rm -rf quartus/$$target/db; \ qp="quartus/$$target/jop"; \ echo $$qp; \ quartus_map $$qp; \ quartus_fit $$qp; \ quartus_asm $$qp; \ quartus_tan $$qp; \ cd quartus/$$target && quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ done cd quartus/$(DLPROJ) && quartus_pgm -c $(BLASTER_TYPE) -m JTAG jop.cdf e $(COM_PORT) jop_testmon: cd asm && ./build.bat testmon @@echo $(QPROJ) for target in $(QPROJ); do \ echo "building $$target"; \ rm -rf quartus/$$target/db; \ qp="quartus/$$target/jop"; \ echo $$qp; \ quartus_map $$qp; \ quartus_fit $$qp; \ quartus_asm $$qp; \ quartus_tan $$qp; \ cd quartus/$$target && quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ done cd quartus/$(DLPROJ) && quartus_pgm -c $(BLASTER_TYPE) -m JTAG jop.cdf # # UDP debugging # udp_dbg: java -cp java/pc/dist/lib/jop-pc.jar udp.UDPDbg # # Rasmus's WCET analyser (start) # use # -Dlatex=true # to getv LaTeX friendly table output. # # WCETAnalyser options # latex: it will output latex formatting in the tables (afterwards # replace ">" with "$>$ and "_" with "\_") # dot: it will generate directed graphs of basic blocks in dot format # (see: http://www.graphviz.org/) # jline: it will insert Java source code into the bytecode tables wcet: -rm -rf $(TARGET)/wcet -mkdir $(TARGET)/wcet -mkdir $(TARGET)/tmp java $(DEBUG_JOPIZER) $(TOOLS_CP) com.jopdesign.build.WcetPreprocess \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/tmp $(MAIN_CLASS) java $(TOOLS_CP) -Dlatex=true -Ddot=true -Djline=true -Dls=true com.jopdesign.wcet.WCETAnalyser \ -mm $(WCET_METHOD) \ -cp $(TARGET)/tmp -o $(TARGET)/wcet/$(P3)wcet.txt -sp $(TARGET_SOURCE) $(MAIN_CLASS) -rm -rf $(TARGET)/tmp dot2eps: cd $(TARGET)/wcet && make test: java $(TOOLS_CP) com.jopdesign.wcet.CallGraph \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/wcet/$(P3)call.txt -sp $(TARGET_SOURCE) $(MAIN_CLASS) @ 1.82 log @use Java 1.5 source option @ text @d73 14 d110 2 d204 1 d345 27 d593 4 a596 1 java $(TOOLS_CP) -Dlatex=false -Ddot=true -Djline=true -Dls=true com.jopdesign.wcet.WCETAnalyser \ d598 2 a599 1 -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/wcet/$(P3)wcet.txt -sp $(TARGET_SOURCE) $(MAIN_CLASS) @ 1.81 log @fixed build target to work with jar from jdk. @ text @d117 1 a117 1 TARGET_JFLAGS=-d $(TARGET)/dist/classes -sourcepath $(TARGET_SOURCE) -bootclasspath "" -extdirs "" -classpath "" -source 1.4 @ 1.80 log @add pc target @ text @d245 1 d247 6 d257 1 a257 1 cd $(TOOLS)/dist/classes && jar cf ../lib/joptimizer.jar \ d260 2 a261 1 -C ../../src/joptimizer jop.conf \ @ 1.79 log @fixed joptimizer missing configfiles @ text @a69 1 d73 4 d80 4 d88 4 d106 4 d145 1 a145 1 TARGET_APP_SOURCE_PATH=$(TARGET_APP_PATH) d148 4 d270 16 a318 10 # we moved the pc stuff to it's own target to be # NOT built on make all. # It depends on javax.comm which is NOT installed # by default - Blame SUN on this! # # TODO: change it to RXTXcomm if it's working ok # pc: cd java/pc && ./build.bat @ 1.78 log @A single switch for USB configuration + some cleanup @ text @d234 3 a236 1 -C ../../src/joptimizer jop.conf @ 1.77 log @Fixing problems with invoking USBRunner. @ text @d24 4 a27 8 # Added flags for development with JDWP #DEBUG_PORT = 8000 DEBUG_PORT = 8001 DEBUG_PARAMETERS= -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=$(DEBUG_PORT) #DEBUG_PARAMETERS= #DEBUG_JOPIZER=$(DEBUG_PARAMETERS) DEBUG_JOPIZER= a28 2 #DEBUG_JOPSIM=$(DEBUG_PARAMETERS) DEBUG_JOPSIM= d32 1 a32 1 # com6 is the FTDI VCOM for the USB download d36 7 a42 4 COM_PORT=COM1 COM_FLAG=-e #COM_PORT=COM6 #COM_FLAG=-e -usb d54 1 a54 1 QPROJ=cycmin cycbaseio cycbg dspio lego cycfpu cyc256x16 sopcmin cyccmp d56 5 a60 7 QPROJ=cycmin # Nelson uncomment this #QPROJ=cyc12baseio # Jens & Mikael uncomment this #QPROJ=mikjen d65 1 a65 1 FLPROJ=$(DLProj) a78 5 #P2=wcet #P3=StartLineFollower #P3=StartKfl WCET_METHOD=main a80 19 #P1=common #P2=ejip/jtcpip/test #P3=HTTPServer #P2=ejip/examples #P3=Telnet #P2=jdk #P3=DoAll # Jens & Mikael uncomment this #P1=app #P2=dsp #P3=SigDel # Nelson uncomment this #P1=common #P2=ejip #P3=Main a123 14 # Rasmus's distributed SVM (see www.dsvm.org) #TARGET_APP_PATH=/usrx/jop_rasmus/dsvm_hw/DSVMFP/src #MAIN_CLASS=dsvmfp/TestSMO #MAIN_CLASS=test/TestSMO # and the version for Rasmus's machine ;-) #P1=src #P2=dsvmfp #P3=TestSMO #TARGET_APP_PATH=C:/eclipse/workspace/DSVMFP/src #MAIN_CLASS=dsvmfp/TestSMO # Jame's APT system (see www.muvium.com) a127 1 d137 15 a151 2 # for WCET testing TARGET_APP_SOURCE_PATH=$(TARGET_APP_PATH)\;$(TARGET)/src/app\;$(TARGET)/src/bench d169 10 a178 10 # use this for serial download all: directories tools jopser japp japp: java_app config_byteblast download # use this for USB download of FPGA configuration # and Java program download #all: directories tools jopusb japp # #japp: java_app config_usb download d180 9 d191 1 a191 1 eapp: ecl_app config_byteblast download a223 4 # old version with batch file # cd java/tools && ./build.bat d253 1 a253 1 # -rm -rf $(TARGET)/dist d293 1 a293 1 # project.jbc fiels are used to boot from the serial line a300 2 quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ quartus_cpf -c jop.sof ../../rbf/$$target.rbf; \ d306 1 a306 1 # project.jbc fiels are used to boot from the USB interface a313 1 quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ d375 1 a375 1 config_byteblast: @ 1.76 log @added joptimizer targets @ text @d50 6 d408 1 a408 1 cd rbf && ../USBRunner $(DLPROJ).rbf d427 1 a427 1 d439 1 a439 1 @ 1.75 log @Simulation of CMP @ text @d108 1 a108 1 EXT_CP=-classpath java/lib/bcel-5.1.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar\;java/lib/lpsolve55j.jar d133 1 a133 8 # application optimization with ProGuard: # proguard.sourceforge.net/ # uncomment following line to use it #OPTIMIZE=mv java/target/dist/lib/classes.zip java/target/dist/lib/in.zip; java -jar java/lib/proguard.jar @@optimize.pro # # Add your application source pathes and class that contains the d178 16 d231 2 d245 25 @ 1.74 log @cyccmp added @ text @d340 2 @ 1.73 log @eapp target after USB target @ text @d51 1 a51 1 QPROJ=cycmin cycbaseio cycbg dspio lego cycfpu cyc256x16 sopcmin @ 1.72 log @don't delete output folder @ text @a189 3 # shortcut for my work in Eclipse on TCP/IP eapp: ecl_app config_byteblast download d197 3 @ 1.71 log @debugger @ text @d237 5 a241 5 -rm -rf $(TARGET)/dist mkdir $(TARGET)/dist mkdir $(TARGET)/dist/classes mkdir $(TARGET)/dist/lib mkdir $(TARGET)/dist/bin @ 1.70 log @add changes for debugger + Makefile corrections @ text @d222 5 d246 1 a246 1 # use SymbolManager for Paulos version of JOPizer instead @ 1.69 log @no message @ text @d24 11 d42 1 a42 1 COM_PORT=COM2 d47 2 a48 2 #BLASTER_TYPE=ByteBlasterMV BLASTER_TYPE=USB-Blaster d72 1 a72 1 P3=DoAll d85 5 a89 5 P1=common P2=ejip/jtcpip/test P3=HTTPServer P2=ejip/examples P3=Telnet d109 8 a116 1 TOOLS_JFLAGS=-d $(TOOLS)/dist/classes $(EXT_CP) -sourcepath $(TOOLS)/src\;$(TARGET)/src/common d119 5 a123 1 TOOLS_CP=$(EXT_CP)\;$(TOOLS)/dist/lib/jop-tools.jar d190 1 a192 1 d196 1 a196 1 d241 2 a242 1 java $(TOOLS_CP) -Dmgci=false com.jopdesign.build.JOPizer \ d244 2 d341 1 a341 1 java -cp java/tools/dist/lib/jop-tools.jar -Dlog="false" \ d344 11 @ 1.68 log @Added basic support for Actel's ProASIC3 FPGAs. @ text @d42 1 a42 1 QPROJ=altde2sram d74 6 d168 2 d225 11 @ 1.67 log @add FPU support @ text @d31 1 a31 1 COM_PORT=COM1 d36 2 a37 2 BLASTER_TYPE=ByteBlasterMV #BLASTER_TYPE=USB-Blaster d42 1 a42 1 QPROJ=cycmin d61 1 a61 1 P3=HelloWorld d166 1 a166 1 # @ 1.66 log @add FlashBaseio target in comment @ text @d98 1 d100 3 d231 1 a231 1 cd asm && ./jopser.bat d246 1 a246 1 cd asm && ./jopusb.bat @ 1.65 log @create directory rbf @ text @d62 2 @ 1.64 log @use -f on rm @ text @d349 1 a349 1 directories: jbc ttf d357 3 @ 1.63 log @removed handle flag in JOPSim (no non-handle version anymore) @ text @d178 1 a178 1 -rm -r $(TOOLS)/dist d196 1 a196 1 -rm -r $(TARGET)/dist d209 1 a209 1 rm *.dat d269 4 a272 4 -rm -r quartus/$(QBT)/db -rm quartus/$(QBT)/jop.sof -rm jbc/$(QBT).jbc -rm rbf/$(QBT).rbf d379 1 a379 1 rm -r quartus/$$target/db; \ d397 1 a397 1 rm -r quartus/$$target/db; \ d428 1 a428 1 -rm -r $(TARGET)/wcet @ 1.62 log @change for new USBRunner @ text @d291 1 a291 1 java -cp java/tools/dist/lib/jop-tools.jar -Dlog="false" -Dhandle="true" \ @ 1.61 log @new directories for the JDK @ text @d298 1 a298 1 cd rbf && ../USBRunner $(DLPROJ).cdf @ 1.60 log @remove cd ../.. from jopflash @ text @d94 1 a94 1 TARGET_SOURCE=$(TARGET)/src/common\;$(TARGET)/src/jdk\;$(TARGET)/src/rtapi\;$(TARGET_APP_SOURCE_PATH) @ 1.59 log @add ProGuard optimization (commented) @ text @a258 1 cd ../..; \ @ 1.58 log @no message @ text @d99 7 d204 1 @ 1.57 log @no message @ text @d42 1 a42 1 QPROJ=dspio @ 1.56 log @*** empty log message *** @ text @d33 2 a34 2 COM_PORT=COM6 COM_FLAG=-e -usb d63 2 a64 2 P2=wcet P3=Loop d145 3 a147 3 #all: directories tools jopser japp # #japp: java_app config_byteblast download d152 3 a154 3 all: directories tools jopusb japp japp: java_app config_usb download @ 1.55 log @added BLASTER_TYPE @ text @d33 2 a34 2 #COM_PORT=COM6 #COM_FLAG=-e -usb d42 1 a42 1 QPROJ=cycmin d63 3 d72 1 a72 1 #P2=jvm d95 1 a95 1 TARGET_JFLAGS=-d $(TARGET)/dist/classes -sourcepath $(TARGET_SOURCE) d145 3 a147 3 all: directories tools jopser japp japp: java_app config_byteblast download d152 3 a154 3 #all: directories tools jopusb japp # #japp: java_app config_usb download @ 1.54 log @add sopcmin target @ text @d36 3 d285 1 a285 1 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf d306 1 a306 1 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;quartus/cycconf/cyc_conf.pof d318 1 a318 1 # quartus_pgm -c ByteBlasterMV -m JTAG -o p\;quartus/cycconf/cyc_conf.pof d324 1 a324 1 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;quartus/cycconf/cyc_conf_init.pof d327 1 a327 1 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;quartus/cycconf/cyc_conf.pof d355 2 a356 2 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;jbc/cycbg.jbc quartus_pgm -c ByteBlasterMV -m JTAG -o p\;jbc/cyc_conf.jbc d378 1 a378 1 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf d396 1 a396 1 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf @ 1.53 log @undo JTRES 2006 submission @ text @d37 1 a37 1 QPROJ=cycmin cycbaseio cycbg dspio lego cycfpu @ 1.52 log @main for JTRES 2006 submission @ text @d60 1 a60 1 P2=wcet d62 1 a62 1 P3=StartKfl @ 1.51 log @some info for WCET testing @ text @d60 1 a60 1 #P2=wcet d62 1 a62 1 #P3=StartBenchUdpIp @ 1.50 log @parameter for WCETA @ text @d61 2 a62 1 #P3=SimpleMethod2 d64 1 a64 1 #WCET_METHOD=measure d135 2 @ 1.49 log @no message @ text @d60 5 d415 1 @ 1.48 log @HelloWorld is the default target @ text @a406 1 -rm $(TARGET)/wcet/*.txt d413 1 a413 1 cd $(TARGET)/wcet && make dot @ 1.47 log @added dot2eps target for the wcet tool @ text @d58 1 a58 1 P3=Hello @ 1.46 log @lp_solve for the WCET analyser @ text @d412 7 a418 1 cd $(TARGET)/wcet && ./dotall.bat @ 1.45 log @Erase target and wcet updated (rup) @ text @d77 1 a77 1 EXT_CP=-classpath java/lib/bcel-5.1.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar d410 1 a410 1 java $(TOOLS_CP) -Dlatex=false -Ddot=true -Djline=true com.jopdesign.wcet.WCETAnalyser \ d412 1 @ 1.44 log @project for cyc12baseio in comment @ text @d309 2 d400 6 d410 2 a411 2 java $(TOOLS_CP) com.jopdesign.wcet.WCETAnalyser \ -cp $(TARGET)/dist/lib/classes.zip -o $(TARGET)/wcet/$(P3)wcet.txt $(MAIN_CLASS) @ 1.43 log @comment for wcet target @ text @d41 3 d68 5 @ 1.42 log @wcet target (rup) @ text @d384 6 a389 2 d394 1 a394 1 java $(TOOLS_CP) -Dmgci=true com.jopdesign.wcet.WCETAnalyser \ @ 1.41 log @Audio IO for Mikael and Jens master project @ text @d156 1 d383 9 @ 1.40 log @back to standard cycmin and Hello World @ text @d41 3 d60 5 @ 1.39 log @wises06 submission verion @ text @d39 1 a39 1 QPROJ=rasmus d87 2 a88 2 TARGET_APP_PATH=/usrx/jop_rasmus/dsvm_hw/DSVMFP/src MAIN_CLASS=dsvmfp/TestSMO @ 1.38 log @add Rasmus's application path @ text @d39 1 a39 1 QPROJ=cycmin d87 2 a88 1 #TARGET_APP_PATH=/usrx/jop_rasmus/dsvm/DSVMFP/src d263 3 a265 3 java -cp java/tools/dist/lib/jop-tools.jar\;java/lib/RXTXcomm.jar com.jopdesign.tools.JavaDown \ $(COM_FLAG) java/target/dist/bin/$(JOPBIN) $(COM_PORT) d267 1 a267 1 # down $(COM_FLAG) java/target/dist/bin/$(JOPBIN) $(COM_PORT) @ 1.37 log @add rtapi to source path @ text @d86 1 d89 8 d102 1 @ 1.36 log @split fpga config and Java download @ text @d66 1 a66 1 TARGET_SOURCE=$(TARGET)/src/common\;$(TARGET)/src/jdk\;$(TARGET_APP_SOURCE_PATH) @ 1.35 log @commented path to James ATP sources @ text @d106 1 a106 1 japp: java_app download d113 1 a113 1 #japp: java_app download_usb d245 5 a251 1 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf a257 4 download_usb: cd rbf && ../USBRunner $(DLPROJ).cdf java -cp java/tools/dist/lib/jop-tools.jar\;java/lib/RXTXcomm.jar com.jopdesign.tools.JavaDown \ $(COM_FLAG) java/target/dist/bin/$(JOPBIN) $(COM_PORT) @ 1.34 log @target build without the batch file @ text @d85 1 d88 3 a160 1 @ 1.33 log @tool build without the batch file @ text @d11 10 d57 6 a62 2 #P2=wishbone #P3=Simple d64 4 a67 3 #P1=bench #P2=jbe #P3=DoAll a68 19 #P2=testrt #P3=PeriodicFull #P1=app #P2=oebb #P3=Main #P3=Usb # for baseio (Rasmus) #P1=app #P2=tal #P3=Tal #P1=app #P2=dsp #P3=AC97 #P3=SigDel #P1=app #P2=lego #P3=LineFollower d71 8 a78 1 # some variables d80 18 a97 4 TOOLS=java/tools TARGET=java/target EXT_LIB=-classpath java/lib/bcel-5.1.jar\;java/lib/jakarta-regexp-1.3.jar\;java/lib/RXTXcomm.jar TOOLS_JFLAGS=-d $(TOOLS)/dist/classes $(EXT_LIB) -sourcepath $(TOOLS)/src\;$(TARGET)/src/common d122 3 a124 1 d138 20 d163 2 d240 1 a240 1 com.jopdesign.tools.JopSim java/target/dist/bin/$(P2)_$(P3).jop a242 3 java_app: cd java/target && ./build.bat $(P1) $(P2) $(P3) d246 1 a246 1 $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) d249 1 a249 1 # down $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) d254 1 a254 1 $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) d261 2 a262 2 down java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) java -cp java/pc/dist/lib/jop-pc.jar udp.Flash java/target/dist/bin/$(P2)_$(P3).jop $(IPDEST) @ 1.32 log @undo LCTES (root sanning) changes @ text @d75 1 a75 13 # make targets for the two RT GC examples # #gc_paper: directories tools jopser examples # #examples: # cd java/target && ./build.bat test gctest PaperEx1 # cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf # down $(COM_FLAG) java/target/dist/bin/gctest_PaperEx1.jop $(COM_PORT) # cd java/target && ./build.bat test gctest PaperEx2 # cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf # down $(COM_FLAG) java/target/dist/bin/gctest_PaperEx2.jop $(COM_PORT) # # end make target for RT GC paper d77 4 d107 11 a117 1 cd java/tools && ./build.bat d119 1 a119 1 # we moved the pc stuff to it's own target to bo @ 1.31 log @LCTES paper @ text @a43 3 P2=gctest P3=GCTest10 @ 1.30 log @use JavaDown instead of down.exe for .jop download @ text @d44 3 @ 1.29 log @Added cycfpu target for FPU testing @ text @d21 1 a21 1 COM_PORT=com1 d23 1 a23 1 #COM_PORT=com6 d99 1 a99 1 d205 5 a209 1 down $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) d213 2 a214 1 down $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) @ 1.28 log @UDP debugging target @ text @d27 1 a27 1 QPROJ=cycmin cycbaseio cycbg dspio lego @ 1.27 log @removed unused projects @ text @d310 5 a314 1 @ 1.26 log @remove output files before synthesis to avoid downloading an old version @ text @d27 1 a27 1 QPROJ=cycmin cyc12min cycbaseio cycbg dspio lego a94 1 # TODO: add USB device to SimpCon! @ 1.25 log @no rbf directory generation - it contains config files for the USBRunner @ text @d27 1 a27 1 QPROJ=cycmin cyc12min cycbaseio cycbg dspio d70 4 d176 3 @ 1.24 log @removed RT GC paper target @ text @d244 1 a244 1 directories: jbc ttf rbf a251 3 rbf: mkdir rbf @ 1.23 log @USBRunner added, special main target for RT GC paper @ text @d73 9 a81 9 gc_paper: directories tools jopser examples examples: cd java/target && ./build.bat test gctest PaperEx1 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf down $(COM_FLAG) java/target/dist/bin/gctest_PaperEx1.jop $(COM_PORT) cd java/target && ./build.bat test gctest PaperEx2 cd quartus/$(DLPROJ) && quartus_pgm -c ByteBlasterMV -m JTAG jop.cdf down $(COM_FLAG) java/target/dist/bin/gctest_PaperEx2.jop $(COM_PORT) @ 1.22 log @added rm Quartus db in test targets @ text @d17 1 a17 1 # com14 is the FTDI VCOM for the USB download d23 1 a23 1 #COM_PORT=com18 d70 15 d89 6 a94 1 # we use USB download now as default d97 2 a98 1 japp: java_app download d129 4 a132 9 echo "building $$target"; \ rm -r quartus/$$target/db; \ qp="quartus/$$target/jop"; \ echo $$qp; \ quartus_map $$qp; \ quartus_fit $$qp; \ quartus_asm $$qp; \ quartus_tan $$qp; \ cd quartus/$$target && quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ d136 1 d144 4 a147 9 echo "building $$target"; \ rm -r quartus/$$target/db; \ qp="quartus/$$target/jop"; \ echo $$qp; \ quartus_map $$qp; \ quartus_fit $$qp; \ quartus_asm $$qp; \ quartus_tan $$qp; \ cd quartus/$$target && quartus_cpf -c jop.cdf ../../jbc/$$target.jbc; \ d158 1 a158 8 echo "building $$target"; \ rm -r quartus/$$target/db; \ qp="quartus/$$target/jop"; \ echo $$qp; \ quartus_map $$qp; \ quartus_fit $$qp; \ quartus_asm $$qp; \ quartus_tan $$qp; \ a162 12 #qsyn: # @@echo $(QPROJ) # for target in $(QPROJ); do \ # echo "building $$target"; \ # rm -r quartus/$$target/db; \ # qp="quartus/$$target/jop"; \ # echo $$qp; \ # quartus_map $$qp; \ # quartus_fit $$qp; \ # quartus_asm $$qp; \ # quartus_tan $$qp; \ # done d164 12 d201 4 d244 1 a244 1 directories: jbc ttf d252 3 @ 1.21 log @added cd ../.. for build of all projects @ text @d265 1 d283 1 @ 1.20 log @Remove Quartus db folder to avoid a nasty Quartus bug @ text @d117 1 d136 1 d155 1 @ 1.19 log @added targets for blink.asm and testmon.asm @ text @d47 7 d109 1 d127 1 d145 1 d159 1 @ 1.18 log @Hello. java ist default project @ text @d240 40 @ 1.17 log @cycmin is default @ text @d42 1 a42 1 P3=Clock @ 1.16 log @no message @ text @d23 1 a23 1 #COM_PORT=com14 d46 1 a51 1 #P2=wishbone a52 3 #P1=app #P2=dsp #P3=AC97 d58 4 a61 13 # special section for Jinze Li begin #P1=test #P2=test #P3=Hello #QPROJ=cycmin #DLPROJ=cycmin #COM_PORT=com1 #COM_FLAG=-e # #jinze_li: directories tools jopser japp # # special section for Jinze Li end: @ 1.15 log @USB interface as additional download interface for JOP @ text @d17 1 a17 1 # com8 is the FTDI VCOM for the USB download d22 3 a24 2 COM_PORT=com8 COM_FLAG=-usb d29 1 a29 1 QPROJ=dspio6c d32 1 a32 1 DLPROJ=dspio6c d34 5 a38 1 #FLPROJ=cycbg a41 1 P3=Baseio d53 22 d77 1 a77 1 #all: directories tools jopser japp d80 1 a80 1 all: directories tools jopusb japp d97 7 d192 1 a192 1 down -e $(COM_FLAG) java/target/dist/bin/$(P2)_$(P3).jop $(COM_PORT) d195 10 d207 8 a214 8 prog_flash: quartus_pgm -c ByteblasterMV -m JTAG -o p\;jbc/$(FLPROJ).jbc cd java/target && ./build.bat app oebb BgInit down java/target/dist/bin/oebb_BgInit.jop COM1 cd java/target && ./build.bat app oebb Main java -cp java/pc/dist/lib/jop-pc.jar udp.Flash java/target/dist/bin/oebb_Main.jop 192.168.1.2 java -cp java/pc/dist/lib/jop-pc.jar udp.Flash ttf/$(FLPROJ).ttf 192.168.1.2 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;quartus/cycconf/cyc_conf.pof d226 2 a227 1 # do the whole build process for the BG @ 1.14 log @BG V 1.0 @ text @a12 2 # do the whole build process for the BG test: directories tools jopflash jopser prog_flash d14 41 a54 1 all: directories tools jopser japp a67 24 # 'some' different Quartus projects QPROJ=cycmin cyc12min cycbaseio cycbg # if you want to build only one Quartus project use e.q.: #QPROJ=cycmin #QPROJ=cycbaseio QPROJ=cycbg # Which project do you want to be downloaded? DLPROJ=cycbg #DLPROJ=cycmin # Which project do you want to be programmed into the flash? FLPROJ=cycbg P1=test P2=test P3=Baseio P2=jvm P3=DoAll #P2=testrt #P3=PeriodicFull P1=app P2=oebb P3=Main d91 17 d159 1 a159 1 down -e java/target/dist/bin/$(P2)_$(P3).jop COM1 d183 3 @ 1.13 log @log="false" in JopSim target @ text @d13 2 a14 2 # do the while process for the BG test: directories tools jopflash jopser prog_flash sim d39 1 d47 2 a48 2 #P2=jvm #P3=DoAll d146 6 @ 1.12 log @JopSim target @ text @d118 1 a118 1 java -cp java/tools/dist/lib/jop-tools.jar -Dlog="true" -Dhandle="true" \ @ 1.11 log @no message @ text @d46 2 a47 2 P2=jvm P3=DoAll d50 3 a52 3 #P1=app #P2=oebb #P3=Main d113 8 @ 1.10 log @simpler ModelSim, sim target in Makefile @ text @d46 2 a47 2 #P2=jvm #P3=DoAll d50 3 a52 3 P1=app P2=oebb P3=Main @ 1.9 log @BG V0.97, use cyc_conf.pof for the final PLD programming. @ text @d14 1 a14 1 test: directories tools jopflash jopser prog_flash d105 7 d134 3 @ 1.8 log @BG V0.97, generate directories for jbc and ttf @ text @d124 1 a124 1 quartus_pgm -c ByteBlasterMV -m JTAG -o p\;jbc/cyc_conf.jbc d148 1 @ 1.7 log @BG V0.97, generate directories for jbc and ttf @ text @a79 1 mkdir @ 1.6 log @BG V0.97, generate directories for jbc and ttf @ text @d14 1 a14 1 test: directories jopflash jopser prog_flash d16 1 a16 1 all: directories jopser japp @ 1.5 log @BG V0.97 @ text @d14 1 a14 1 test: tools jopflash jopser prog_flash d16 1 a16 1 all: tools jopser japp d80 1 d129 11 @ 1.4 log @compile 'all' Quartus projects @ text @a8 1 # build of .ttf files for boot from Flash d13 4 a16 1 all: tools jopser qsyn japp d35 1 d38 3 a40 1 DLPROJ=cycbaseio d50 3 a52 3 #P1=app #P2=oebb #P3=Main d56 1 d58 3 d63 11 d75 5 a79 1 qsyn: d89 1 d92 15 d114 23 @ 1.3 log @cycbaseio and test.Baseio is default project @ text @d32 1 a32 1 QPROJ=cycbaseio @ 1.2 log @temporary use oebb project as test case @ text @d32 1 a32 1 QPROJ=cycbg d35 1 a35 1 DLPROJ=cycbg d38 1 d41 1 a41 1 #P2=vmtest d43 5 a47 5 P2=testrt P3=PeriodicFull P1=app P2=oebb P3=Main @ 1.1 log @no message @ text @d29 1 a29 1 QPROJ=cycmin cyc12min cycbaseio d32 1 d35 1 a35 1 DLPROJ=cycbaseio d42 5 @