mv liberty swig files to /liberty
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
9e53ca184d
commit
2f9a9016f0
|
|
@ -234,7 +234,6 @@ set(STA_TCL_FILES
|
||||||
tcl/CmdArgs.tcl
|
tcl/CmdArgs.tcl
|
||||||
tcl/CmdUtil.tcl
|
tcl/CmdUtil.tcl
|
||||||
tcl/Graph.tcl
|
tcl/Graph.tcl
|
||||||
tcl/Liberty.tcl
|
|
||||||
tcl/Link.tcl
|
tcl/Link.tcl
|
||||||
tcl/Network.tcl
|
tcl/Network.tcl
|
||||||
tcl/NetworkEdit.tcl
|
tcl/NetworkEdit.tcl
|
||||||
|
|
@ -245,6 +244,7 @@ set(STA_TCL_FILES
|
||||||
tcl/Splash.tcl
|
tcl/Splash.tcl
|
||||||
tcl/Variables.tcl
|
tcl/Variables.tcl
|
||||||
dcalc/DelayCalc.tcl
|
dcalc/DelayCalc.tcl
|
||||||
|
liberty/Liberty.tcl
|
||||||
parasitics/Parasitics.tcl
|
parasitics/Parasitics.tcl
|
||||||
power/Power.tcl
|
power/Power.tcl
|
||||||
sdf/Sdf.tcl
|
sdf/Sdf.tcl
|
||||||
|
|
@ -423,6 +423,7 @@ set_property(SOURCE ${STA_SWIG_FILE}
|
||||||
-I${STA_HOME}/tcl
|
-I${STA_HOME}/tcl
|
||||||
-I${STA_HOME}/sdf
|
-I${STA_HOME}/sdf
|
||||||
-I${STA_HOME}/dcalc
|
-I${STA_HOME}/dcalc
|
||||||
|
-I${STA_HOME}/liberty
|
||||||
-I${STA_HOME}/parasitics
|
-I${STA_HOME}/parasitics
|
||||||
-I${STA_HOME}/power
|
-I${STA_HOME}/power
|
||||||
-I${STA_HOME}/spice
|
-I${STA_HOME}/spice
|
||||||
|
|
@ -431,6 +432,7 @@ set_property(SOURCE ${STA_SWIG_FILE}
|
||||||
|
|
||||||
set(SWIG_FILES
|
set(SWIG_FILES
|
||||||
${STA_HOME}/dcalc/DelayCalc.i
|
${STA_HOME}/dcalc/DelayCalc.i
|
||||||
|
${STA_HOME}/liberty/Liberty.i
|
||||||
${STA_HOME}/parasitics/Parasitics.i
|
${STA_HOME}/parasitics/Parasitics.i
|
||||||
${STA_HOME}/power/Power.i
|
${STA_HOME}/power/Power.i
|
||||||
${STA_HOME}/sdf/Sdf.i
|
${STA_HOME}/sdf/Sdf.i
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
%include "Exception.i"
|
%include "Exception.i"
|
||||||
%include "StaTclTypes.i"
|
%include "StaTclTypes.i"
|
||||||
%include "StaTcl.i"
|
%include "StaTcl.i"
|
||||||
|
%include "Liberty.i"
|
||||||
%include "Verilog.i"
|
%include "Verilog.i"
|
||||||
%include "NetworkEdit.i"
|
%include "NetworkEdit.i"
|
||||||
%include "Sdf.i"
|
%include "Sdf.i"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,48 @@
|
||||||
|
%module liberty
|
||||||
|
|
||||||
|
%{
|
||||||
|
|
||||||
|
// OpenSTA, Static Timing Analyzer
|
||||||
|
// Copyright (c) 2024, Parallax Software, Inc.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
#include "Sta.hh"
|
||||||
|
#include "LibertyWriter.hh"
|
||||||
|
|
||||||
|
using namespace sta;
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
|
||||||
|
bool
|
||||||
|
read_liberty_cmd(char *filename,
|
||||||
|
Corner *corner,
|
||||||
|
const MinMaxAll *min_max,
|
||||||
|
bool infer_latches)
|
||||||
|
{
|
||||||
|
Sta *sta = Sta::sta();
|
||||||
|
LibertyLibrary *lib = sta->readLiberty(filename, corner, min_max, infer_latches);
|
||||||
|
return (lib != nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
write_liberty_cmd(LibertyLibrary *library,
|
||||||
|
char *filename)
|
||||||
|
{
|
||||||
|
writeLiberty(library, filename, Sta::sta());
|
||||||
|
}
|
||||||
|
|
||||||
|
%} // inline
|
||||||
26
tcl/StaTcl.i
26
tcl/StaTcl.i
|
|
@ -49,7 +49,6 @@
|
||||||
#include "TimingArc.hh"
|
#include "TimingArc.hh"
|
||||||
#include "TableModel.hh"
|
#include "TableModel.hh"
|
||||||
#include "Liberty.hh"
|
#include "Liberty.hh"
|
||||||
#include "LibertyWriter.hh"
|
|
||||||
#include "EquivCells.hh"
|
#include "EquivCells.hh"
|
||||||
#include "Wireload.hh"
|
#include "Wireload.hh"
|
||||||
#include "PortDirection.hh"
|
#include "PortDirection.hh"
|
||||||
|
|
@ -707,31 +706,6 @@ set_current_instance(Instance *inst)
|
||||||
Sta::sta()->setCurrentInstance(inst);
|
Sta::sta()->setCurrentInstance(inst);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
read_liberty_cmd(char *filename,
|
|
||||||
Corner *corner,
|
|
||||||
const MinMaxAll *min_max,
|
|
||||||
bool infer_latches)
|
|
||||||
{
|
|
||||||
LibertyLibrary *lib = Sta::sta()->readLiberty(filename, corner, min_max,
|
|
||||||
infer_latches);
|
|
||||||
return (lib != nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
|
||||||
set_min_library_cmd(char *min_filename,
|
|
||||||
char *max_filename)
|
|
||||||
{
|
|
||||||
return Sta::sta()->setMinLibrary(min_filename, max_filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
write_liberty_cmd(LibertyLibrary *library,
|
|
||||||
char *filename)
|
|
||||||
{
|
|
||||||
writeLiberty(library, filename, Sta::sta());
|
|
||||||
}
|
|
||||||
|
|
||||||
Library *
|
Library *
|
||||||
find_library(const char *name)
|
find_library(const char *name)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue