!!!!    6    0    1  989966173  V1b95                                         

! Device           : 27s181
! Function         : prom 3-state 1024 x 8
! revision         : B.01.00
! safeguard        : standard_sttl
! Modifications    : Modified for AwareTest xi

  warning           "This library has not been verified with hardware."

sequential

assign  VCC         to pins 24
assign  GND         to pins 12

assign  Data_output to pins 17,16,15,14,13,11,10,9
assign  Data_D0     to pins 9    !AT Added for minimum pin test.
assign  Data_D1     to pins 10   !AT Added for minimum pin test.
assign  Data_D2     to pins 11   !AT Added for minimum pin test.
assign  Data_D3     to pins 13   !AT Added for minimum pin test.
assign  Data_D4     to pins 14   !AT Added for minimum pin test.
assign  Data_D5     to pins 15   !AT Added for minimum pin test.
assign  Data_D6     to pins 16   !AT Added for minimum pin test.
assign  Data_D7     to pins 17   !AT Added for minimum pin test.

assign  Address     to pins 22,23,1,2,3,4,5,6,7,8

assign  Chip_Select_1_bar  to pins 21
assign  Chip_Select_2_bar  to pins 20
assign  Chip_Select_3      to pins 19
assign  Chip_Select_4      to pins 18

family  TTL


power   VCC, GND

inputs  Address, Chip_Select_1_bar, Chip_Select_2_bar, Chip_Select_3
inputs   Chip_Select_4

outputs Data_output
outputs Data_D0, Data_D1, Data_D2, Data_D3 !AT Added for minimum pin test.
outputs Data_D4, Data_D5, Data_D6, Data_D7 !AT Added for minimum pin test.

disable Data_output  with Chip_Select_1_bar   to "1"
disable Data_output  with Chip_Select_2_bar   to "1"
disable Data_output  with Chip_Select_3       to "0"
disable Data_output  with Chip_Select_4       to "0"

when  Chip_Select_1_bar    is    "1"   inactive    Data_output
when  Chip_Select_2_bar    is    "1"   inactive    Data_output
when  Chip_Select_3        is    "0"   inactive    Data_output
when  Chip_Select_4        is    "0"   inactive    Data_output

! Note: default trace specification is used

!*********************************************************************
!*********************************************************************

vector    Count_vector
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_output         to "00000000"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

!AT The following vectors have been added for a minimum pins test. Any
!AT vectors that references the data bus was copied and modified to reference
!AT only a single pin of the data bus.

vector    Count_vector_D0
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D0             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D1
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D1             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D2
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D2             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D3
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D3             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D4
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D4             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D5
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D5             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D6
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D6             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

vector    Count_vector_D7
     set  Chip_Select_1_bar   to "0"
     set  Chip_Select_2_bar   to "0"
     set  Chip_Select_3       to "1"
     set  Chip_Select_4       to "1"
     set  Data_D7             to "0"
     set  Address             to "00 0000 0000"
     upcounter              Address
end vector

!*********************************************************************
!*********************************************************************

!AT The following AwareTest units have been added for minimum pins tests. Each
!AT unit tests a separate data pin starting with D0.

unit "awaretest D0 Test"
     preset counter      Count_vector_D0  compress
     repeat   255  times
          count     Count_vector_D0 compress
     end repeat
end unit

unit "awaretest D1 Test"
     preset counter      Count_vector_D1  compress
     repeat   255  times
          count     Count_vector_D1 compress
     end repeat
end unit

unit "awaretest D2 Test"
     preset counter      Count_vector_D2  compress
     repeat   255  times
          count     Count_vector_D2 compress
     end repeat
end unit

unit "awaretest D3 Test"
     preset counter      Count_vector_D3  compress
     repeat   255  times
          count     Count_vector_D3 compress
     end repeat
end unit

unit "awaretest D4 Test"
     preset counter      Count_vector_D4  compress
     repeat   255  times
          count     Count_vector_D4 compress
     end repeat
end unit

unit "awaretest D5 Test"
     preset counter      Count_vector_D5  compress
     repeat   255  times
          count     Count_vector_D5 compress
     end repeat
end unit

unit "awaretest D6 Test"
     preset counter      Count_vector_D6  compress
     repeat   255  times
          count     Count_vector_D6 compress
     end repeat
end unit

unit "awaretest D7 Test"
     preset counter      Count_vector_D7  compress
     repeat   255  times
          count     Count_vector_D7 compress
     end repeat
end unit

unit "ROM test"
     preset counter      Count_vector     compress
     repeat   1024 times
          count     Count_vector    compress
     end repeat
end unit

!    End of test


