home *** CD-ROM | disk | FTP | other *** search
- !--------------------------------------------------------
- !This simulation Script file tests the BusDriver circuit.
- !--------------------------------------------------------
-
- view
- A0
- A1
- A2
- A3
- B0
- B1
- B2
- B3
- SELECT_A
- SELECT_B
- BUS0
- BUS1
- BUS2
- BUS3
- section
-
-
- !Tristate all bus drivers.
-
- assign SELECT_A 0
- assign SELECT_B 0
- run
-
- !Assign values to A and B.
-
- assign A0 0
- assign A1 1
- assign A2 0
- assign A3 1
-
- assign B0 1
- assign B1 0
- assign B2 1
- assign B3 0
-
- run
-
- !Drive A onto Bus, then tristate.
-
- assign SELECT_A 1
- run
- assign SELECT_A 0
- run
-
- !Drive B onto Bus, then tristate.
-
- assign SELECT_B 1
- run
- assign SELECT_B 0
- run
-
- !Cause bus-contention by enabling both sets of bus drivers.
-
- assign SELECT_A 1
- assign SELECT_B 1
- run
-
- !Tristate both sets of bus drivers.
-
- assign SELECT_A 0
- assign SELECT_B 0
- run
-