You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's view the result of dataflow analysis as a picture file. Now we select 'led' as the target. Please type the command as below.
274
+
Let's view the result of dataflow analysis as a picture file. Now we select 'led' as the target. Please type the command as below. In this example, Graphviz and Pygraphviz are installed.
265
275
266
276
```
267
-
python3 pyverilog/dataflow/graphgen.py -t top -s top.led test.v
277
+
python pyverilog/dataflow/graphgen.py -t top -s top.led test.v
268
278
```
269
279
270
280
Then you got a png file (out.png). The picture shows that the definition of 'led' is a part-selection of 'count' from 23-bit to 16-bit.
Let's try control-flow analysis. Please type the command as below.
287
+
Let's try control-flow analysis. Please type the command as below. In this example, Graphviz and Pygraphviz are installed. If don't use Graphviz, please append "--nograph" option.
278
288
279
289
```
280
-
python2.7 pyverilog/controlflow/controlflow_analyzer.py -t top test.v
290
+
python pyverilog/controlflow/controlflow_analyzer.py -t top test.v
281
291
```
282
292
283
293
Then you got the result as below. The result shows that the state machine structure and transition conditions to the next state in the state machine.
@@ -297,9 +307,9 @@ Loop
297
307
(0, 1, 2)
298
308
```
299
309
300
-
You got also a png file (top_state.png). The picture shows that the graphical structure of the state machine.
310
+
You got also a png file (top_state.png), if you did not append "--nograph". The picture shows that the graphical structure of the state machine.
0 commit comments