This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
262 changed files
with
140,968 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
[submodule "lef"] | ||
path = src/lef | ||
url =../lef.git | ||
[submodule "src/def"] | ||
path = src/def | ||
url = ../def.git | ||
Submodule def
deleted from
c0fe28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# DEF PARSER CMAKE Compile Settings | ||
project(DEF_PARSER | ||
LANGUAGES CXX | ||
) | ||
|
||
cmake_minimum_required(VERSION 3.1) | ||
|
||
set(DEFLIB_HOME ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
# BISON and ZLIB is required to compile DEF/LEF Parsers. | ||
find_package(BISON) | ||
find_package(ZLIB) | ||
|
||
############################################################ | ||
# Create a library for DEF | ||
############################################################ | ||
set( DEFLIB_DEF_SRC | ||
def/defiAlias.cpp | ||
def/defiAssertion.cpp | ||
def/defiBlockage.cpp | ||
def/defiComponent.cpp | ||
def/defiDebug.cpp | ||
def/defiFill.cpp | ||
def/defiFPC.cpp | ||
def/defiGroup.cpp | ||
def/defiIOTiming.cpp | ||
def/defiMisc.cpp | ||
def/defiNet.cpp | ||
def/defiNonDefault.cpp | ||
def/defiPartition.cpp | ||
def/defiPath.cpp | ||
def/defiPinCap.cpp | ||
def/defiPinProp.cpp | ||
def/defiProp.cpp | ||
def/defiPropType.cpp | ||
def/defiRegion.cpp | ||
def/defiRowTrack.cpp | ||
def/defiScanchain.cpp | ||
def/defiSite.cpp | ||
def/defiSlot.cpp | ||
def/defiTimingDisable.cpp | ||
def/defiUtil.cpp | ||
def/defiVia.cpp | ||
def/def_keywords.cpp | ||
def/defrCallbacks.cpp | ||
def/defrData.cpp | ||
def/defrReader.cpp | ||
def/defrSettings.cpp | ||
def/defwWriterCalls.cpp | ||
def/defwWriter.cpp | ||
def/def.tab.cpp | ||
) | ||
|
||
set( DEFLIB_DEFZLIB_SRC | ||
defzlib/defzlib.cpp | ||
) | ||
|
||
set (DEFLIB_HEADERS | ||
def/def.tab.h | ||
def/lex.h | ||
def/defiAlias.hpp | ||
def/defiAssertion.hpp | ||
def/defiBlockage.hpp | ||
def/defiComponent.hpp | ||
def/defiDebug.hpp | ||
def/defiDefs.hpp | ||
def/defiFill.hpp | ||
def/defiFPC.hpp | ||
def/defiGroup.hpp | ||
def/defiIOTiming.hpp | ||
def/defiKRDefs.hpp | ||
def/defiMisc.hpp | ||
def/defiNet.hpp | ||
def/defiNonDefault.hpp | ||
def/defiPartition.hpp | ||
def/defiPath.hpp | ||
def/defiPinCap.hpp | ||
def/defiPinProp.hpp | ||
def/defiProp.hpp | ||
def/defiPropType.hpp | ||
def/defiRegion.hpp | ||
def/defiRowTrack.hpp | ||
def/defiScanchain.hpp | ||
def/defiSite.hpp | ||
def/defiSlot.hpp | ||
def/defiTimingDisable.hpp | ||
def/defiUser.hpp | ||
def/defiUtil.hpp | ||
def/defiVia.hpp | ||
def/defrCallBacks.hpp | ||
def/defrData.hpp | ||
def/defrReader.hpp | ||
def/defrSettings.hpp | ||
def/defwWriterCalls.hpp | ||
def/defwWriter.hpp | ||
|
||
defzlib/defzlib.hpp | ||
) | ||
|
||
|
||
# BISON dependencies | ||
add_custom_command( | ||
OUTPUT ${DEFLIB_HOME}/def/def.tab.cpp | ||
COMMAND ${BISON_EXECUTABLE} -v -pdefyy -d ${DEFLIB_HOME}/def/def.y | ||
COMMAND mv def.tab.h ${DEFLIB_HOME}/def/def.tab.h | ||
COMMAND mv def.tab.c ${DEFLIB_HOME}/def/def.tab.cpp | ||
) | ||
add_custom_target(DefBisonTarget ALL DEPENDS def/def.tab.cpp) | ||
|
||
|
||
add_library( def ${DEFLIB_DEF_SRC} ) | ||
add_library( defzlib ${DEFLIB_DEFZLIB_SRC} ) | ||
|
||
set_target_properties( def | ||
PROPERTIES | ||
ARCHIVE_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
LIBRARY_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
RUNTIME_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
# python regression requirement (gag me) -cherry | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
set_target_properties( defzlib | ||
PROPERTIES | ||
ARCHIVE_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
LIBRARY_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
RUNTIME_OUTPUT_DIRECTORY ${DEFLIB_HOME}/lib | ||
# python regression requirement (gag me) -cherry | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
# include directory settings | ||
target_include_directories( def | ||
PUBLIC | ||
def | ||
) | ||
|
||
target_include_directories( defzlib | ||
PUBLIC | ||
def | ||
defzlib | ||
) | ||
|
||
add_dependencies( def DefBisonTarget ) | ||
add_dependencies( defzlib def ) | ||
|
||
###################################################### | ||
# install | ||
|
||
install(FILES ${DEFLIB_HEADERS} DESTINATION include) | ||
install(TARGETS def defzlib DESTINATION lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2012 - 2017, Cadence Design Systems | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Si2 DEF parser 5.8-p027 with CMake support | ||
|
||
See lefdefReadme.txt |
Oops, something went wrong.