Skip to content

Commit 9cf3775

Browse files
committed
Merge branch 'master' of https://github.com/verilog-to-routing/vtr-verilog-to-routing into add_tileable_rr_graph
2 parents bc7ffcd + 2f0f980 commit 9cf3775

File tree

5,004 files changed

+475
-1668177
lines changed

Some content is hidden

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

5,004 files changed

+475
-1668177
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "libs/EXTERNAL/libezgl"]
1111
path = libs/EXTERNAL/libezgl
1212
url = https://github.com/verilog-to-routing/ezgl.git
13+
[submodule "libs/EXTERNAL/yosys"]
14+
path = libs/EXTERNAL/yosys
15+
url = https://github.com/YosysHQ/yosys.git

CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -413,24 +413,6 @@ if(${WITH_ABC})
413413
add_subdirectory(abc)
414414
endif()
415415

416-
if(${WITH_PARMYS}) # define cmake params to compile Yosys
417-
add_definitions("-D_YOSYS_")
418-
419-
set(MAKE_PROGRAM "$(MAKE)")
420-
if(${CMAKE_GENERATOR} STREQUAL "Ninja")
421-
set(MAKE_PROGRAM "make")
422-
endif()
423-
424-
# Commented out since a make file should not call another make command with
425-
# threads. It should pass this information from the parent automatically.
426-
# if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}")
427-
# set(CUSTOM_BUILD_PARALLEL_LEVEL 16)
428-
# else()
429-
# set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}")
430-
# endif()
431-
add_subdirectory(yosys)
432-
endif()
433-
434416
add_subdirectory(libs) #libs/CMakeLists.txt handles adding warnings flags to non-external libraries
435417

436418
if(${WITH_PARMYS})

dev/subtree_config.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@
4949
internal_path="vtr_flow/benchmarks/system_verilog/fx68k"
5050
external_url="https://github.com/ijor/fx68k.git"
5151
default_external_ref="master"/>
52-
<subtree
53-
name="yosys"
54-
internal_path="yosys"
55-
external_url="https://github.com/YosysHQ/yosys.git"
56-
default_external_ref="yosys-0.32"/>
5752
<subtree
5853
name="parmys"
5954
internal_path="parmys"

libs/EXTERNAL/CMakeLists.txt

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,47 @@ endif ()
3838
# The VTR root CMakeFile initializes the WITH_PARMYS
3939
if (${WITH_PARMYS})
4040

41+
cmake_minimum_required(VERSION 3.16)
42+
43+
#project(yosys)
44+
45+
# Create a target out of the library compilation result
46+
SET(YOSYS_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/yosys)
47+
SET(YOSYS_BUILD_DIR ${CMAKE_BINARY_DIR}/bin/yosys)
48+
49+
add_definitions("-D_YOSYS_")
50+
set(MAKE_PROGRAM "$(MAKE)")
51+
set(CURRENT_CPPFLAGS "$(CPPFLAGS)-w")
52+
if(${CMAKE_GENERATOR} STREQUAL "Ninja")
53+
set(CURRENT_CPPFLAGS "-w")
54+
endif()
55+
56+
#Initialize yosys submodules
57+
execute_process(
58+
COMMAND git submodule update --init
59+
WORKING_DIRECTORY ${YOSYS_SRC_DIR}
60+
)
61+
execute_process(
62+
COMMAND ${GIT_EXECUTABLE} submodule foreach --recursive git\ submodule\ update\ --init
63+
WORKING_DIRECTORY ${YOSYS_SRC_DIR}
64+
)
65+
66+
# how to build the result of the library
67+
add_custom_command(OUTPUT ${YOSYS_BUILD_DIR}
68+
COMMAND ${MAKE_PROGRAM} -C ${YOSYS_SRC_DIR}
69+
ENABLE_ABC=0
70+
PREFIX=${CMAKE_BINARY_DIR}
71+
72+
COMMAND ${MAKE_PROGRAM}
73+
-C ${YOSYS_SRC_DIR}
74+
install
75+
ENABLE_ABC=0
76+
PREFIX=${CMAKE_BINARY_DIR}
77+
78+
WORKING_DIRECTORY ${YOSYS_SRC_DIR})
79+
80+
add_custom_target(yosys ALL DEPENDS ${YOSYS_BUILD_DIR})
81+
4182
if (${SYNLIG_SYSTEMVERILOG})
4283

