From c4e3c662656ccef3d705c521fbe4a298d639259f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 10 Jul 2018 12:37:32 +0800 Subject: [PATCH] grabber: add clock constraint --- artiq/gateware/eem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/eem.py b/artiq/gateware/eem.py index 1f02382a1..2de10a145 100644 --- a/artiq/gateware/eem.py +++ b/artiq/gateware/eem.py @@ -409,8 +409,9 @@ class Grabber(_EEM): def add_std(cls, target, eem, eem_aux=None, ttl_out_cls=None): cls.add_extension(target, eem, eem_aux) - phy = grabber.Grabber(target.platform.request( - "grabber{}_video".format(eem))) + pads = target.platform.request("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)) setattr(target.submodules, name, phy) target.grabber_csr_group.append(name)