Answers Database


Foundation State Editor/Abel: Syntax Error when //diagramm actions are used


Record #8415

Problem Title:
Foundation State Editor/Abel: Syntax Error when //diagramm actions are used


Problem Description:
Urgency: Standard

General Description:
When you use Abel as your target language and you add an equation to the
//diagramm actions the generated abel code results in a syntax error, e.g.:

adding c=!b;

results in

Declarations

....

"diagram ACTIONS
c=!b;

"************* state machine: test *************

Equations

....

The problem here is that the equation c=!b is written to the Declaration part and not to a Equation part.

The software shoud write it to the Equation part or add a "Equations" line automatically above the equation c=!b;


Solution 1:

The workaround is to write to the //diagram actions in the State Editor not just:
c=!b;
but
Equations
c=!b;

this results in the following abel code:

eclarations

....

"diagram ACTIONS
Equations;
c=!b;

"************* state machine: test *************

Equations

The ";" behind the Equations seem to be OK





End of Record #8415 - Last Modified: 02/02/00 15:53

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips!