Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
NanoSoC Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
5ecef650
Commit
5ecef650
authored
9 months ago
by
dwn1c21
Browse files
Options
Downloads
Patches
Plain Diff
Add Icarus Verilog Support
parent
0aad87ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flows/makefile.simulate
+17
-0
17 additions, 0 deletions
flows/makefile.simulate
verif/tb/verilog/nanosoc_tb.v
+1
-1
1 addition, 1 deletion
verif/tb/verilog/nanosoc_tb.v
with
18 additions
and
1 deletion
flows/makefile.simulate
+
17
−
0
View file @
5ecef650
...
...
@@ -34,6 +34,10 @@ endif
XMSIM_OPTIONS
=
-unbuffered
-64bit
-status
-LICQUEUE
-f
xmsim.args
-cdslib
cds.lib
-hdlvar
hdl.var
-NBASYNC
XM_VC_OPTIONS
=
-f
$(
TBENCH_VC
)
$(
ADP_OPTIONS
)
# Icarus Verilog options
IVERILOG_OPTIONS
=
-g2005-sv
-DVCD_SIM
# ------- Cocotb Variables -----------
# Convert Simulator Name for Cocotb
COCOTB_SIMULATOR
?=
questa
...
...
@@ -76,6 +80,7 @@ sim: sim_$(SIMULATOR)
compile_mti
:
NANOSOC_DEFINES += IMEM_0_RAM_PRELOAD
compile_vcs
:
NANOSOC_DEFINES += IMEM_0_RAM_PRELOAD
compile_xm
:
NANOSOC_DEFINES += IMEM_0_RAM_PRELOAD
compile_iverilog
:
NANOSOC_DEFINES += IMEM_0_RAM_PRELOAD
# Generate verilog .vc filelist from flists
...
...
@@ -159,6 +164,18 @@ lib_mti :
vlib
$(
SIM_DIR
)
/work
;
\
fi
# ------- Icarus -----------
# Compile RTL
compile_iverilog
:
bootrom gen_defs flist_vfiles_nanosoc
cd
$(
SIM_DIR
);
iverilog
$(
IVERILOG_OPTIONS
)
-o
nanosoc_chip_pads
-c
tbench.vc
run_iverilog
:
code compile_iverilog
cd
$(
SIM_DIR
);
vvp
-l
$(
SIM_DIR
)
/logs/run_
$(
TESTNAME
)
.log nanosoc_chip_pads
;
sim_iverilog
:
run_iverilog
cd
$(
SIM_DIR
);
gtkwave waves.vcd
# Generate Make filelist from flists
flist_makefile_nanosoc
:
gen_defs
@
mkdir
-p
$(
COCOTB_DIR
)
...
...
This diff is collapsed.
Click to expand it.
verif/tb/verilog/nanosoc_tb.v
+
1
−
1
View file @
5ecef650
...
...
@@ -117,7 +117,7 @@ initial
`ifdef
VCD_SIM
initial
begin
$
dumpfile
(
"waves.vcd"
);
$
dumpvars
(
6
,
u_nanosoc_chip_pads
);
$
dumpvars
(
0
,
u_nanosoc_chip_pads
);
end
`endif
// VCD_SIM
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment