forked from M-Labs/artiq
grabber: add clock constraint
This commit is contained in:
parent
d51294649e
commit
c4e3c66265
|
@ -409,8 +409,9 @@ class Grabber(_EEM):
|
||||||
def add_std(cls, target, eem, eem_aux=None, ttl_out_cls=None):
|
def add_std(cls, target, eem, eem_aux=None, ttl_out_cls=None):
|
||||||
cls.add_extension(target, eem, eem_aux)
|
cls.add_extension(target, eem, eem_aux)
|
||||||
|
|
||||||
phy = grabber.Grabber(target.platform.request(
|
pads = target.platform.request("grabber{}_video".format(eem))
|
||||||
"grabber{}_video".format(eem)))
|
target.platform.add_period_constraint(pads.clk_p, 14.71)
|
||||||
|
phy = grabber.Grabber(pads)
|
||||||
name = "grabber{}".format(len(target.grabber_csr_group))
|
name = "grabber{}".format(len(target.grabber_csr_group))
|
||||||
setattr(target.submodules, name, phy)
|
setattr(target.submodules, name, phy)
|
||||||
target.grabber_csr_group.append(name)
|
target.grabber_csr_group.append(name)
|
||||||
|
|
Loading…
Reference in New Issue