Skip to content

json: add -wide mode with word-level net indices #5191

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

widlarizer
Copy link
Collaborator

For well-behaved designs, Yosys passes bufnorm -nomode -buf -chain; splice -wires can be safely used to normalize the design such that we eliminate SigSigs and slicing and concatenation in SigSpecs. By default, the json backend implements slicing/concatenating SigSpecs by representing all values as concatenations of bits. If a yosys json consumer tool is free to do the aforementioned normalization, this PR allows it to use word-level net indices instead

Example cell: notice "connections"

        "$not$tests/sat/alu.v:50$10": {
          "hide_name": 1,
          "type": "$not",
          "parameters": {
            "A_SIGNED": "00000000000000000000000000000000",
            "A_WIDTH": "00000000000000000000000000001000",
            "Y_WIDTH": "00000000000000000000000000001000"
          },
          "attributes": {
            "src": "tests/sat/alu.v:50.18-50.20"
          },
          "port_directions": {
            "A": "input",
            "Y": "output"
          },
          "connections": {
            "A": 1250077441,
            "Y": -132126554
          }
        }

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

Successfully merging this pull request may close these issues.

1 participant