Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gökçe Aydos
iverilog-minimal-example
Commits
6c75310e
Commit
6c75310e
authored
May 11, 2022
by
goekce
Browse files
Add auto file selection
parent
d74640e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
iverilog.mk
View file @
6c75310e
TOP
?=
comb_circ_using_delays_tb
SRCADD
?=
comb_circ_using_delays.v
TOP
?=
$(
basename
$(
firstword
$(
wildcard
*
.v
)))
SRCADD
?=
$(
lastword
$(
wildcard
*
.v
))
# If only TOP.v and TOP_tb.v exist, firstword returns TOP_tb.v, lastword TOP.v
IVERILOG_OPTS
?=
-g2012
default
:
signals.vcd
...
...
@@ -9,6 +11,7 @@ SRC = $(TOP).v $(SRCADD)
# Creates the model for simulation
$(SIM_MODEL)
:
$(SRC)
iverilog
\
$(IVERILOG_OPTS)
\
-o
$(TOP)
\
$^
...
...
Write
Preview
Supports
Markdown
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