4384
set(SURELOG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Surelog)
@@ -175,4 +216,4 @@ if (VPR_USE_SERVER)
175216
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/sockpp/include>
176217
$<INSTALL_INTERFACE:include>
177218
)
178-
endif()
219+
endif()

libs/EXTERNAL/yosys

Submodule yosys added at 53c22ab

parmys/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ add_library(parmys SHARED
1919
)
2020
target_include_directories(parmys PUBLIC ${LIB_INCLUDE_DIRS})
2121
target_include_directories(parmys PUBLIC ${LIB_INCLUDE_DIRS_O})
22-
target_include_directories(parmys PUBLIC ${VTR_SOURCE_DIR}/yosys/share/include)
22+
target_include_directories(parmys PUBLIC ${VTR_SOURCE_DIR}/libs/EXTERNAL/yosys/share/include)
2323

2424
add_definitions("-D_YOSYS_")
2525
add_dependencies(parmys yosys)

parmys/regression_test/benchmark/task/freecores/synthesis_result.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
"Average Path": 3,
484484
"Estimated LUTs": 4777,
485485
"Total Node": 1957,
486-
"Wires": 5594,
486+
"Wires": 5592,
487487
"Wire Bits": 10106,
488488
"Public Wires": 240,
489489
"Public Wire Bits": 240,

parmys/regression_test/benchmark/task/keywords/and/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@
9595
"test_name": "and/replicate_and_int_wide/no_arch",
9696
"exit": 1,
9797
"errors": [
98-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
98+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
9999
]
100100
},
101101
"and/replicate_and_ultra_wide/no_arch": {
102102
"test_name": "and/replicate_and_ultra_wide/no_arch",
103103
"exit": 1,
104104
"errors": [
105-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
105+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
106106
]
107107
},
108108
"and/replicate_and_wide/no_arch": {
109109
"test_name": "and/replicate_and_wide/no_arch",
110110
"exit": 1,
111111
"errors": [
112-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
112+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
113113
]
114114
},
115115
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/nand/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@
9494
"test_name": "nand/replicate_nand_int_wide/no_arch",
9595
"exit": 1,
9696
"errors": [
97-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
97+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
9898
]
9999
},
100100
"nand/replicate_nand_ultra_wide/no_arch": {
101101
"test_name": "nand/replicate_nand_ultra_wide/no_arch",
102102
"exit": 1,
103103
"errors": [
104-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
104+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
105105
]
106106
},
107107
"nand/replicate_nand_wide/no_arch": {
108108
"test_name": "nand/replicate_nand_wide/no_arch",
109109
"exit": 1,
110110
"errors": [
111-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
111+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
112112
]
113113
},
114114
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/nor/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@
100100
"test_name": "nor/replicate_nor_int_wide/no_arch",
101101
"exit": 1,
102102
"errors": [
103-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
103+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
104104
]
105105
},
106106
"nor/replicate_nor_ultra_wide/no_arch": {
107107
"test_name": "nor/replicate_nor_ultra_wide/no_arch",
108108
"exit": 1,
109109
"errors": [
110-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
110+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
111111
]
112112
},
113113
"nor/replicate_nor_wide/no_arch": {
114114
"test_name": "nor/replicate_nor_wide/no_arch",
115115
"exit": 1,
116116
"errors": [
117-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
117+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2746."
118118
]
119119
},
120120
"DEFAULT": {

0 commit comments

Comments
 (0)