Skip to content

Commit 56b7a7d

Browse files
committed
Further cleaning up code and adding some comments
1 parent 3fbe39f commit 56b7a7d

File tree

3 files changed

+4
-102
lines changed

3 files changed

+4
-102
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ add_subdirectory(libsdcparse)
1010
add_subdirectory(libblifparse)
1111
add_subdirectory(libtatum)
1212
add_subdirectory(libcatch2)
13-
#add_subdirectory(synlig)
1413
#add_subdirectory(parmys)
1514

1615
#Proc numbers
@@ -88,6 +87,7 @@ if (${WITH_PARMYS})
8887
set(SLANG_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/yosys-slang)
8988
set(SLANG_BUILD_DIR ${CMAKE_BINARY_DIR}/yosys-slang)
9089
set(YOSYS_CONFIG_EXECUTABLE ${CMAKE_BINARY_DIR}/bin/yosys-config CACHE STRING "Path to the yosys-config helper" FORCE)
90+
#Initialize yosys-slang submodules
9191
execute_process(
9292
COMMAND git submodule update --init
9393
WORKING_DIRECTORY ${SLANG_SRC_DIR}
@@ -102,6 +102,7 @@ if (${WITH_PARMYS})
102102
SOURCE_DIR ${SLANG_SRC_DIR}
103103
BINARY_DIR ${SLANG_BUILD_DIR}
104104

105+
#Disabling UndrivenPass in slang_frontend.cc
105106
PATCH_COMMAND
106107
${CMAKE_COMMAND} -E echo "Patching slang_frontend.cc to disable UndrivenPass" &&
107108
${CMAKE_COMMAND} -DIN=${SLANG_FE} -P ${CMAKE_CURRENT_SOURCE_DIR}/patch_slang.cmake
@@ -116,92 +117,6 @@ if (${WITH_PARMYS})
116117
INSTALL_COMMAND ${CMAKE_COMMAND} --install ${SLANG_BUILD_DIR}
117118
DEPENDS yosys
118119
)
119-
120-
# set(SURELOG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Surelog)
121-
# set(SURELOG_BINARY_DIR ${SURELOG_SOURCE_DIR}/build)
122-
# set(YOSYS_F4PGA_PLUGINS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/yosys-f4pga-plugins)
123-
124-
# ExternalProject_Add(surelog
125-
# # root directory for Surelog project
126-
# PREFIX "surelog"
127-
128-
# GIT_REPOSITORY https://github.com/chipsalliance/Surelog.git
129-
# GIT_TAG v1.71
130-
# GIT_PROGRESS TRUE
131-
# GIT_SHALLOW TRUE
132-
133-
# # setting source, build and install directories
134-
# SOURCE_DIR "${SURELOG_SOURCE_DIR}"
135-
# BUILD_IN_SOURCE FALSE
136-
# INSTALL_DIR "${SURELOG_BINARY_DIR}"
137-
138-
# # define Surelog cache values
139-
# CMAKE_CACHE_ARGS
140-
# "-DCMAKE_BUILD_TYPE:STRING=Release"
141-
# "-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}"
142-
# "-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON"
143-
# "-DCMAKE_WARN_DEPRECATED:BOOL=OFF"
144-
145-
# # redirect logs to a logfile
146-
# LOG_BUILD ON
147-
# LOG_UPDATE ON
148-
# LOG_INSTALL ON
149-
# LOG_CONFIGURE OFF
150-
# LOG_OUTPUT_ON_FAILURE ON
151-
152-
# # dependency
153-
# DEPENDS yosys
154-
# )
155-
156-
# # Synlig integration (manages Surelog and UHDM internally)
157-
158-
# # Synlig integration (manages Surelog and UHDM internally)
159-
# set(SYNLIG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/synlig)
160-
161-
# # Clone Synlig repository and ensure submodules are synced before building
162-
# ExternalProject_Add(synlig
163-
# PREFIX "synlig"
164-
165-
# # Clone the Synlig repository
166-
# GIT_REPOSITORY https://github.com/chipsalliance/synlig.git
167-
# GIT_TAG main
168-
# GIT_PROGRESS TRUE
169-
# GIT_SHALLOW TRUE
170-
171-
# # Set source and build directories
172-
# SOURCE_DIR "${SYNLIG_SOURCE_DIR}"
173-
# BUILD_IN_SOURCE FALSE
174-
# INSTALL_DIR " "
175-
176-
# # Sync submodules after cloning
177-
178-
179-
# UPDATE_COMMAND git submodule update --init --recursive third_party/surelog
180-
# WORKING_DIRECTORY ${SYNLIG_SOURCE_DIR}
181-
182-
# BUILD_COMMAND ${MAKE_PROGRAM} -C ${SYNLIG_SOURCE_DIR} install DESTDIR=${CMAKE_BINARY_DIR}/bin/synlig_install -j${PROCESSOR_COUNT}
183-
# INSTALL_COMMAND ""
184-
# CONFIGURE_COMMAND ""
185-
186-
# # Pass necessary paths and set environment variables
187-
# CMAKE_CACHE_ARGS
188-
# "-DCMAKE_BUILD_TYPE:STRING=Release"
189-
# "-DSURELOG_PATH=${CMAKE_BINARY_DIR}/surelog"
190-
# "-DYOSYS_PATH=${CMAKE_BINARY_DIR}/yosys"
191-
# "-DUHDM_INSTALL_DIR=${CMAKE_BINARY_DIR}"
192-
# "-DBUILD_DIR=${CMAKE_BINARY_DIR}/synlig-build"
193-
# "-DEXPORT_PATH=${CMAKE_BINARY_DIR}/synlig_install/usr/local/bin:$ENV{PATH}"
194-
195-
# LOG_BUILD ON
196-
# LOG_UPDATE ON
197-
# LOG_INSTALL ON
198-
# LOG_CONFIGURE OFF
199-
# LOG_OUTPUT_ON_FAILURE ON
200-
201-
# # Ensure dependencies like Yosys are built first
202-
# DEPENDS yosys # Ensure submodule sync runs before synlig build
203-
# )
204-
205120
endif ()
206121
endif ()
207122

