"clocks
CLK PIN;
"input ports
RST PIN;
X PIN;
"output ports
Z PIN;
"******** BINARY ENCODED state machine: Sreg0 ******
Sreg0_0 NODE istype 'reg';xilinx property 'save Sreg0_0';
Sreg0_1 NODE istype 'reg';xilinx property 'save Sreg0_1';
Sreg0 = [Sreg0_1, Sreg0_0];"diagram ACTIONS
S0 = ^b00;
S1 = ^b01;
S2 = ^b10;
S3 = ^b11;
"************* state machine: Sreg0 *************
Equations
" clock signals definitions
Sreg0.clk = CLK;State_diagram Sreg0
Sreg0_0.clr = RST;
Sreg0_1.clr = RST;
State S0:
IF (!X) THENState S1:
S0 WITH Z=^b0;
ENDWITH
ELSE IF (X) THEN
S1 WITH Z=^b0;
ENDWITH;
IF (X) THENState S2:
S1 WITH Z=^b0;
ENDWITH
ELSE IF (!X) THEN
S2 WITH Z=^b0;
ENDWITH;
IF (X) THENState S3:
S3 WITH Z=^b0;
ENDWITH
ELSE IF (!X) THEN
S0 WITH Z=^b0;
ENDWITH;
IF (!X) THEN" end of state machine - Sreg0
S2 WITH Z=^b0;
ENDWITH
ELSE IF (X) THEN
S1 WITH Z=^b1;
ENDWITH;
end mystabl