From d74451f4d07a601529c21eb58d6d7afd5f69ed4b Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Thu, 31 Oct 2024 22:30:14 +0100 Subject: [PATCH 1/2] doc for clone api --- src/snl/snl/kernel/SNLDesign.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/snl/snl/kernel/SNLDesign.h b/src/snl/snl/kernel/SNLDesign.h index 3bd524da..d74333bb 100644 --- a/src/snl/snl/kernel/SNLDesign.h +++ b/src/snl/snl/kernel/SNLDesign.h @@ -239,9 +239,31 @@ class SNLDesign final: public SNLObject { ///\return true if this SNLDesign is a top design. bool isTopDesign() const; + /** + * \brief Cloning interface for SNLDesign. + * \param name SNLName of the the clone. + * \return a new SNLDesign with the same interface as this SNLDesign. + */ SNLDesign* cloneInterface(const SNLName& name=SNLName()) const; + /** + * \brief Cloning interface for SNLDesign to a specific SNLLibrary. + * \param library SNLLibrary where the clone will be created. + * \param name SNLName of the the clone. + * \return a new SNLDesign with the same interface as this SNLDesign. + */ SNLDesign* cloneInterfaceToLibrary(SNLLibrary* library, const SNLName& name=SNLName()) const; + /** + * \brief Cloning for SNLDesign. + * \param name SNLName of the the clone. + * \return a new SNLDesign with the same interface and content as this SNLDesign. + */ SNLDesign* clone(const SNLName& name=SNLName()) const; + /** + * \brief Cloning for SNLDesign to a specific SNLLibrary. + * \param library SNLLibrary where the clone will be created. + * \param name SNLName of the the clone. + * \return a new SNLDesign with the same interface and content as this SNLDesign. + */ SNLDesign* cloneToLibrary(SNLLibrary* library, const SNLName& name=SNLName()) const; class CompareType { From 166a3bb18b01aa4a5b030a34af6640655cf07a37 Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Thu, 31 Oct 2024 22:42:43 +0100 Subject: [PATCH 2/2] setmodel doc --- src/snl/snl/kernel/SNLInstance.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/snl/snl/kernel/SNLInstance.h b/src/snl/snl/kernel/SNLInstance.h index 09f627c7..d77bee36 100644 --- a/src/snl/snl/kernel/SNLInstance.h +++ b/src/snl/snl/kernel/SNLInstance.h @@ -138,6 +138,10 @@ class SNLInstance final: public SNLDesignObject { SNLNet* net, SNLID::Bit netMSB, SNLID::Bit netLSB); + /** + * \brief Seting new model for this instance. + * \param newModel new model for this instance. + */ void setModel(SNLDesign* newModel); SNLID::DesignObjectID getOrderID() const { return orederID_; }