Skip to content

Figure out how to use netlistsvg with single whitebox modules #48

@mithro

Description

@mithro
Collaborator

When there is only a single whitebox module inside the verilog, netlistsvg renders the output as just a few random port flags.

For example the following verilog is rendered like follows;

/*
 * `input wire a` should be detected as a clock because of the `(* CLOCK *)`
 * attribute.
 */
(* whitebox *)
module BLOCK(a, b, o);
	(* CLOCK *)
	input wire a;
	input wire b;
	output wire o;
endmodule

Screenshot from 2020-04-16 10-44-43

This is probably the right rendering if the output is specified as being :flatten: -- but for non-:flatten: the whitebox should be treated like a blackbox.

This is probably an issue + test needed in https://github.com/SymbiFlow/sphinxcontrib-verilog-diagrams

Activity

daniellimws

daniellimws commented on Apr 17, 2020

@daniellimws
Collaborator

symbolator already renders the module as if it is a blackbox. So, shall we just omit the netlistsvg diagram, and only show the symbolator diagram for such modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @mithro@daniellimws

      Issue actions

        Figure out how to use netlistsvg with single whitebox modules · Issue #48 · chipsalliance/f4pga-v2x