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

Pin direction and XDR can be set even if there is not matching subsignal #462

Open
jeanthom opened this issue Aug 3, 2020 · 1 comment

Comments

@jeanthom
Copy link
Contributor

jeanthom commented Aug 3, 2020

from nmigen import *
from nmigen_boards.ecpix5 import *

class Top(Elaboratable):
	def elaborate(self, platform):
		m = Module()

		ddr3 = platform.request("ddr3", 0, dir={"arrosoir":"-"},
			xdr={"chaise":4})

		return m

if __name__ == "__main__":
	top = Top()
	ECPIX585Platform().build(top)

The above code should at least trigger a warning.

@whitequark
Copy link
Member

IIRC it is done this way because some resources have optional pins, and otherwise you wouldn't have any way to request XDR on a pin if it exists, skipping it otherwise. I agree that this is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants