Пример #1
0
 def __init__(self, cond, initial=False):
     self.cond = wrap(cond)
     self.initial = initial
Пример #2
0
 def _fix_instance(self, instance):
     if instance.of == "PLLE2_ADV":
         for item in instance.items:
             if isinstance(item, Instance.Parameter) and re.fullmatch("CLKOUT[0-9]_(PHASE|DUTY_CYCLE)", item.name):
                 item.value = wrap(math.floor(_unwrap(item.value) * 1000))