Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apio graph fails - cant find 'dot' #371

Open
pm100 opened this issue Apr 5, 2024 · 2 comments
Open

apio graph fails - cant find 'dot' #371

pm100 opened this issue Apr 5, 2024 · 2 comments

Comments

@pm100
Copy link

pm100 commented Apr 5, 2024

Windows, fresh install of everything; 'apio upload ' works fine

PS C:\work\nandland\go-board\Blinky> apio graph
yosys -f verilog -p "show -format dot -colors 1 -prefix hardware Test" -q Blinky.v
dot -Tsvg hardware.dot -o hardware.svg
'dot' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [hardware.svg] Error 1
═════════════════════════════════════════════ [ ERROR ] Took 0.36 seconds ═════════════════════════════════════════════
PS C:\work\nandland\go-board\Blinky>

@zapta
Copy link
Collaborator

zapta commented Apr 6, 2024

Thanks @pm100. 'graph' is a new command that was added recently. As a woraround, you can install the graphviz package manually as explain at https://graphviz.org/download/ . This should provide the 'dot' command.

@Obijuan, the dot command used to convert the .dot file that yosys generates to .svg. Any idea how to have it installed automatically?

yosys -f verilog -p "show -format dot -colors 1 -prefix hardware main" -q fifo_tx.v i2s_rx.v i2s_test_pattern.v i2s_timing.v main.v meta_stability.v queue.v queue_pusher.v register.v reset_gen.v sine_gen.v status_leds.v

dot -Tsvg hardware.dot -o hardware.svg

EDIT: a portable viewer of .dot file will also be useful, if there is one.

@pm100
Copy link
Author

pm100 commented Apr 9, 2024

yes , installing grpahviz solved my problem, Maybe just a doc update needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants