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

Put conversion in SdramCntl.py #8

Open
gw0 opened this issue Sep 24, 2015 · 0 comments
Open

Put conversion in SdramCntl.py #8

gw0 opened this issue Sep 24, 2015 · 0 comments

Comments

@gw0
Copy link

gw0 commented Sep 24, 2015

In my opinion it would make sense to put the conversion to VHDL and Verilog from Conversion.py in relevant files, to make it obvious what it converts.

In this case at the bottom of SdramCntl.py something like:

if __name__ == '__main__':
    # signals
    clk_i = Signal(bool(0))
    rst_i = ResetSignal(0,active=1,async=True)

    # modules
    clkDriver_Inst      = clkDriver(clk_i)
    sd_intf_Inst        = sd_intf()
    host_intf_Inst      = host_intf()

    sdramCntl_Inst = MySdramCntl(clk_i, host_intf_Inst, sd_intf_Inst)

    # convert to Verilog and VHDL
    toVerilog(MySdramCntl, clk_i, host_intf_Inst, sd_intf_Inst)
    toVHDL(MySdramCntl, clk_i, host_intf_Inst, sd_intf_Inst)
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