Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Correctly handle arrays #1

Open
MarekPikula opened this issue Oct 6, 2022 · 0 comments
Open

Correctly handle arrays #1

MarekPikula opened this issue Oct 6, 2022 · 0 comments

Comments

@MarekPikula
Copy link
Owner

For example fifoRfile fifo_port[8] @0x100 generates following code:

    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 256, 256, 256, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 272, 256, 272, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 288, 256, 288, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 304, 256, 304, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 320, 256, 320, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 336, 256, 336, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 352, 256, 352, 12, 128))
    fifo_port = FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 368, 256, 368, 12, 128))

and it should be:

    fifo_port = [
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 256, 256, 256, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 272, 256, 272, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 288, 256, 288, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 304, 256, 304, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 320, 256, 320, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 336, 256, 336, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 352, 256, 352, 12, 128)),
        FifoRfileRegfile(specification=spec.RegfileNodeSpec("fifo_port", "fifoRfile", "fifoRfile", False, 256, 368, 256, 368, 12, 128)),
    ]
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant