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

When multiple modules exist, netlistsvg just uses the first one. #3

Closed
mithro opened this issue Dec 18, 2017 · 1 comment
Closed

When multiple modules exist, netlistsvg just uses the first one. #3

mithro opened this issue Dec 18, 2017 · 1 comment

Comments

@mithro
Copy link
Collaborator

mithro commented Dec 18, 2017

If you have multiple modules in your JSON file, netlistsvg uses the first one found in the file. As yosys outputs an alphabetically ordered file, this isn't probably what people want.

Instead they probably want the module which is marked as the 'top'; see below;

    "MUX4": {
      "attributes": {
        "top": 1,
        "src": "sim.v:3"
      },
      "ports": {
        "I0": {
          "direction": "input",
          "bits": [ 2 ]
        },
        "I1": {
@mithro
Copy link
Collaborator Author

mithro commented Dec 19, 2017

This should be fixed in #2

@mithro mithro closed this as completed Dec 19, 2017
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

1 participant