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

define mem ports domain from signal keyword, not from assign attribute #169

Open
github-4o opened this issue Mar 24, 2021 · 0 comments
Open

Comments

@github-4o
Copy link
Contributor

github-4o commented Mar 24, 2021

from nyanMigen import nyanify


@nyanify(generics_file="config.json")
class ram:
    def elaborate(self, platform):
        wr_en = Signal()
        wr_addr = Signal(aw)
        wr_data = Signal(dw)
        rd_addr = Signal(aw)
        rd_data = Signal(dw)                                                                                                                     
        Memory(width = dw, depth = 2**aw, we = wr_en, wa = wr_addr, wd = sync.wr_data, ra = rd_addr, rd = rd_data)

->

from nyanMigen import nyanify


@nyanify(generics_file="config.json")
class ram:
    def elaborate(self, platform):
        wr_en = Signal()
        wr_addr = Signal(aw)
        wr_data = Signal(dw, domain = 'sync')
        rd_addr = Signal(aw)
        rd_data = Signal(dw)                                                                                                                     
        Memory(width = dw, depth = 2**aw, we = wr_en, wa = wr_addr, wd = wr_data, ra = rd_addr, rd = rd_data)
@github-4o github-4o modified the milestones: v2.0, FIX THIS IMMEDIATELY Mar 24, 2021
@github-4o github-4o linked a pull request Mar 24, 2021 that will close this issue
@github-4o github-4o removed a link to a pull request Mar 24, 2021
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