Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
c15f2eab
Commit
c15f2eab
authored
Jan 29, 2022
by
Antoine Kaufmann
Browse files
sims/net/menshen: add
parent
3be11ceb
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
sims/net/menshen/rules.mk
sims/net/menshen/rules.mk
+55
-0
sims/net/rules.mk
sims/net/rules.mk
+1
-0
No files found.
sims/net/menshen/rules.mk
0 → 100644
View file @
c15f2eab
# Copyright 2022 Max Planck Institute for Software Systems, and
# National University of Singapore
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
include
mk/subdir_pre.mk
dir_menshen
:=
$(d)
bin_menshen
:=
$(d)
menshen_hw
verilator_dir_menshen
:=
$(d)
obj_dir
verilator_src_menshen
:=
$(verilator_dir_menshen)
/Vrmt_wrapper.cpp
verilator_bin_menshen
:=
$(verilator_dir_menshen)
/Vrmt_wrapper
vsrcs_menshen
:=
$(
wildcard
$(d)
rtl/
*
.v
$(d)
lib/
*
/rtl/
*
.v
\
$(d)
lib/
*
/lib/
*
/rtl/
*
.v
)
srcs_menshen
:=
$(
addprefix
$(d)
,menshen_hw.cc
)
OBJS
:=
$(srcs_menshen:.cc=.o)
#$(OBJS): CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(verilator_src_menshen)
:
$(vsrcs_menshen)
$(VERILATOR)
$(VFLAGS)
--cc
-O3
\
-CFLAGS
"-I
$(
abspath
$(lib_dir)
)
-iquote
$(
abspath
$(base_dir)
)
-O3 -g -Wall -Wno-maybe-uninitialized -fno-var-tracking-assignments"
\
--Mdir
$(verilator_dir_menshen)
\
-y
$(dir_menshen)
rtl
-y
$(dir_menshen)
rtl/extract
\
-y
$(dir_menshen)
rtl/action
-y
$(dir_menshen)
rtl/lookup
-y
$(dir_menshen)
lib
\
$(dir_menshen)
rtl/rmt_wrapper.v
--exe
$(
abspath
$(srcs_menshen)
)
$(
abspath
$(lib_netif)
)
$(verilator_bin_menshen)
:
$(verilator_src_menshen) $(srcs_menshen) $(lib_netif)
$(MAKE)
-C
$(verilator_dir_menshen)
-f
Vrmt_wrapper.mk
$(bin_menshen)
:
$(verilator_bin_menshen)
cp
$<
$@
CLEAN
:=
$(bin_menshen)
$(verilator_dir_menshen)
$(OBJS)
ALL
:=
$(bin_menshen)
include
mk/subdir_post.mk
sims/net/rules.mk
View file @
c15f2eab
...
@@ -26,5 +26,6 @@ $(eval $(call subdir,wire))
...
@@ -26,5 +26,6 @@ $(eval $(call subdir,wire))
$(eval
$(call
subdir,tap))
$(eval
$(call
subdir,tap))
$(eval
$(call
subdir,switch))
$(eval
$(call
subdir,switch))
$(eval
$(call
subdir,pktgen))
$(eval
$(call
subdir,pktgen))
$(eval
$(call
subdir,menshen))
include
mk/subdir_post.mk
include
mk/subdir_post.mk
Prev
1
2
3
Next
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