Manual De Pld

Páginas: 18 (4322 palabras) Publicado: 13 de octubre de 2012
The CUPL Environment
Note that this is not a complete instructional manual as it only contains the items necessary to create most general types of programs. For more in depth information, please refer to the manual or the online help file. Areas to be covered: CUPL Programming Language CUPL Simulator Language Usage of the CUPL Environment Troubleshooting File extensions that will be useful toknow Created by the user PLD Contains all of the logic instructions necessary for your device, i.e. the cupl program itself. Generated by CUPL Contains all of the logic equations that CUPL generated from your program DOC Tells you errors encountered in compiling the program (including location) Provides information about how it fit the compiled logic into the selected device. Generated by CUPL ABSFile used by CUPL to perform the simulation Generated by CUPL LST Error Listing file that contains all the original lines of code numbered. All errors are listed at the end with offending line number. Generated by CUPL JED File used by the programmer to actually burn the chip Filename comes from the Name field in the pld file header Simulation Input file created by user SI Contains your list oftest vectors Simulation Output file generated by CUPL SO Contains the results of the simulation run including any errors Used for the graphical display of your simulation results

CUPL Programming Language
General Conventions
Variables are case sensative cannot have spaces cannot use reserved words or symbols

Reserved Words (not case sensitive)
APPEND DATE FIELD GROUP MACRO PARTNO REVISIONSEQUENCET & * : ; @ # + . , $ ( [ .. ! ^ ) ] /* ' ASSEMBLY DEFAULT FLD IF MIN PIN SEQUENCE TABLE / */ = ASSY DESIGNER FORMAT JUMP NAME PINNNODE SEQUENCED COMPANY DEVICE FUNCTION LOC NODE PRESENT SEQUENCEJK CONDITION ELSE FUSE LOCATION OUT REV SEQUENCERS

Reserved Symbols & Symbol sets

Indexed Variables Example: [A0, A1, A2, A3] might be a 4 bit address Indexing should always start from 0, not1 or such. Another notation for these is [A0..3] when using the entire group The index cannot be greater than 31 Numbers can be represented in binary, octal, decimal, or hexadecimal. Pin numbers and indexed variable will always be represented in decimal. The default base for all other number is hexadecimal. To indicate a particular base, precede the number will the particular prefix (which is notcase sensitive).

Number
'b'0 'b'1101 'o'663 'D' 92 'h' BA 'b'[001..100]

Base
binary binary octal decimal hexadecimal binary

Decimal Value
0 13 435 92 186 range from 1 to 4

Binary, octal and hex numbers can also have don't care values.

Number
'o'0X6 'b'11X1 'h'[3FXX..7FFF]

Base
octal binary hexadecimal (range)

Commenting is done the same as in ANSI C where your comment isenclosed between the /* and */ symbol pairs.

Note: Double slash (//) is not valid for comments. Most instruction statements end with a semicolon.

CUPL program format
There are three parts to a CUPL file (a .pld file) Header Declarations Main body If you use the template file (or what will automatically come up for a new file), the basic format will be already set up.

Header
Thefollowing are the basic header fields:
Name Partno Date Revision Designer Company Assembly Location Device XXXXX; XXXXX; XX/XX/XX; XX; XXXXX; XXXXX; XXXXX; XXXXX; XXXXX;

All of the header fields are required to be present in the file, but only the Name field is required to have a real value in it. It will be used as the name for the JEDEC output file (the file you will use with the programmer) so itneeds to be a valid DOS name (i.e. max of 8 characters). The compiler will perform a check to verify all of the fields are present. The Device field allows you to set the default device type used in compilation. I would suggest using this so you don't have to worry about setting the device manually before compiling (see the device selection section). The name to put in here will be the name you...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Manual de PLD
  • Manual pld mercedes
  • PLD
  • MANUAL PLD NOT 9112015
  • ¿Que es un PLD?
  • EL PLD
  • Practica pld
  • Vhdl y pld

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS