/*
 * Intel Fitter Kit (MINC, ORCAD, LOGICAL)
 *
 * Project: Intel Fitter Kit (MINC, ORCAD, LOGICAL)
 * $Header: install.dat,v 1.1 93/10/22 06:51:54 iforni Exp $
 *
 * 
 */

@DefineProject
	@Name = "Intel Fitter Kit"
	@Version = "3.1"
    /*
    **  The following change to how @Subdir is set was done to allow
    **  the OrCAD installation to execute a batch file that sets ORCADESP,
    **  then calls INSTALL.EXE from the INTEL disk.  The new @Subdir
    **  will then get it's parameter from the environment variable
    **  which then gets the default fitter location appended to it.
    */
        @Subdir   = @GetENV "ORCADESP"
        @Subdir   = "@Subdir\\PLD\\FITTERS\\INTEL"
        @OutDrive = C
	@Requires @HardDisk
@EndProject


@DefineVars
	@Qstring @PreVers = "3.0.2" 
	@Qstring @Config = "PLDSHELL"
    /*
    **  The following two directory variable declarations were added to
    **  facilitate the use of the ORCADPROJ environment variable during
    **  the OrCAD installation of the InTEL fitter kit.
    */
    @Dir     @ORCADPROJ = @GetENV "ORCADPROJ"
    @Dir     @EndDir    = "@ORCADPROJ\\TEMPLATE"
@EndVars

@Display
    @Cls
		   INTEL SOFTWARE LICENSE AGREEMENT
		   --------------------------------

  The "Licensed Program" designates the software program and accompanying 
  documentation.

  You may not use, copy, merge, modify, transfer or reverse-engineer the 
  Licensed Program or any copy or portion of it unless provided for in 
  this license agreement.

  LICENSE:
  -------
  The terms of this license are as follows:
  1) A single user may use the Licensed Program on a single system at a 
     time.
  2) You may not transfer the Licensed Program to another party.
  3) You may not lease or otherwise rent the Licensed Program.
  4) You may not merge, modify or reverse-engineer the Licensed Program.

  @Pause
  @Cls
  OWNERSHIP AND COPYRIGHT OF PROGRAM:
  ----------------------------------
  The Licensed Program is owned and copyrighted by Intel. You may not remove 
  the copyright notice from the Licensed Program.  You will use your best 
  efforts to prevent any unauthorized copying of the Licensed Program.

  BACKUP POLICY:                                            
  -------------
  You may copy the Licensed Program solely for the purposes of back-up or 
  archival.

  LIMITATION OF LIABILITY:
  -----------------------
  THE LICENSED PROGRAM IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
  INCLUDING WARRANTIES FOR MERCHANTABILITY OR FITNESS FOR A PARTICULAR 
  PURPOSE. INTEL SHALL NOT BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE OR 
  INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR CONSE-
  QUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR OTHERWISE.
@Pause
@Cls
  APPLICABLE LAW:
  --------------
  This agreement shall be governed by the laws of the State of California 
  and the United States, including U.S. copyright laws and international 
  treaty provisions.
    
  TERMINATION:
  -----------
  Intel may terminate this Agreement at any time if you are in breach of 
  any term or condition set forth herein. Upon termination you agree to 
  immediately return the Licensed Program and any backup/archival copies 
  to Intel.

  Intel Corporation
  1900 Prairie City Road
  Folsom, California 95630
  Attn: PLD-BU Product Marketing, FM3-42

  @Pause
@EndDisplay

@GetOption

     Do you agree to the terms of this software license?

      @Option 1 = "Yes"
      @Option 2 = "No"

@EndOption

