Skip to content

Commit d46fd63

Browse files
committed
Merge branch 'master' of github.com:verilog-to-routing/vtr-verilog-to-routing into merge-upstream
Signed-off-by: Alessandro Comodi <[email protected]> Conflicts that have been solved are in the following files: .travis/script.sh libs/libarchfpga/src/cad_types.h libs/libarchfpga/src/physical_types.h vpr/CMakeLists.txt vpr/src/base/SetupVPR.cpp vpr/src/base/read_options.cpp vpr/src/base/vpr_types.h vpr/src/pack/cluster.cpp vpr/src/pack/cluster_router.cpp vpr/src/pack/pack.cpp vpr/src/pack/prepack.cpp vtr_flow/scripts/run_vtr_flow.pl
2 parents 984125b + f6d5c7e commit d46fd63

File tree

952 files changed

+6544
-409828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

952 files changed

+6544
-409828
lines changed

.travis/script.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,15 @@ start_section "vtr.test.3" "${GREEN}Testing..${NC} ${CYAN}vtr_reg_valgrind_small
4444
end_section "vtr.test.3"
4545

4646
$SPACER
47+
48+
start_section "vtr.test.4" "${GREEN}Testing..${NC} ${CYAN}odin_reg_micro${NC}"
49+
./run_reg_test.pl odin_reg_micro
50+
end_section "vtr.test.4"
51+
52+
$SPACER
53+
54+
start_section "vtr.test.5" "${GREEN}Testing..${NC} ${CYAN}odin_reg_operators${NC}"
55+
./run_reg_test.pl odin_reg_operators
56+
end_section "vtr.test.5"
57+
58+
$SPACER

CMakeLists.txt

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.3.0)
22

33
project("VTR")
44

@@ -24,7 +24,6 @@ option(VTR_ENABLE_DEBUG_LOGGING "Enable debug logging" OFF)
2424

2525
option(WITH_BLIFEXPLORER "Enable build with blifexplorer" OFF)
2626
option(WITH_LIBRTLNUMBER "Enable build with librtlnumber" OFF)
27-
option(WITH_OLD_ABC "Enable build with old abc" OFF)
2827
option(ODIN_DEBUG "Enable building oding with extra debug flags" OFF)
2928

3029
set(VTR_VERSION_MAJOR 8)
@@ -60,12 +59,9 @@ include(CheckCXXCompilerFlag)
6059
#
6160
# We require c++14 support
6261
#
63-
CHECK_CXX_COMPILER_FLAG("-std=c++14" CXX_COMPILER_SUPPORTS_CXX14_FLAG)
64-
if(CXX_COMPILER_SUPPORTS_CXX14_FLAG)
65-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
66-
else()
67-
message(FATAL_ERROR "Could not determine C++14 support for compiler ${CMAKE_CXX_COMPILER}. C++14 support is required.")
68-
endif()
62+
set(CMAKE_CXX_STANDARD 14)
63+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
64+
set(CMAKE_CXX_EXTENSIONS OFF) #No compiler specific extensions
6965

7066
#
7167
# Warning flags
@@ -262,9 +258,6 @@ add_subdirectory(utils)
262258
if(WITH_BLIFEXPLORER)
263259
add_subdirectory(blifexplorer)
264260
endif()
265-
if(WITH_OLD_ABC)
266-
add_subdirectory(abc_with_bb_support)
267-
endif()
268261

269262
#Add extra compilation flags to suppress warnings from some libraries/tools
270263
# Note that target_compile_options() *appends* to the current compilation options of
@@ -276,20 +269,10 @@ if(CXX_COMPILER_SUPPORTS_-w)
276269
target_compile_options(libabc PRIVATE "-w")
277270
target_compile_options(abc PRIVATE "-w")
278271
endif()
279-
if(CXX_COMPILER_SUPPORTS_-w)
280-
if(WITH_OLD_ABC)
281-
target_compile_options(liboldabc PRIVATE "-w")
282-
target_compile_options(oldabc PRIVATE "-w")
283-
endif()
284-
endif()
285272

286273
#Some ABC headers generate warnings, treat them as system headers to suppress warnings
287274
get_property(ABC_INCLUDE_DIRS TARGET libabc PROPERTY INCLUDE_DIRECTORIES)
288275
target_include_directories(libabc SYSTEM INTERFACE ${ABC_INCLUDE_DIRS})
289-
if(WITH_OLD_ABC)
290-
get_property(OLD_ABC_INCLUDE_DIRS TARGET liboldabc PROPERTY INCLUDE_DIRECTORIES)
291-
target_include_directories(liboldabc SYSTEM INTERFACE ${OLD_ABC_INCLUDE_DIRS})
292-
endif()
293276

294277
#PugiXml has some deliberate switch fallthrough cases (as indicated by comments), but they
295278
#are tagged as warnings with g++-7 (the comments don't match g++-7's suppression regexes).
@@ -359,13 +342,6 @@ set_target_properties(libabc abc
359342
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc"
360343
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc"
361344
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc")
362-
if(WITH_OLD_ABC)
363-
set_target_properties(liboldabc oldabc
364-
PROPERTIES
365-
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc_with_bb_support"
366-
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc_with_bb_support"
367-
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/abc_with_bb_support")
368-
endif()
369345
set_target_properties(libvpr vpr
370346
PROPERTIES
371347
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/vpr"

ODIN_II/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
regression_test/runs
22
OUTPUT/*
33
temp
4+
regression_test/latest

ODIN_II/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ else
1212
CMAKE_GEN_ARGS := -G'Unix Makefiles'
1313
endif
1414

15+
CMAKE_ARGS := -DVPR_IPO_BUILD=off
16+
1517
#Default build type
1618
# Possible values:
1719
# release
@@ -21,29 +23,33 @@ MAKEFLAGS := -s
2123

2224
BUILD_DIR=../build
2325

24-
.PHONY: help build debug
26+
.PHONY: help build debug test
2527

2628
help:
2729
@echo -e "\n\
2830
The Following three options are available\n\n\
2931
build build using the VTR_ROOT makefile \n\
3032
debug build using the VTR_ROOT makefile with debug flags and extra warning flags for ODIN only\n\
3133
clean remove the build file for ODIN only\n\
34+
test run the complete battery of test before commiting changes or to assert functionnalityn\
3235
"
3336

3437
init:
3538
mkdir -p $(BUILD_DIR)
3639

3740
build: clean init
3841
cd $(BUILD_DIR);\
39-
cmake $(CMAKE_GEN_ARGS) .. &&\
42+
cmake $(CMAKE_GEN_ARGS) $(CMAKE_ARGS) .. &&\
4043
$(BUILDER)
4144

4245
debug: clean init
4346
cd $(BUILD_DIR);\
44-
cmake $(CMAKE_GEN_ARGS) -DODIN_DEBUG=on .. &&\
47+
cmake $(CMAKE_GEN_ARGS) $(CMAKE_ARGS) -DODIN_DEBUG=on .. &&\
4548
$(BUILDER)
4649

4750
clean:
4851
$(RM) -Rf $(BUILD_DIR)/CMakeCache.txt
4952
$(RM) -Rf $(BUILD_DIR)/ODIN_II
53+
54+
test:
55+
./verify_odin.sh --test pre_commit --nb_of_process $(( $(nproc --all) + 1 )) --limit_ressource

0 commit comments

Comments
 (0)