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

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

Open
mithro opened this issue Apr 16, 2020 · 1 comment
Open

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

mithro opened this issue Apr 16, 2020 · 1 comment
Assignees

Comments

@mithro
Copy link
Collaborator

mithro commented Apr 16, 2020

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

@daniellimws
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants