@echo offrem Batch to generate bitstreamremrem S3AN01_ChipScope_18x1024.bitrem S3AN01_ChipScope_9x2048.bitremrem Do not modify srouce files directory structureremrem Tested with Xilinx ISE WebPack 14.5 with ChipScope Licenseremrem ----- Check if ChipScope IP Cores are readyif not exist ..\COREGEN\ChipScope_ICON.vhd goto coregenif not exist ..\COREGEN\ChipScope_ILA_18_1024.vhd goto coregenif not exist ..\COREGEN\ChipScope_ILA_9_2048.vhd goto coregenif not exist ..\COREGEN\ChipScope_VIO_FreqSel.vhd goto coregenif not exist ..\COREGEN\ChipScope_VIO_UserOut.vhd goto coregengoto next:coregenrem ----- Regenerate ChipScope IP Coresecho.echo Missing ChipScope IP Core output filesecho Regenerating will take a long time (5 minutes on i5-3770)echo.pausecall make_CoreGen.cmd:nextrem ----- Clear target directoryrmdir /S /Q BIN 2> nulmkdir BINrem ----- Get Current date and timefor /F "Tokens=2-4 Delims=. " %%A in ("%DATE%") do (set CurDate=%%C_%%B_%%A)for /F "Tokens=1-2 Delims=:,. " %%D in ("%TIME: =0%") do (set CurTime=%%D_%%E)rem ----- Find and Set Xilinx Toolscall FindXilinxTools.cmdmkdir BIN\%XILINX_VERSION%rem ----- Create Version metafileecho TimeStamp: %CurDate%__%CurTime%> BIN\%XILINX_VERSION%\Versionecho ComputerName: %COMPUTERNAME%>> BIN\%XILINX_VERSION%\Versionecho ISE Version: %XILINX_VERSION%>> BIN\%XILINX_VERSION%\Versionecho ReleaseInfo: None>> BIN\%XILINX_VERSION%\Versionrem ----- Compile variants (paralel run)start "compile S3AN01_ChipScope_18x1024" make_S3AN01_ChipScope.cmd 18x1024start "compile S3AN01_ChipScope_9x2048" make_S3AN01_ChipScope.cmd 9x2048