home *** CD-ROM | disk | FTP | other *** search
PALASM Design Description | 1991-02-27 | 2.8 KB | 76 lines |
- ;PALASM Design Description
-
- ;---------------------------------- Declaration Segment ------------
- TITLE TUTOR7.PDS
- PATTERN A
- REVISION 2.0
- AUTHOR J.ENGINEER
- COMPANY ADVANCED MICRO DEVICES, INC.
- DATE 01/01/90
-
- CHIP TEMP PALCE26V12
-
- ;---------------------------------- PIN Declarations ---------------
- PIN 1 CLOCK COMBINATORIAL ; INPUT
- PIN 2 POWER COMBINATORIAL ; INPUT
- PIN 3..6 TEMP[1..4] COMBINATORIAL ; INPUT
- PIN 7 VCC ; INPUT
- PIN 15 OFF REGISTERED ; OUTPUT
- PIN 16 NORMAL REGISTERED ; OUTPUT
- PIN 17 ALARM REGISTERED ; OUTPUT
- PIN 21 GND ; INPUT
-
- ;----------------------------------- Boolean Equation Segment ------
- EQUATIONS
-
- IF POWER = 0 THEN
- BEGIN
- OFF = 1
- ALARM = 0 ;This line is a change from the tutorial. See release notes.
- NORMAL = 0 ;This line is a change from the tutorial. See release notes.
- END ; END IF STATEMENT
- ELSE
- BEGIN
- CASE ( TEMP[1..4] )
- BEGIN
- #d4..8:
- BEGIN
- NORMAL = 1
- ALARM = 0 ;This line is a change from the tutorial. See release notes.
- OFF = 0 ;This line is a change from the tutorial. See release notes.
- END
- OTHERWISE:
- BEGIN
- ALARM = 1
- NORMAL = 0 ;This line is a change from the tutorial. See release notes.
- OFF = 0 ;This line is a change from the tutorial. See release notes.
- END ; END OTHERWISE STATEMENT
- END ; END CASE STATEMENT
- END ; END ELSE STATEMENT
-
-
- ;----------------------------------- Simulation Segment ------------
- SIMULATION
-
- TRACE_ON POWER TEMP[1] TEMP[2] TEMP[3] TEMP[4] OFF NORMAL ALARM
-
- SETF /POWER /TEMP[1] /TEMP[2] /TEMP[3] /TEMP[4]
- ; significance of settings:
- ; freezer power is off
- ; temperature reading is 0000
- ; temperature is immaterial if power is off
- CLOCKF CLOCK
- CHECK /ALARM OFF /NORMAL
- SETF POWER ; freezer power is back on -- look for alarm ON next clk
- CLOCKF CLOCK
- CHECK ALARM /OFF /NORMAL
- SETF TEMP[2] ; temperature = four -- look for alarm OFF next clk
- CLOCKF CLOCK
- CHECK /ALARM /OFF NORMAL
- SETF TEMP[1] ; temperature = 12 -- look for alarm ON next clock
- CLOCKF CLOCK
- CHECK ALARM /OFF /NORMAL
-
- TRACE_OFF
- ;-------------------------------------------------------------------
-