home *** CD-ROM | disk | FTP | other *** search
- PROCEDURE EXAMPLE (WITHOUT A RESET SIGNAL)
-
- Some devices, including specialized PROMs and devices with reset built in
- (such as the PAL22V10 built in asynchronous reset product term), do not
- need the reset signal on the PROCEDURE statement. The design below
- illustrates a simple state machine that uses the asynchronous reset on the
- 22V10 rather than an explicit reset signal in the procedure.
-
- The miser bits are set using the configuration statement. If the miser
- bits are left unprogrammed, unpredictable results may occur.
-
- |EP320 in:(IN[3..0],ENA,RESET), io:(Q[1..0]), clock:CLK
- |
- | Conditioning: ENA ?? dff(Q[1..0],CLK,RESET)
- | Configuration: "Miser:1"
- |
- | Procedure: Q[1..0]
- | {
- | S0. IN0' ? -> S0
- | S1. IN1' ? -> S1
- | S2. IN2' ? -> S2
- | S3. IN3' ? -> S3
- | -> S0
- | }
-
- | Vectors:
- | { Display (CLK)c," ENA:",ENA," RESET:",RESET, \
- | " INPUTS:",IN[3..0]," STATE:",(Q[1..0])d
- | Test ENA=1;RESET=0;CLK |Q[3..0] should be undefined
- | Test RESET=1,0 |Asynchronously reset the machine
- | Test IN[3..0]=0,1,2,4,8;CLK=2(0,1) |Increment through the states
- | End
- | }
-
-