========================================= show - generate schematics using graphviz ========================================= .. raw:: latex \begin{comment} .. cmd:def:: show :title: generate schematics using graphviz .. code:: yoscrypt show [options] [selection] :: Create a graphviz DOT file for the selected part of the design and compile it to a graphics file (usually SVG or PostScript). .. code:: yoscrypt -viewer :: Run the specified command with the graphics file as parameter. On Windows, this pauses yosys until the viewer exits. Use "-viewer none" to not run any command. .. code:: yoscrypt -format :: Generate a graphics file in the specified format. Use 'dot' to just generate a .dot file, or other strings such as 'svg' or 'ps' to generate files in other formats (this calls the 'dot' command). .. code:: yoscrypt -lib :: Use the specified library file for determining whether cell ports are inputs or outputs. This option can be used multiple times to specify more than one library. note: in most cases it is better to load the library before calling show with 'read_verilog -lib '. it is also possible to load liberty files with 'read_liberty -lib '. .. code:: yoscrypt -prefix :: generate .* instead of ~/.yosys_show.* .. code:: yoscrypt -color :: assign the specified color to the specified object. The object can be a single selection wildcard expressions or a saved set of objects in the @ syntax (see "help select" for details). .. code:: yoscrypt -label :: assign the specified label text to the specified object. The object can be a single selection wildcard expressions or a saved set of objects in the @ syntax (see "help select" for details). .. code:: yoscrypt -colors :: Randomly assign colors to the wires. The integer argument is the seed for the random number generator. Change the seed value if the colored graph still is ambiguous. A seed of zero deactivates the coloring. .. code:: yoscrypt -colorattr :: Use the specified attribute to assign colors. A unique color is assigned to each unique value of this attribute. .. code:: yoscrypt -width :: annotate buses with a label indicating the width of the bus. .. code:: yoscrypt -signed :: mark ports (A, B) that are declared as signed (using the [AB]_SIGNED cell parameter) with an asterisk next to the port name. .. code:: yoscrypt -stretch :: stretch the graph so all inputs are on the left side and all outputs (including inout ports) are on the right side. .. code:: yoscrypt -pause :: wait for the user to press enter to before returning .. code:: yoscrypt -enum :: enumerate objects with internal ($-prefixed) names .. code:: yoscrypt -long :: do not abbreviate objects with internal ($-prefixed) names .. code:: yoscrypt -notitle :: do not add the module name as graph title to the dot file .. code:: yoscrypt -nobg :: don't run viewer in the background, IE wait for the viewer tool to exit before returning .. code:: yoscrypt -href :: adds href attribute to all items representing cells and wires, using src attribute of origin :: When no is specified, 'dot' is used. When no and is specified, 'xdot' is used to display the schematic (POSIX systems only). The generated output files are '~/.yosys_show.dot' and '~/.yosys_show.', unless another prefix is specified using -prefix . Yosys on Windows and YosysJS use different defaults: The output is written to 'show.dot' in the current directory and new viewer is launched each time the 'show' command is executed. .. raw:: latex \end{comment} .. only:: latex :: show [options] [selection] Create a graphviz DOT file for the selected part of the design and compile it to a graphics file (usually SVG or PostScript). -viewer Run the specified command with the graphics file as parameter. On Windows, this pauses yosys until the viewer exits. Use "-viewer none" to not run any command. -format Generate a graphics file in the specified format. Use 'dot' to just generate a .dot file, or other strings such as 'svg' or 'ps' to generate files in other formats (this calls the 'dot' command). -lib Use the specified library file for determining whether cell ports are inputs or outputs. This option can be used multiple times to specify more than one library. note: in most cases it is better to load the library before calling show with 'read_verilog -lib '. it is also possible to load liberty files with 'read_liberty -lib '. -prefix generate .* instead of ~/.yosys_show.* -color assign the specified color to the specified object. The object can be a single selection wildcard expressions or a saved set of objects in the @ syntax (see "help select" for details). -label assign the specified label text to the specified object. The object can be a single selection wildcard expressions or a saved set of objects in the @ syntax (see "help select" for details). -colors Randomly assign colors to the wires. The integer argument is the seed for the random number generator. Change the seed value if the colored graph still is ambiguous. A seed of zero deactivates the coloring. -colorattr Use the specified attribute to assign colors. A unique color is assigned to each unique value of this attribute. -width annotate buses with a label indicating the width of the bus. -signed mark ports (A, B) that are declared as signed (using the [AB]_SIGNED cell parameter) with an asterisk next to the port name. -stretch stretch the graph so all inputs are on the left side and all outputs (including inout ports) are on the right side. -pause wait for the user to press enter to before returning -enum enumerate objects with internal ($-prefixed) names -long do not abbreviate objects with internal ($-prefixed) names -notitle do not add the module name as graph title to the dot file -nobg don't run viewer in the background, IE wait for the viewer tool to exit before returning -href adds href attribute to all items representing cells and wires, using src attribute of origin When no is specified, 'dot' is used. When no and is specified, 'xdot' is used to display the schematic (POSIX systems only). The generated output files are '~/.yosys_show.dot' and '~/.yosys_show.', unless another prefix is specified using -prefix . Yosys on Windows and YosysJS use different defaults: The output is written to 'show.dot' in the current directory and new viewer is launched each time the 'show' command is executed.