Saturday, 2022-02-05

*** tpb <[email protected]> has joined #symbiflow00:00
tpb<s​f-slack> <fahrenkrog> Hey all, I'm trying to find a way to generate a schematic diagram from a verilog module. I believe I saw that somewhere but I can't really find it? I also had a look at Sphinx HDL Diagrams, but I'm not fluent in RST. Is there a command line tool I can use to generate a PNG or SVG file from a .v input?02:44
tpb<s​f-slack> <hansfbaier> I found out, how: https://github.com/kintex-chatter/scratchpad/issues/1#issuecomment-103050364202:55
tpb<s​f-slack> <hansfbaier> You can convert it to the .json netlist with yosys and then use netlistsvg to make a SVG out of that.03:20
tpb<s​f-slack> <hansfbaier> All Site types actually, the tiles have different coordinates.03:21
tpb<s​f-slack> <fahrenkrog> Thanks... how does that work? I will have a look online still...05:39
tpb<l​kcl> fahrenkrog: it's very simple, use yosys, "read verilog {insertfilename}; show top"11:47
tpb<l​kcl> (or "show {insert module name}"11:47
tpb<l​kcl> if you are doing that interactively you can type "show " then press tab twice to see the full list of modules11:48
tpb<l​kcl> interestingly sphinx hdl diagrams actually uses yosys "show {module}" underneath.11:49
tpb<l​kcl> "show -format" option can take SVG or ps (postscript)11:51
tpb* l​kcl just investigating now11:52
tpb<l​kcl> according to "yosys show --help" the --format option is simply passed through to the dot command, and the dot command does in fact support png, jpg, gif.11:53
tpb<l​kcl> interesting.11:53
tpb<l​kcl> so, yes, you should be able to get both PNG or SVG as you want11:53
*** maartenBE <maartenBE!~maartenBE@freenode/user/maartenBE> has quit IRC (Ping timeout: 120 seconds)22:08
*** maartenBE <[email protected]> has joined #symbiflow22:09

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!