Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
30f757ed
Commit
30f757ed
authored
Jun 09, 2019
by
Luis Vega
Committed by
eqy
Jun 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add another default location to verilator (#3324)
parent
084e338e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
vta/apps/tsim_example/cmake/modules/hw.cmake
+6
-0
vta/hardware/chisel/Makefile
+10
-4
No files found.
vta/apps/tsim_example/cmake/modules/hw.cmake
View file @
30f757ed
...
...
@@ -113,7 +113,13 @@ else()
# Build shared library (.so)
set
(
VTA_HW_DPI_DIR
${
VTA_DIR
}
/hardware/dpi
)
if
(
EXISTS /usr/local/share/verilator/include
)
set
(
VERILATOR_INC_DIR /usr/local/share/verilator/include
)
elseif
(
EXISTS /usr/share/verilator/include
)
set
(
VERILATOR_INC_DIR /usr/share/verilator/include
)
else
()
message
(
FATAL_ERROR
"[TSIM_HW] Verilator include directory not found"
)
endif
()
set
(
VERILATOR_LIB_SRC
${
VERILATOR_INC_DIR
}
/verilated.cpp
${
VERILATOR_INC_DIR
}
/verilated_dpi.cpp
)
if
(
NOT TSIM_USE_TRACE STREQUAL
"off"
)
...
...
vta/hardware/chisel/Makefile
View file @
30f757ed
...
...
@@ -15,15 +15,21 @@
# specific language governing permissions and limitations
# under the License.
# Change this variable if Verilator is installed on a different location
VERILATOR_INC_DIR
?=
/usr/local/share/verilator/include
ifeq
(,
$(shell
which
verilator))
$(error
"No Verilator in $(PATH), consider doing apt-get install verilator"
)
endif
ifeq
(,
$(wildcard
$(VERILATOR_INC_DIR)/*))
# Change VERILATOR_INC_DIR if Verilator is installed on a different location
ifeq
(,
$(VERILATOR_INC_DIR))
ifeq
(,
$(wildcard
/usr/local/share/verilator/include/*))
ifeq
(,
$(wildcard
/usr/share/verilator/include/*))
$(error
"Verilator include directory is not set properly"
)
else
VERILATOR_INC_DIR
:=
/usr/share/verilator/include
endif
else
VERILATOR_INC_DIR
:=
/usr/local/share/verilator/include
endif
endif
CONFIG
=
DefaultF1Config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment