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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
962e2da5
Commit
962e2da5
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
Updated makeflow for defines genration
parent
9f373b18
No related branches found
No related tags found
1 merge request
!1
changed imem to rom to allow initial program loading, updated bootloader code...
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
fpga/makefile
+11
-4
11 additions, 4 deletions
fpga/makefile
makefile
+12
-4
12 additions, 4 deletions
makefile
nanosoc/nanosoc_chip/chip/verilog/nanosoc_chip.v
+12
-0
12 additions, 0 deletions
nanosoc/nanosoc_chip/chip/verilog/nanosoc_chip.v
nanosoc/socdebug_tech
+1
-1
1 addition, 1 deletion
nanosoc/socdebug_tech
with
36 additions
and
9 deletions
fpga/makefile
+
11
−
4
View file @
962e2da5
...
@@ -39,6 +39,10 @@ IMP_NANOSOC_DIR := $(IMPLEMENTATION_DIR)/nanosoc
...
@@ -39,6 +39,10 @@ IMP_NANOSOC_DIR := $(IMPLEMENTATION_DIR)/nanosoc
IMP_SOCKET_DIR
:=
$(
IMPLEMENTATION_DIR
)
/socket
IMP_SOCKET_DIR
:=
$(
IMPLEMENTATION_DIR
)
/socket
PROJECT_DIR
:=
$(
IMPLEMENTATION_DIR
)
/targets/
$(
BOARD_NAME
)
PROJECT_DIR
:=
$(
IMPLEMENTATION_DIR
)
/targets/
$(
BOARD_NAME
)
# Location of Defines File
DEFINES_DIR
:=
$(
SOCLABS_PROJECT_DIR
)
/system/src/defines/
DEFINES_FILE
:=
$(
DEFINES_DIR
)
/gen_defines.v
# Name of generated filelist by python script
# Name of generated filelist by python script
TCL_FLIST_DIR
:=
$(
IMP_NANOSOC_DIR
)
/flist
TCL_FLIST_DIR
:=
$(
IMP_NANOSOC_DIR
)
/flist
TCL_OUTPUT_FILELIST
:=
$(
TCL_FLIST_DIR
)
/gen_flist.tcl
TCL_OUTPUT_FILELIST
:=
$(
TCL_FLIST_DIR
)
/gen_flist.tcl
...
@@ -65,21 +69,24 @@ endif
...
@@ -65,21 +69,24 @@ endif
ACCELERATOR
?=
yes
ACCELERATOR
?=
yes
ifeq
($(ACCELERATOR),yes)
ifeq
($(ACCELERATOR),yes)
ACCELERATOR_SUBSYSTEM
=
1
ACCELERATOR_SUBSYSTEM
=
ACCELERATOR_SUBSYSTEM
else
else
ACCELERATOR_SUBSYSTEM
=
0
ACCELERATOR_SUBSYSTEM
=
0
endif
endif
# Defines to pass to filelist compile
# Defines to pass to filelist compile
NANOSOC_DEFINES
+=
ACCELERATOR_SUBSYSTEM
=
$(
ACCELERATOR_SUBSYSTEM
)
NANOSOC_DEFINES
+=
$(
ACCELERATOR_SUBSYSTEM
)
# Compile Testcodes and Bootrom
# Compile Testcodes and Bootrom
code
:
code
:
@
echo
Compiling Firmware
@
echo
Compiling Firmware
@$(
MAKE
)
-C
$(
SOCLABS_NANOSOC_TECH_DIR
)
compile_all_code
@$(
MAKE
)
-C
$(
SOCLABS_NANOSOC_TECH_DIR
)
bootrom
defs_nanosoc
:
@$(
MAKE
)
-C
$(
SOCLABS_NANOSOC_TECH_DIR
)
defs_gen
DEFINES_DIR
=
$(
DEFINES_DIR
)
NANOSOC_DEFINES
=
$(
NANOSOC_DEFINES
)
DEFINES_FILE
=
$(
DEFINES_FILE
)
# Generate TCL filelist from flists
# Generate TCL filelist from flists
flist_nanosoc
:
flist_nanosoc
:
defs_nanosoc
@
mkdir
-p
$(
TCL_FLIST_DIR
)
@
mkdir
-p
$(
TCL_FLIST_DIR
)
@
(
cd
$(
TCL_FLIST_DIR
);
\
@
(
cd
$(
TCL_FLIST_DIR
);
\
$(
SOCLABS_SOCTOOLS_FLOW_DIR
)
/bin/filelist_compile.py
-t
-f
$(
DESIGN_VC
)
-o
$(
TCL_OUTPUT_FILELIST
)
-r
$(
IMP_NANOSOC_DIR
)
-d
$(
NANOSOC_DEFINES
);
)
$(
SOCLABS_SOCTOOLS_FLOW_DIR
)
/bin/filelist_compile.py
-t
-f
$(
DESIGN_VC
)
-o
$(
TCL_OUTPUT_FILELIST
)
-r
$(
IMP_NANOSOC_DIR
)
-d
$(
NANOSOC_DEFINES
);
)
...
...
This diff is collapsed.
Click to expand it.
makefile
+
12
−
4
View file @
962e2da5
...
@@ -92,6 +92,7 @@ ACCELERATOR ?= yes
...
@@ -92,6 +92,7 @@ ACCELERATOR ?= yes
ifeq
($(ACCELERATOR),yes)
ifeq
($(ACCELERATOR),yes)
DEFINES_VC
+=
+define+ACCELERATOR_SUBSYSTEM
DEFINES_VC
+=
+define+ACCELERATOR_SUBSYSTEM
NANOSOC_DEFINES
+=
ACCELERATOR_SUBSYSTEM
endif
endif
# Is the Arm QuickStart being used?
# Is the Arm QuickStart being used?
...
@@ -157,6 +158,10 @@ HAL_WAIVE += -design_info $(LINT_INFO_SLCOREM0_DIR)/slcorem0_ip.waive
...
@@ -157,6 +158,10 @@ HAL_WAIVE += -design_info $(LINT_INFO_SLCOREM0_DIR)/slcorem0_ip.waive
HAL_WAIVE
+=
-design_info
$(
LINT_INFO_SLDMA230_DIR
)
/sldma230_ip.waive
HAL_WAIVE
+=
-design_info
$(
LINT_INFO_SLDMA230_DIR
)
/sldma230_ip.waive
HAL_WAIVE
+=
-design_info
$(
LINT_INFO_SOCDEBUG_DIR
)
/socdebug_controller_ip.waive
HAL_WAIVE
+=
-design_info
$(
LINT_INFO_SOCDEBUG_DIR
)
/socdebug_controller_ip.waive
# Location of Defines File
DEFINES_DIR
:=
$(
SOCLABS_PROJECT_DIR
)
/system/src/defines/
DEFINES_FILE
:=
$(
DEFINES_DIR
)
/gen_defines.v
# Debug Tester image
# Debug Tester image
DEBUGTESTER
=
debugtester
DEBUGTESTER
=
debugtester
...
@@ -243,7 +248,7 @@ all : all_$(SIMULATOR)
...
@@ -243,7 +248,7 @@ all : all_$(SIMULATOR)
# ------- VCS -----------
# ------- VCS -----------
# Compile RTL
# Compile RTL
compile_vcs
:
compile_vcs
:
defs_gen
vcs
$(
VCS_OPTIONS
)
$(
VCS_VC_OPTIONS
)
$(
DEFINES_VC
)
|
tee
compile_vcs.log
vcs
$(
VCS_OPTIONS
)
$(
VCS_VC_OPTIONS
)
$(
DEFINES_VC
)
|
tee
compile_vcs.log
...
@@ -263,14 +268,14 @@ sim_vcs : code
...
@@ -263,14 +268,14 @@ sim_vcs : code
# Compile RTL
# Compile RTL
compile_xm
:
bootrom
compile_xm
:
bootrom
defs_gen
@
echo
ADP_FILE
@
echo
ADP_FILE
@
echo
$(
ADP_OPTIONS
)
@
echo
$(
ADP_OPTIONS
)
cd
$(
SIM_DIR
);
xmprep +overwrite
$(
XM_VC_OPTIONS
)
$(
DEFINES_VC
)
+debug
-timescale
1ns/1ps
-top
$(
TB_TOP
)
|
tee
compile_xm.log
cd
$(
SIM_DIR
);
xmprep +overwrite
$(
XM_VC_OPTIONS
)
$(
DEFINES_VC
)
+debug
-timescale
1ns/1ps
-top
$(
TB_TOP
)
|
tee
compile_xm.log
cd
$(
SIM_DIR
);
xmvlog
-work
worklib
-f
xmvlog_ver.args |
tee
-a
compile_xm.log
cd
$(
SIM_DIR
);
xmvlog
-work
worklib
-f
xmvlog_ver.args |
tee
-a
compile_xm.log
cd
$(
SIM_DIR
);
xmelab
-mess
-f
xmelab.args
-access
+r |
tee
-a
compile_xm.log
cd
$(
SIM_DIR
);
xmelab
-mess
-f
xmelab.args
-access
+r |
tee
-a
compile_xm.log
lint_xm
:
bootrom
lint_xm
:
bootrom
defs_gen
@
rm
-rf
$(
LINT_DIR
)
@
rm
-rf
$(
LINT_DIR
)
@
mkdir
-p
$(
LINT_DIR
)
@
mkdir
-p
$(
LINT_DIR
)
cd
$(
LINT_DIR
);
xrun
-hal
-f
$(
DESIGN_VC
)
$(
DEFINES_VC
)
+debug
"-timescale 1ns/1ps"
-top
$(
LINT_TOP
)
$(
HAL_BLACK_BOX
)
$(
HAL_WAIVE
)
$(
LINT_NOCHECK
)
cd
$(
LINT_DIR
);
xrun
-hal
-f
$(
DESIGN_VC
)
$(
DEFINES_VC
)
+debug
"-timescale 1ns/1ps"
-top
$(
LINT_TOP
)
$(
HAL_BLACK_BOX
)
$(
HAL_WAIVE
)
$(
LINT_NOCHECK
)
...
@@ -296,7 +301,7 @@ sim_xm : code compile_xm
...
@@ -296,7 +301,7 @@ sim_xm : code compile_xm
# ------- MTI -----------
# ------- MTI -----------
# Compile RTL
# Compile RTL
compile_mti
:
bootrom
compile_mti
:
bootrom
defs_gen
@
echo
ADP_FILE
@
echo
ADP_FILE
@
echo
$(
ADP_OPTIONS
)
@
echo
$(
ADP_OPTIONS
)
cd
$(
SIM_DIR
)
cd
$(
SIM_DIR
)
...
@@ -354,6 +359,9 @@ regression_$(SIMULATOR): compile_$(SIMULATOR) bootrom debugtester
...
@@ -354,6 +359,9 @@ regression_$(SIMULATOR): compile_$(SIMULATOR) bootrom debugtester
@
make
-j
$(
PARALLEL_TESTS
)
all_
$(
SIMULATOR
)
REGRESSION
=
$(
REGRESSION_DIR
)
@
make
-j
$(
PARALLEL_TESTS
)
all_
$(
SIMULATOR
)
REGRESSION
=
$(
REGRESSION_DIR
)
@
make
-j1
regression_results
REGRESSION
=
$(
REGRESSION_DIR
)
@
make
-j1
regression_results
REGRESSION
=
$(
REGRESSION_DIR
)
defs_gen
:
@
mkdir
-p
$(
DEFINES_DIR
)
@$(
SOCLABS_SOCTOOLS_FLOW_DIR
)
/bin/defines_compile.py
-d
$(
NANOSOC_DEFINES
)
-o
$(
DEFINES_FILE
)
# ------- Software -----------
# ------- Software -----------
...
...
This diff is collapsed.
Click to expand it.
nanosoc/nanosoc_chip/chip/verilog/nanosoc_chip.v
+
12
−
0
View file @
962e2da5
//-----------------------------------------------------------------------------
// Nanosoc Chip-level File
// A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
//
// Contributors
//
// David Mapstone (d.a.mapstone@soton.ac.uk)
//
// Copyright 2021-3, SoC Labs (www.soclabs.org)
//-----------------------------------------------------------------------------
`include
"gen_defines.v"
module
nanosoc_chip
#(
module
nanosoc_chip
#(
parameter
integer
FT1248_WIDTH
=
1
// FTDI Interface 1,2,4 width supported
parameter
integer
FT1248_WIDTH
=
1
// FTDI Interface 1,2,4 width supported
)(
)(
...
...
This diff is collapsed.
Click to expand it.
socdebug_tech
@
e798f861
Compare
46ee6127
...
e798f861
Subproject commit
46ee61270c6bb8a9723da36645ed4a76ff744ad1
Subproject commit
e798f8612a9a66322b80cb8ee8fb2606e7e9794b
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