I want to create a program to parse Verilog and display a block diagram. Can someone help me regarding what algorithms I need to look into? I found a good Verilog parser, but now I need to find the relation between each block and place them accordingly. It does not have to be extensively optimized.
UPDATE:
for now I am using ironPython to draw the block diagram in Visio.
- Create a list of blocks with their inputs and outputs
- Create a graph which matches all the outputs of a block to their corresponding inputs. This basically has all the connections between blocks.
- Find a place for them in the Visio diagram.
- Draw them on Visio
- Connect them on Visio.