==================================================================
=           Algorithmic State Machine Simulator - Help           =
==================================================================

This guide should give you some help how to use the asm simulator.
Scroll down for more information.

--------------------------------
- How to create an ASM Diagram -
--------------------------------

Placing Items:
  Click on the toolbar and choose an item type, then move the mouse
  over the workspace and click left to place the item.
Connect Items:
  Move the mouse over an exit point of an item, a red circle appears. 
  Now press the left mouse button and drag a new wire to an entry
  point of another item. Release the mouse button to connect the
  two boxes. You cannot connect an entry point with an entry point
  and no exit point with an exit point.
Modify a wire:
  Mark a wire by clicking on it, then drag the start or end of the wire 
  to an other item.
Delete Items:
  Click on an item to mark it, then press "Del" or "Backspace" to 
  delete the marked item.
Change Box Contents:
  To fill a box with content, double click on it. A dialog will
  appear where you can fill in the appropriate statement or
  condition.
  The list of registers at the bottom of the page is automatically 
  updated after you adjusted the content of a box.
Undo/Redo:
  You can always undo the last action during creation of the ASM
  diagram. Just click the undo button if you want to do this. When
  you clicked undo, you can redo the undone action. 
Change Register Size:
  The register size for all registers is 8 bit by default. You can 
  change this value to any value from 0 to 63.
Change register values:
  To change the value stored in a register, simply adjust it in the 
  area at the bottom of the window and click the save button next 
  to the value you adjusted.
  

----------------------------------
- How to simulate an ASM Diagram -
----------------------------------

Check for construction failures:
  To check the created diagram for contruction failures, click on 
  the "check" button on the tool bar. If you made a mistake in the
  consistency of the diagram, the check function will inform you.
  Note: The check will only make sure if the diagram is runnable
  at all. The ASM Simulator will only inform you if there is an
  error, but not where exactly. You have to find it yourself. 
Start Simulation:
  Click on "Simul. mode" to start the simulation of the ASM diagram.
  If the diagram is created correctly, the simulation starts with 
  the first cycle.
  During the simulation, you cannot modify the ASM diagram, it is 
  locked for modifications.
Perform cycle:
  To go one cycle forward, click the "step fwd" button in the tool bar.
  There are also buttons to go one cycle back, and to go to the first 
  cycle.
Change register values:
  You can also change a register value during simulation (See previous
  chapter).
Stop Simulation:
  To stop the simulation, click "Edit Mode" in the tool bar. During 
  the edit mode, the buttons in the simulation toolbar are not 
  operational. 
Show Simulation Log:
  A log is created for each cycle of the simulation. You can view 
  it via the menu item Extras -> Show Log.

---------------------------------
- How to load and save diagrams -
---------------------------------

Just use the menu for saving and loading existing diagrams.

-----------------------
- How to create VHDL  -
-----------------------

You can make the ASM Simulator translate a diagram to VHDL Code. 
Just use the menu item Extras -> Generate VHDL. 

Have fun!