FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
772 stars 131 forks source link

[Feature Request] Add an apio command to generate the design graph. #354

Closed zapta closed 4 months ago

zapta commented 4 months ago

This proposal is for a new command such as apio graph or apio show that uses the yosys's show capability and generates a file hardware.svg with a diagram of the design.

For example, the following yosys command

yosys -q -p "show -format svg -colors 1 -prefix hardware main" deserializer.v leds.v main.v queue.v queue_pusher.v reset_gen.v sensor_timing.v serial_tx.v

Generated for me this graph hardware

Open points

zapta commented 4 months ago

The api graph command was added, so closing this issue.

Future improvements may include auto launch of a .svg viewer or a more readable graph.