self.value = value
class _CR:
- def __init__(self, name_inst, domain="sys"):
+ def __init__(self, name_inst, domain="sys", invert=False):
self.name_inst = name_inst
self.domain = domain
+ self.invert = invert
class ClockPort(_CR):
pass
class ResetPort(_CR):
elif isinstance(p, Instance.ClockPort):
name_inst = p.name_inst
name_design = ns.get_name(clock_domains[p.domain].clk)
+ if p.invert:
+ name_design = "~" + name_design
elif isinstance(p, Instance.ResetPort):
name_inst = p.name_inst
name_design = ns.get_name(clock_domains[p.domain].rst)