Skip to content

Commit

Permalink
odb/rcx: move parse.h/cpp odb->rcx
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
  • Loading branch information
maliberty committed Feb 27, 2025
1 parent 6c51970 commit 473546f
Show file tree
Hide file tree
Showing 27 changed files with 47 additions and 168 deletions.
15 changes: 0 additions & 15 deletions src/odb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,6 @@ if (DOXYGEN_FOUND)
doxygen_add_docs(docs include)
endif()

############################################################
# Unit testing
############################################################
if(ENABLE_TESTS)
enable_testing()

add_executable(parseTest
${PROJECT_SOURCE_DIR}/test/parseTest.cpp
)

target_link_libraries(parseTest
odb
)
endif()

messages(
TARGET odb
)
1 change: 0 additions & 1 deletion src/odb/src/db/dbBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
#include "odb/dbShape.h"
#include "odb/defout.h"
#include "odb/lefout.h"
#include "odb/parse.h"
#include "utl/Logger.h"

namespace odb {
Expand Down
1 change: 0 additions & 1 deletion src/odb/src/zutil/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_library(zutil
parse.cpp
poly_decomp.cpp
util.cpp
)
Expand Down
1 change: 0 additions & 1 deletion src/odb/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ or_integration_tests(
cpp_tests
dump_netlists
dump_netlists_withfill
parser_unit_test
test_block
test_bterm
test_destroy
Expand Down
90 changes: 0 additions & 90 deletions src/odb/test/parseTest.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/odb/test/parser_unit_test.tcl

This file was deleted.

1 change: 0 additions & 1 deletion src/rcx/include/rcx/extRulesPattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "odb/array1.h"
#include "odb/odb.h"
#include "odb/parse.h"

namespace utl {
class Logger;
Expand Down
2 changes: 1 addition & 1 deletion src/rcx/include/rcx/extSpef.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "odb/db.h"
#include "odb/dbShape.h"
#include "odb/odb.h"
#include "odb/parse.h"

namespace utl {
class Logger;
Expand All @@ -53,6 +52,7 @@ using odb::uint;
using utl::Logger;

class NameTable;
class Ath__parser;

class extSpef
{
Expand Down
4 changes: 1 addition & 3 deletions src/rcx/include/rcx/extprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

#include "odb/array1.h"
#include "odb/odb.h"
#include "odb/parse.h"
#include "rcx/extParse.h"

namespace utl {
class Logger;
Expand All @@ -44,11 +42,11 @@ class Logger;
namespace rcx {

using odb::Ath__array1D;
using odb::Ath__parser;
using odb::uint;
using utl::Logger;

class extProcess;
class Ath__parser;

class extConductor
{
Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ add_library(rcx_lib
extmeasure_res_v2.cpp
extmain_v2.cpp
extmeasure_diag_opt.cpp
parse.cpp
util.cpp
)

Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "rcx/ext.h"

#include "odb/wOrder.h"
#include "parse.h"
#include "rcx/extMeasureRC.h"
#include "rcx/extPattern.h"
#include "utl/Logger.h"
Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/extBenchDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <vector>

#include "odb/db.h"
#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extSpef.h"
#include "rcx/extViaModel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/rcx/src/extCoords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#include "odb/parse.h"
#include "parse.h"
#include "rcx/extSpef.h"
#include "utl/Logger.h"
#include "wire.h"
Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/extFlow_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <map>
#include <vector>

#include "parse.h"
#include "rcx/dbUtil.h"
#include "rcx/extMeasureRC.h"
#include "rcx/extRCap.h"
Expand Down
3 changes: 3 additions & 0 deletions src/rcx/src/extModelGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//

#include "rcx/extModelGen.h"

#include "parse.h"

namespace rcx {

uint extRCModel::GenExtModel(std::list<std::string>& corner_list,
Expand Down
8 changes: 3 additions & 5 deletions src/rcx/include/rcx/extParse.h → src/rcx/src/extParse.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@
#include <cstdlib>
#include <cstring>

#include "rcx/extParse.h"
#include "parse.h"
#include "utl/Logger.h"

namespace odb {

using odb::Ath__parser;
namespace rcx {

class extParser : public Ath__parser
{
Expand All @@ -54,4 +52,4 @@ class extParser : public Ath__parser
int _dbg;
};

} // namespace odb
} // namespace rcx
1 change: 1 addition & 0 deletions src/rcx/src/extRCmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <map>
#include <vector>

#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extprocess.h"
#include "utl/Logger.h"
Expand Down
12 changes: 4 additions & 8 deletions src/rcx/src/extRCmodel_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#include "rcx/extRCap.h"
#include "rcx/extprocess.h"
#include "wire.h"

#ifdef _WIN32
#include "direct.h"
#endif

#include <map>
#include <vector>

#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extprocess.h"
#include "utl/Logger.h"
#include "wire.h"

// #define SKIP_SOLVER
namespace rcx {
Expand Down
12 changes: 4 additions & 8 deletions src/rcx/src/extRulesVia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#include "rcx/extRCap.h"
#include "rcx/extSpef.h"
#include "rcx/extprocess.h"

#ifdef _WIN32
#include "direct.h"
#endif

#include <map>
#include <vector>

#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extSpef.h"
#include "rcx/extprocess.h"
#include "utl/Logger.h"

namespace rcx {
Expand Down
2 changes: 2 additions & 0 deletions src/rcx/src/extSolverGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//

#include "parse.h"
#include "rcx/extModelGen.h"

namespace rcx {
Expand Down
2 changes: 1 addition & 1 deletion src/rcx/src/extSpef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include "name.h"
#include "odb/dbExtControl.h"
#include "odb/parse.h"
#include "parse.h"
#include "rcx/extRCap.h"
#include "utl/Logger.h"

Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/extSpefIn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <vector>

#include "name.h"
#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extSpef.h"
#include "utl/Logger.h"
Expand Down
2 changes: 1 addition & 1 deletion src/rcx/src/extprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

#include "rcx/extprocess.h"

#include "parse.h"
#include "utl/Logger.h"

namespace rcx {

using odb::extParser;
using utl::RCX;

void printInt(FILE* fp, const char* sep, const char* key, int v, bool pos)
Expand Down
1 change: 1 addition & 0 deletions src/rcx/src/netRC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <map>
#include <vector>

#include "parse.h"
#include "rcx/extRCap.h"
#include "rcx/extSpef.h"
#include "util.h"
Expand Down
Loading

0 comments on commit 473546f

Please sign in to comment.