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.
293
+
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.
280
294
281
295
```
282
-
python3 pyverilog/dataflow/graphgen.py -t top -s top.led test.v
296
+
python pyverilog/dataflow/graphgen.py -t top -s top.led test.v
283
297
```
284
298
285
299
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.
@@ -289,10 +303,10 @@ Then you got a png file (out.png). The picture shows that the definition of 'led
289
303
Control-flow analyzer
290
304
------------------------------
291
305
292
-
Let's try control-flow analysis. Please type the command as below.
306
+
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.
293
307
294
308
```
295
-
python2.7 pyverilog/controlflow/controlflow_analyzer.py -t top test.v
309
+
python pyverilog/controlflow/controlflow_analyzer.py -t top test.v
296
310
```
297
311
298
312
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.
@@ -312,7 +326,7 @@ Loop
312
326
(0, 1, 2)
313
327
```
314
328
315
-
You got also a png file (top_state.png). The picture shows that the graphical structure of the state machine.
329
+
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.
316
330
317
331

318
332
@@ -343,7 +357,7 @@ print(rslt)
343
357
Please type the command as below at the same directory with Pyverilog.
344
358
345
359
```
346
-
python3 test.py
360
+
python test.py
347
361
```
348
362
349
363
Then Verilog HDL code generated from the AST instances is displayed.
0 commit comments