vtr_flow/misc/yosys/synthesis.tcl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ if {$env(PARSER) == "slang" } {
3333

3434
parmys_arch -a QQQ
3535

36-
#if {$env(PARSER) == "surelog" } {
37-
# puts "Using Synlig read_uhdm command"
38-
# exec $synlig -p "read_uhdm XXX"
39-
#}
40-
4136
if {$env(PARSER) == "slang" } {
4237
# Create a file list containing the name(s) of file(s) \
4338
# to read together with read_slang
@@ -98,14 +93,6 @@ if {$env(PARSER) == "default" || $env(PARSER) == "slang"} {
9893
# For Verilog, use -nopass for a simpler, faster flow
9994
parmys -a QQQ -nopass -c CCC YYY
10095
}
101-
#elseif {$env(PARSER) == "slang"} {
102-
# For Slang, run additional passes to handle complexity
103-
# parmys -a QQQ -c CCC YYY
104-
#}
105-
#elseif {$env(PARSER) == "system-verilog" || $env(PARSER) == "surelog"} {
106-
# # For Synlig SystemVerilog, run additional passes to handle complexity
107-
# parmys -a QQQ -c CCC YYY
108-
#}
10996

11097
opt -full
11198

vtr_flow/scripts/python_libs/vtr/parmys/parmys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def run(
233233
odin_config_full_path,
234234
)
235235

236-
# Set the synlig exe script path in the environment variable
237-
# (handle if it is not set or system-verilog OFF)
236+
# Set the slang exe script path in the environment variable
237+
# (handle if it is not set or yosys-slang OFF)
238238
try:
239239
os.environ["yosys_slang_path"] = str(vtr.paths.yosys_slang_path)
240240
except KeyError:

0 commit comments

Comments
 (0)