@If ( 2 [= @Option )
    @Display
    @Cls
    
    PLEASE RETURN THE PRODUCT TO:

	Intel Corporation
	1900 Prairie City Road
	Folsom, California 95630
	Attn: PLD-BU Product Marketing, FM3-42


    Installation of @Name Version @Version terminated!
    
    @Abort
    @EndDisplay
@EndIf

@Display
    @Cls


    The installation program used to install @Name Version @Version, 
    INSTALL, is based on licensed software provided by Knowledge Dynamics 
    Corp, P.O. Box 1558, Canyon Lake, Texas 78130-1558 (USA).  INSTALL is 
    Copyright (c) 1987-1992 by Knowledge Dynamics Corp which reserves all 
    copyright protection worldwide.  INSTALL is provided to you for the 
    exclusive purpose of installing @Name Version @Version.  Intel 
    Corp has modified the software as provided by Knowledge Dynamics Corp, 
    and thus the performance and behavior of the INSTALL program shipped 
    with @Name Version @Version may not represent the performance 
    and behavior of INSTALL as shipped by knowledge Dynamics Corp.  Intel 
    Corp is exclusively responsible for the support of @Name, 
    including  support  during  the installation  phase.  In  no  event 
    will  Knowledge  Dynamics Corp  provide any technical  support  for 
    @Name. 
    
    @Pause
@EndDisplay

@Display
	@Cls

	This program will install @Name Version @Version supporting
	Intel FLEXlogic FPGAs. 

	You will be prompted for installation information.  To 
	accept the default answer, press [ENTER].  Otherwise, 
	type the answer and then press [ENTER].

	If you make a mistake while typing, press [BACKSPACE]
	and then retype the answer.  
	
	To quit installation, you may press [Esc] at any time.

    @Pause
@EndDisplay

@Display
	@Cls

	Your System Configuration:
			      CPU:  80@CPU @If
			      (@NDP != 0) Math Coprocessor Installed @ElseIf
			   (@NDP == 0) Math Coprocessor NOT Installed @EndIf
		     Machine Type: @If
			   (@MachineID == 248) PS/2 Models 70/80 @ElseIf
			   (@MachineID == 249) PC Convertible @ElseIf
			   (@MachineID == 250) PS/2 Model 30 @ElseIf
			   (@MachineID == 251) PC/XT (later models) @ElseIf
			   (@MachineID == 252) PC/AT,PS/2 Models 50/60 @ElseIf
			   (@MachineID == 253) PCjr @ElseIf
			   (@MachineID == 254) PC/XT (early models) @ElseIf
			   (@MachineID == 255) PC "Classic" @EndIf
		      DOS Version:  @OSMajor.@OSMinor
		    RAM Installed:  @RAMTotal bytes
	    (EMM) Expanded Memory:  @EMMAvail out of @EMMTotal bytes
		      EMM Version:  @EMMMajor.@EMMMinor
	       Input/Output Drive:  @InDrive/@OutDrive
	       Current Video Mode: @If
			   (@VideoMode == 0) 40 X 25 Black & White @ElseIf
			   (@VideoMode == 1) 40 X 25 Color @ElseIf
			   (@VideoMode == 2) 80 X 25 Black & White @ElseIf
			   (@VideoMode == 3) 80 X 25 Color @ElseIf
			   (@VideoMode == 7) 80 X 25 Monochrome @EndIf
	      Resolution Graphics: @If
			 (@VideoGraph == 0) No graphics supported @ElseIf
			 (@VideoGraph == 4) 320 X 200 X 4 @ElseIf
			 (@VideoGraph == 5) 320 X 200 X 2 @ElseIf
			 (@VideoGraph == 6) 640 X 200 X 2 @ElseIf
			 (@VideoGraph >= 16) 640 X 480 X 16 @Else Unknown @EndIf
	       Video adapter card: @If(@VideoCard == 'M') MONO @ElseIf
				(@VideoCard == 'C') CGA @ElseIf
				(@VideoCard == 'V') VGA @ElseIf
				(@VideoCard == 'E') EGA @EndIf
		    Video display: @If(@VideoMonitor == 'C') COLOR @ElseIf
				     (@VideoMonitor == 'M') MONO @ElseIf
				     (@VideoMonitor == 'H') ENHANCED @EndIf
		     Video RAM is:  @VideoRAM Kbytes
			 ANSI.SYS: @If(@ANSIsys == 0) NOT @EndIf Installed
		    Keyboard Type: @If(@Keyboard == 0) NOT @EndIf Enhanced
			  NetBIOS: @If(@NetBIOS == 0) NOT @EndIf Installed

    @Pause
@EndDisplay

@If (@OSMajor < 5 || (@OSMajor == 5 && @OSMinor < 0))

    @GetOption
    @Name requires that your operating system version be at 
    least 5.0.  Your are currently running version @OSMajor.@OSMinor.
   
    O.K. to install anyway?

















			  @Option 1 = "Yes"
			  @Option 2 = "No"

			  Press [ENTER] when done.
			  Press [Esc] to Abort installation.
    @EndOption
@EndIf

@If ( 2 [= @Option )
    @Display
    @Cls
    
    Installation of @Name Version @Version 
    terminated!
    
    @Abort
    @EndDisplay
    
@EndIf

@If ((@CPU == 86) || (@CPU == 88) || (@CPU == 286)) 
   @GetOption

   This computer is an 80@CPU based machine.  @Name 
   Version @Version requires a minimum of a 80386 and will 
   not run on this machine. 

   O.K. to install anyway?




   










			  @Option 1 = "Yes"
			  @Option 2 = "No"

			  Press [ENTER] when done.
			  Press [Esc] to Abort installation.
    @EndOption
@Else  
     @GetOption
    
    Your computer appears to be suitable for installation of 
    @Name Version @Version.

    O.K. to continue?












	    @Option 1 = "Yes"
	    @Option 2 = "No"


	    Arrows/PgUp/PgDn:  Move selection bar.
		Flashing Bar:  Make selection.
		       Enter:  Accept selection.
			 Esc:  Abort installation.

    @EndOption
@EndIf 

@If ( 2 [= @Option )
    @Display
    @Cls

    Installation of @Name Version @version 
    terminated!

    @Abort
    @EndDisplay
@EndIf


@GetOption
    This @Name Version @Version supersedes all previous versions 
    including @PreVers.  Are any of these products currently 
    installed?










      
      
      
      
      
			  @Option 100 = "No"
			  @Option 200 = "Yes"

			  Press [ENTER] when done.
			  Press [Esc] to Abort installation.

@EndOption

@If ( 200 [= @Option )
    @Display
    @Cls

    Since an earlier product is already installed, you should install
    @Name Version @Version in the same directory. 



    @Pause
    @EndDisplay
@EndIf


@GetOutDrive
     @Cls
     @Suppress A
     @Suppress B
  On which disk drive do you wish to install @Name 
  Version @Version?


  Note!
  @Name
  may ONLY be installed on
  HARD DISK drives.











			  Press [ENTER] when done.
			  Press [Esc] to Abort installation.
@EndOutDrive

@GetSubdir
    @Cls
    Destination Directory Selection:
    
    Press [ENTER] to accept default destination directory @SubDir.
    Press [Esc] to enter new path.

    If you accept @SubDir as your destination subdirectory, the 
    following subdirectory is created:

	@OutDrive:@SubDir      For @Name's software 

    @Prompt = "  Directory ([Enter] = @Subdir) ? "

@EndSubdir

@If (@DirExists("@OutDrive:\\@SubDir"))
    @GetOption
    @Name Version @Version will be installed 
    at @OutDrive:@SubDir.


    O.K. to continue?












			 @Option 1 = "Yes"
			 @Option 2 = "No"

			 Press [ENTER] when done.
			 Press [Esc] to Abort installation.
    @EndOption
@EndIf

@If (@Exists("@OutDrive:\\@SubDir\\PLA2PDS.EXE"))
    @GetOption
    The prduct @Name Version @Version appears to already be installed.
    Do you wish to write over the prior version at @OutDrive:@SubDir.


    O.K. to continue?












			 @Option 1 = "Yes"
			 @Option 2 = "No"

			 Press [ENTER] when done.
			 Press [Esc] to Abort installation.
    @EndOption
@EndIf

@If ( 2 [=@Option)
    @Display
    @Cls

    Installation of @Name Version @Version 
    terminated!

    @Abort
    @EndDisplay
@EndIf


@GetOption
    Output Disk Drive [ @OutDrive ] has @DiskFree @OutDrive out of @DiskSize @OutDrive available.
    @Name requires a minimum of 4 Mbytes.




    O.K. to install into @OutDrive:@SubDir ?

    @Option 1 = "Yes"
    @Option 2 = "No"
@EndOption


@If ( 2 [= @Option )
    @Display
    @Cls

     Installation of @Name Version @version 
     terminated!

    @Abort
    @EndDisplay
@EndIf


@DefineDisk
	@Label = "Disk #1"
	@BeginLib FITTERKT.001
		@File 0 @Size 244692 @Out DOS4GW.EXE
		@File 1 @Size 20391 @Out MEMCHK.EXE
		@File 2 @Size 5810 @Out CFGINF.BAT
		@File 3 @Size 262429 @Out PARPDS.EXE
		@File 4 @Size 156986 @Out PLDPICK.EXE
		@File 5 @Size 3564 @Out PLDPICK.DB
		@File 6 @Size 293185 @Out LOCFALC.EXE
		@File 7 @Size 1231 @Out 5C031.CHP
		@File 8 @Size 1225 @Out 5C032.CHP
		@File 9 @Size 1367 @Out 5C060.CHP
		@File A @Size 1517 @Out N5C060.CHP
		@File B @Size 1463 @Out 5C090.CHP
		@File C @Size 1709 @Out N5C090.CHP
		@File D @Size 1747 @Out 5C180.CHP
		@File E @Size 2166 @Out G5C180.CHP
		@File F @Size 1507 @Out 5AC312.CHP
		@File G @Size 1657 @Out N5AC312.CHP
		@File H @Size 1699 @Out 5AC324.CHP
		@File I @Size 1945 @Out N5AC324.CHP
		@File J @Size 1225 @Out N85C220.CHP
		@File K @Size 1247 @Out 85C224.CHP
		@File L @Size 1397 @Out N85C224.CHP
		@File M @Size 1271 @Out 85C508.CHP
		@File N @Size 1271 @Out N85C508.CHP
		@File O @Size 1425 @Out 85CV10.CHP
		@File P @Size 1581 @Out N85CV10.CHP
		@File Q @Size 1337 @Out 22V10.CHP
		@File R @Size 1493 @Out N22V10.CHP
		@File S @Size 4101 @Out 5C031.JAF
		@File T @Size 3295 @Out 5C032.JAF
		@File U @Size 14227 @Out 5C060.JAF
		@File V @Size 22822 @Out 5C090.JAF
		@File W @Size 52757 @Out 5C180.JAF
		@File X @Size 14224 @Out 5AC312.JAF
		@File Y @Size 28945 @Out 5AC324.JAF
		@File Z @Size 3328 @Out 85C224.JAF
		@File 00 @Size 1367 @Out 85C508.JAF
		@File 10 @Size 6269 @Out 85CV10.JAF
		@File 20 @Size 6269 @Out 22V10.JAF
		@File 30 @Size 340677 @Out FITENGN.EXE
		@File 40 @Size 197829 @Out FX780.HUM
		@File 50 @Size 15371 @Out FX780.FX
		@File 60 @Size 10102 @Out FX740.FX
		@File 70 @Size 183305 @Out LOCMIN.EXE
		@File 80 @Size 67871 @Out PLDASM.EXE
		@File 90 @Size 68947 @Out VECTOJED.EXE
		@File A0 @Size 6466 @Out PLDASM.MPF
		@File B0 @Size 11122 @Out PLDASM.FXT
		@File C0 @Size 72904 @Out PLDSHELL.MSG
		@File D0 @Size 16404 @Out README
		@File E0 @Size 8619 @Out 2BKSLASH.EXE
		@File F0 @Size 54286 @Out PLA2PDS.EXE
		@File G0 @Size 117688 @Out DDBPINS.EXE
	@EndLib
@EndDisk

@SetConfig
    @AskOverWrite
    @Files = 20
    @Buffers = 15
@EndConfig

@SetAutoexec
    @AskOverWrite
    @Path = "@OutDrive:\\@SubDir"
    @SetReplace("PLDSHELL", "@OutDrive:\\@SubDir\\PLDSHELL.CFG")
@EndAutoexec


@Finish
    @Cls
 Generating @Name's Configuration File  
 
 Please Wait....
	 @ChDrive(@OutDrive)
	 @ChDir("@SubDir")
	 @Write("@OutDrive:\\@SubDir\\@Config.CFG", "wt", "#\n")
	 @Write( , , "#\n")
	 @Write( , , "#  PLDasm Configuration File\n")
	 @Write( , , "#\n")
	 @Write( , , "#\n")
	 @Write( , , "IPLSPATH @OutDrive:")
	 @System("2BKSLASH.EXE @SubDir >> @Config.CFG")
	 @Write( , , "\\\\ \n")
	 @Write( , , "INCLUDE @OutDrive:")
	 @System("2BKSLASH.EXE @SubDir >> @Config.CFG")
	 @Write( , , "\\\\\n")
	 @Write( , , "PLD_MSG PLDSHELL.MSG\n")
	 @Write( , , "MPFFILE PLDASM\n")
@If     (@CPU == 486)
	 @Write( , , "PORT1 COM3_PCPP 9600 5 3 30000\n")
@Else
	 @Write( , , "PORT1 COM3_PCPP 9600 5 250 2000\n")
@Endif
@If     (@CPU == 486)
	 @Write( , , "PORT2 COM1_IUP 9600 5 3 30000\n")
	 @Write( , , "PORT3 COM2_IUP 9600 5 3 30000\n")
	 @Write( , , "PORT4 COM3_IUP 9600 5 3 30000\n")
@ElseIf (@CPU == 386)
	 @Write( , , "PORT2 COM1_IUP 9600 5 3 28000\n")
	 @Write( , , "PORT3 COM2_IUP 9600 5 3 28000\n")
	 @Write( , , "PORT4 COM3_IUP 9600 5 3 28000\n")
@ElseIf (@CPU == 286)
	 @Write( , , "PORT2 COM1_IUP 9600 5 2 8500\n")
	 @Write( , , "PORT3 COM2_IUP 9600 5 2 8500\n")
	 @Write( , , "PORT4 COM3_IUP 9600 5 2 8500\n")
@Else
	 @Write( , , "PORT2 COM1_IUP 9600 5 2 5000\n")
	 @Write( , , "PORT3 COM2_IUP 9600 5 2 5000\n")
	 @Write( , , "PORT4 COM3_IUP 9600 5 2 5000\n")
@Endif
	 @Write( , , "PLD_MLIB EPLDMAC.LIB TTL.LIB\n")
 Generation of @Name's Configuration file 25% Done  

 Please Wait...
	 @Write( , , "PARJKPTERM 500\n")
	 @Write( , , "#\n")
	 @Write( , , "#\n")
	 @Write( , , "#  PLDASM Options\n")
	 @Write( , , "#\n")
	 @Write( , , "CMDSHELL C:\\\\COMMAND.COM\n")
	 @Write( , , "DEVPROG @OutDrive:")
	 @System("2BKSLASH.EXE @SubDir >> @Config.CFG")
	 @Write( , , "\\\\APT\n")
	 @Write( , , "PRINTER PRN\n")
	 @Write( , , "HOTKEYS ON\n")
	 @Write( , , "PDSEXT pds\n")
	 @Write( , , "#\n")
	 @Write( , , "#\n")
	 @Write( , , "#  Compile Options\n")
	 @Write( , , "#\n")
	 @Write( , , "COMP_PROC 1\n")
	 @Write( , , "COMP_EXPANDEQN YES\n")
	 @Write( , , "COMP_MINIMIZE YES\n")
	 @Write( , , "COMP_AUTOINV YES\n")
	 @Write( , , "COMP_DTSELN YES\n")
	 @Write( , , "COMP_CHKJED NO\n")
	 @Write( , , "COMP_RPTFILE YES\n")
	 @Write( , , "COMP_AUTORPT NO\n")
	 @Write( , , "COMP_FITMODE NO_REASSIGN\n")
	 @Write( , , "#\n")
	 @Write( , , "#\n")
	 @Write( , , "#  Simulator Options\n")
	 @Write( , , "#\n")
	 @Write( , , "SIM_ASYNC NO\n")
	 @Write( , , "SIM_THRESHOLD 32\n")
	 @Write( , , "#\n")
	 @Write( , , "#\n")
	 @Write( , , "#  Waveform Viewer Options\n")
	 @Write( , , "#\n")
	 @Write( , , "WAVE_PGLEN 66\n")
	 @Write( , , "WAVE_VIEW GRAPHICAL\n")
	 @Write( , , "WAVE_PRINT PLAIN\n")
 Generation of @Name's Configuration file 50% Done  

 Please Wait...
	 @Write( , , "PROGA \" \" \" \" \" \"\n")
	 @Write( , , "PROGB \" \" \" \" \" \"\n")
	 @Write( , , "PROGC \" \" \" \" \" \"\n")
	 @Write( , , "PROGD \" \" \" \" \" \"\n")
	 @Write( , , "PROGE \" \" \" \" \" \"\n")
	 @Write( , , "PROGF \" \" \" \" \" \"\n")
	 @Write( , , "PROGG \" \" \" \" \" \"\n")
	 @Write( , , "PROGH \" \" \" \" \" \"\n")
	 @Write( , , "PROGI \" \" \" \" \" \"\n")
	 @Write( , , "PROGJ \" \" \" \" \" \"\n")
	 @Write( , , "PROGK \" \" \" \" \" \"\n")
	 @Write( , , "PROGL \" \" \" \" \" \"\n")
 Generation of @name's Configuration file 75% Done

 Please Wait...
	 @Write( , , "PROGM \" \" \" \" \" \"\n")
	 @Write( , , "PROGN \" \" \" \" \" \"\n")
	 @Write( , , "PROGO \" \" \" \" \" \"\n")
	 @Write( , , "PROGP \" \" \" \" \" \"\n")
	 @Write( , , "PROGQ \" \" \" \" \" \"\n")
	 @Write( , , "PROGR \" \" \" \" \" \"\n")
	 @Write( , , "PROGS \" \" \" \" \" \"\n")
	 @Write( , , "PROGT \" \" \" \" \" \"\n")
	 @Write( , , "PROGU \" \" \" \" \" \"\n")
	 @Write( , , "PROGV \" \" \" \" \" \"\n")
	 @Write( , , "PROGW \" \" \" \" \" \"\n")
	 @Write( , , "PROGX \" \" \" \" \" \"\n")


Generation of @Name's Configuration File Complete!
    @Pause
    @Cls

    You've now completed the installation of Intel's @name 
    Version @version.

    Please see the @Name's Version @Version README file
    installed under the @OutDrive:@SubDir directory, for important
    contact numbers, literature order numbers, and release notes.
    
    
    IMPORTANT!

    INSTALL is complete, but before you can use @Name 
    Version @Version you need to REBOOT your system.
	
    
    Installation of @Name Version @Version is now finished!
      
    @Pause
    /*
    **  Added the following line to change directory back to
    **  OrCADPROJ\TEMPLATE at the conclusion of the intel fitter
    **  installation.
    */
    @ChDir("@EndDir")
@EndFinish

/* end-of-file */
