diff options
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 216e1532..70af6c71 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -297,7 +297,7 @@ struct NetInfo : ArchNetInfo // wire -> uphill_pip std::unordered_map<WireId, PipMap> wires; - ClockConstraint *clkconstr = nullptr; + std::unique_ptr<ClockConstraint> clkconstr; TimingConstrObjectId tmg_id; @@ -627,6 +627,9 @@ struct BaseCtx void addConstraint(std::unique_ptr<TimingConstraint> constr); void removeConstraint(IdString constrName); + + // Intended to simplify Python API + void addClock(IdString net, float freq); }; NEXTPNR_NAMESPACE_END |