Richard said:
Are all outputs synchrous?
yes, they are,here´s the source code:
;PALASM Design Description
;---------------------------------- Declaration Segment ------------
TITLE schritt5
PATTERN
REVISION 1
AUTHOR fsm
COMPANY mrt
DATE 12/10/09
CHIP schritt5 PAL22V10
;---------------------------------- PIN Declarations ---------------
PIN 1 CLOCK COMBINATORIAL ; INPUT
PIN 2 LI_RE COMBINATORIAL ; INPUT
PIN 3 ENA COMBINATORIAL ; INPUT
PIN 4 RES COMBINATORIAL ; INPUT
PIN 12 GND ; INPUT
PIN 13 OE COMBINATORIAL ; INPUT
PIN 14 WP1 REGISTERED ; OUTPUT
PIN 15 WN1 REGISTERED ; OUTPUT
PIN 16 WP2 REGISTERED ; OUTPUT
PIN 17 WN2 REGISTERED ; OUTPUT
PIN 18 WP3 REGISTERED ; OUTPUT
PIN 19 WN3 REGISTERED ; OUTPUT
PIN 20 WP4 REGISTERED ; OUTPUT
PIN 21 WN4 REGISTERED ; OUTPUT
PIN 22 WP5 REGISTERED ; OUTPUT
PIN 23 WN5 REGISTERED ; OUTPUT
PIN 24 VCC ; INPUT
;----------------------------------- STATE SEGMENT ------
STATE
MOORE_MACHINE
START_UP := POWER_UP -> S0
;------STATE ASSIGNMENT EQUATIONS --------------------------------
S0 = WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * WN4 * /WP5
* /WN5
S1 = WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S2 = /WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S3 = /WP1 * WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S4 = /WP1 * WN1 * /WP2 * /WN2 * WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S5 = /WP1 * WN1 * WP2 * /WN2 * WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S6 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * /WN3 * /WP4 * WN4 * WP5
* /WN5
S7 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * WN3 * /WP4 * WN4 * WP5
* /WN5
S8 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * WN3 * /WP4 * /WN4 * WP5
* /WN5
S9 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * WP5
* /WN5
S10 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* /WN5
S11 = /WP1 * WN1 * WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* WN5
S12 = /WP1 * /WN1 * WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* WN5
S13 = WP1 * /WN1 * WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* WN5
S14 = WP1 * /WN1 * /WP2 * /WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* WN5
S15 = WP1 * /WN1 * /WP2 * WN2 * /WP3 * WN3 * WP4 * /WN4 * /WP5
* WN5
S16 = WP1 * /WN1 * /WP2 * WN2 * /WP3 * /WN3 * WP4 * /WN4 * /WP5
* WN5
S17 = WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * WP4 * /WN4 * /WP5
* WN5
S18 = WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * /WN4 * /WP5
* WN5
S19 = WP1 * /WN1 * /WP2 * WN2 * WP3 * /WN3 * /WP4 * WN4 * /WP5
* WN5
;TRANSITION EQUATIONS
---------------------------------------------------------
S0 := LINKS -> S19
+ RECHTS -> S1
+-> S0
S1 := LINKS -> S0
+ RECHTS -> S2
+-> S1
S2 := LINKS -> S1
+ RECHTS -> S3
+-> S2
S3 := LINKS -> S2
+ RECHTS -> S4
+-> S3
S4 := LINKS -> S3
+ RECHTS -> S5
+-> S4
S5 := LINKS -> S4
+ RECHTS -> S6
+-> S5
S6 := LINKS -> S5
+ RECHTS -> S7
+-> S6
S7 := LINKS -> S6
+ RECHTS -> S8
+-> S7
S8 := LINKS -> S7
+ RECHTS -> S9
+-> S8
S9 := LINKS -> S8
+ RECHTS -> S10
+-> S9
S10:= LINKS -> S9
+ RECHTS -> S11
+-> S10
S11:= LINKS -> S10
+ RECHTS -> S12
+-> S11
S12:= LINKS -> S11
+ RECHTS -> S13
+-> S12
S13:= LINKS -> S12
+ RECHTS -> S14
+-> S13
S14:= LINKS -> S13
+ RECHTS -> S15
+-> S14
S15:= LINKS -> S14
+ RECHTS -> S16
+-> S15
S16:= LINKS -> S15
+ RECHTS -> S17
+-> S16
S17:= LINKS -> S16
+ RECHTS -> S18
+-> S17
S18:= LINKS -> S17
+ RECHTS -> S19
+-> S18
S19:= LINKS -> S18
+ RECHTS -> S0
+-> S19
;OUTPUT EQUATIONS
;WP1.TRST = OE
;WN1.TRST = OE
;WP2.TRST = OE
;WN2.TRST = OE
;WP3.TRST = OE
;WN3.TRST = OE
;WP4.TRST = OE
;WN4.TRST = OE
;WP5.TRST = OE
;WN5.TRST = OE
;CONDITION EQUATIONS
CONDITIONS
LINKS = LI_RE * ENA
RECHTS = /LI_RE * ENA
SIMULATION
TRACE_ON ENA CLOCK LI_RE WP1 WN1 WP2 WN2 WP3 WN3 WP4 WN4 WP5 WN5
SETF /OE /CLOCK ENA
;SETF WP1 /WN1 /WP2 WN2 WP3 /WN3 /WP4 WN4 /WP5 /WN5
;SETF /OE CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK
CLOCKF CLOCK