'Doxygen with Graphviz to document VHDL

I don't manage to add a graphviz (@dot) to my doxygen documented VHDL files. Can somebody provide some example code?

I would like to add fsm graphical representation to my code.

thanks in advance



Solution 1:[1]

Just write the dot-file manually:

digraph FSM {
    RESET -> IDLE
    IDLE  -> CALC [label="data_in = '1'"]
    CALC  -> DONE
    DONE  -> IDLE
}

Solution 2:[2]

  1. comment with --!;
  2. start with @dot and stop with @enddot

Example:

--! @dot
--! digraph finite_state_machine {
--!     rankdir=LR;
--!     size="8,5"
--!     node [shape = circle];
--!     S0 -> S1 [ label = "010" ] 
--!     S1 -> S0 [ label = "000" ]
--!     S1 -> S2 [ label = "111" ]
--!     S2 -> S0 [ label = "101" ]
--! }
--! @enddot

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user2099996
Solution 2 S.Dong