mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-08-22 14:06:56 +02:00
@@ -234,7 +234,6 @@ set(STA_SOURCE
|
|||||||
util/RiseFallMinMaxDelay.cc
|
util/RiseFallMinMaxDelay.cc
|
||||||
util/RiseFallValues.cc
|
util/RiseFallValues.cc
|
||||||
util/Stats.cc
|
util/Stats.cc
|
||||||
util/StringSet.cc
|
|
||||||
util/StringUtil.cc
|
util/StringUtil.cc
|
||||||
util/Transition.cc
|
util/Transition.cc
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "MinMax.hh"
|
#include "MinMax.hh"
|
||||||
#include "StaState.hh"
|
#include "StaState.hh"
|
||||||
#include "NetworkClass.hh"
|
#include "NetworkClass.hh"
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "VectorMap.hh"
|
#include "VectorMap.hh"
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "MinMaxValues.hh"
|
#include "MinMaxValues.hh"
|
||||||
#include "Delay.hh"
|
#include "Delay.hh"
|
||||||
#include "NetworkClass.hh"
|
#include "NetworkClass.hh"
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
// OpenSTA, Static Timing Analyzer
|
|
||||||
// Copyright (c) 2025, 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/>.
|
|
||||||
//
|
|
||||||
// The origin of this software must not be misrepresented; you must not
|
|
||||||
// claim that you wrote the original software.
|
|
||||||
//
|
|
||||||
// Altered source versions must be plainly marked as such, and must not be
|
|
||||||
// misrepresented as being the original software.
|
|
||||||
//
|
|
||||||
// This notice may not be removed or altered from any source distribution.
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <set>
|
|
||||||
|
|
||||||
#include "StringUtil.hh"
|
|
||||||
|
|
||||||
namespace sta {
|
|
||||||
|
|
||||||
using StringSet = std::set<const char*, CharPtrLess>;
|
|
||||||
using StdStringSet = std::set<std::string>;
|
|
||||||
|
|
||||||
void
|
|
||||||
deleteContents(StringSet *strings);
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
@@ -28,12 +28,14 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <set>
|
||||||
|
|
||||||
#include "Machine.hh" // __attribute__
|
#include "Machine.hh" // __attribute__
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
||||||
using StdStringSeq = std::vector<std::string>;
|
using StdStringSeq = std::vector<std::string>;
|
||||||
|
using StdStringSet = std::set<std::string>;
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
stringEq(const char *str1,
|
stringEq(const char *str1,
|
||||||
|
|||||||
@@ -22,20 +22,17 @@
|
|||||||
//
|
//
|
||||||
// This notice may not be removed or altered from any source distribution.
|
// This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
#include "ArcDelayCalc.hh"
|
|
||||||
#include "StringSet.hh"
|
|
||||||
|
|
||||||
#include <tcl.h>
|
#include <tcl.h>
|
||||||
|
|
||||||
|
#include "ArcDelayCalc.hh"
|
||||||
|
#include "StringUtil.hh"
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
||||||
#if TCL_MAJOR_VERSION < 9
|
#if TCL_MAJOR_VERSION < 9
|
||||||
typedef int Tcl_Size;
|
typedef int Tcl_Size;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
StringSet *
|
|
||||||
tclListSetConstChar(Tcl_Obj *const source,
|
|
||||||
Tcl_Interp *interp);
|
|
||||||
StdStringSeq
|
StdStringSeq
|
||||||
tclListSeqStdString(Tcl_Obj *const source,
|
tclListSeqStdString(Tcl_Obj *const source,
|
||||||
Tcl_Interp *interp);
|
Tcl_Interp *interp);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "StringSet.hh"
|
#include "StringUtil.hh"
|
||||||
#include "NetworkClass.hh"
|
#include "NetworkClass.hh"
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include "Debug.hh"
|
#include "Debug.hh"
|
||||||
#include "Error.hh"
|
#include "Error.hh"
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "PatternMatch.hh"
|
#include "PatternMatch.hh"
|
||||||
#include "Units.hh"
|
#include "Units.hh"
|
||||||
#include "Transition.hh"
|
#include "Transition.hh"
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "CircuitSim.hh"
|
#include "CircuitSim.hh"
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "StaState.hh"
|
#include "StaState.hh"
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
#include "Liberty.hh"
|
#include "Liberty.hh"
|
||||||
#include "GraphClass.hh"
|
#include "GraphClass.hh"
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
#include "Machine.hh"
|
#include "Machine.hh"
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
#include "StringSet.hh"
|
|
||||||
#include "PatternMatch.hh"
|
#include "PatternMatch.hh"
|
||||||
#include "Network.hh"
|
#include "Network.hh"
|
||||||
#include "Liberty.hh"
|
#include "Liberty.hh"
|
||||||
@@ -1227,10 +1226,6 @@ using namespace sta;
|
|||||||
Tcl_SetObjResult(interp,Tcl_NewDoubleObj(delayAsFloat($1)));
|
Tcl_SetObjResult(interp,Tcl_NewDoubleObj(delayAsFloat($1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(in) StringSet* {
|
|
||||||
$1 = tclListSetConstChar($input, interp);
|
|
||||||
}
|
|
||||||
|
|
||||||
%typemap(out) Mode* {
|
%typemap(out) Mode* {
|
||||||
const Mode *mode = $1;
|
const Mode *mode = $1;
|
||||||
if (mode)
|
if (mode)
|
||||||
|
|||||||
@@ -30,26 +30,6 @@
|
|||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
||||||
StringSet *
|
|
||||||
tclListSetConstChar(Tcl_Obj *const source,
|
|
||||||
Tcl_Interp *interp)
|
|
||||||
{
|
|
||||||
Tcl_Size argc;
|
|
||||||
Tcl_Obj **argv;
|
|
||||||
|
|
||||||
if (Tcl_ListObjGetElements(interp, source, &argc, &argv) == TCL_OK) {
|
|
||||||
StringSet *set = new StringSet;
|
|
||||||
for (int i = 0; i < argc; i++) {
|
|
||||||
int length;
|
|
||||||
const char *str = Tcl_GetStringFromObj(argv[i], &length);
|
|
||||||
set->insert(str);
|
|
||||||
}
|
|
||||||
return set;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
StdStringSeq
|
StdStringSeq
|
||||||
tclListSeqStdString(Tcl_Obj *const source,
|
tclListSeqStdString(Tcl_Obj *const source,
|
||||||
Tcl_Interp *interp)
|
Tcl_Interp *interp)
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
// OpenSTA, Static Timing Analyzer
|
|
||||||
// Copyright (c) 2025, 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/>.
|
|
||||||
//
|
|
||||||
// The origin of this software must not be misrepresented; you must not
|
|
||||||
// claim that you wrote the original software.
|
|
||||||
//
|
|
||||||
// Altered source versions must be plainly marked as such, and must not be
|
|
||||||
// misrepresented as being the original software.
|
|
||||||
//
|
|
||||||
// This notice may not be removed or altered from any source distribution.
|
|
||||||
|
|
||||||
#include "StringSet.hh"
|
|
||||||
|
|
||||||
namespace sta {
|
|
||||||
|
|
||||||
void
|
|
||||||
deleteContents(StringSet *strings)
|
|
||||||
{
|
|
||||||
for (const char *string : *strings)
|
|
||||||
stringDelete(string);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
Reference in New Issue
Block a user