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
30322c29
Commit
30322c29
authored
1 year ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
Fixed code compilation
parent
62f0b1fb
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.software
+10
-10
10 additions, 10 deletions
flows/makefile.software
makefile
+1
-1
1 addition, 1 deletion
makefile
with
11 additions
and
11 deletions
flows/makefile.software
+
10
−
10
View file @
30322c29
...
...
@@ -54,8 +54,8 @@ bootrom:
mkdir
-p
$(
BOOTROM_BUILD_DIR
)
/verilog/
;
\
mkdir
-p
$(
BOOTROM_BUILD_DIR
)
/bintxt/
;
\
python3 bootrom_gen.py
-a
$(
BOOTROM_ADDRW
)
-i
$(
BOOTLOADER
)
.hex
-v
$(
BOOTROM_BUILD_DIR
)
/verilog/bootrom.v
-b
$(
BOOTROM_BUILD_DIR
)
/bintxt/bootrom.bintxt
)
mkdir
-p
$(
SIM_DIR
)
/bootloader
cp
$(
BOOTROM_HEX
)
$(
SIM_DIR
)
/bootloader/
$(
BOOTLOADER
)
.hex
mkdir
-p
$(
SIM_
TOP_
DIR
)
/bootloader
cp
$(
BOOTROM_HEX
)
$(
SIM_
TOP_
DIR
)
/bootloader/
$(
BOOTLOADER
)
.hex
# Compile test code
# Note : The use of ls after compile allows the computing server to sync up
...
...
@@ -130,7 +130,7 @@ debugtester:
ls
>
/dev/null
;
\
echo
Copy
$(
DEBUGTESTER
)
_le.hex
;
\
if
[
-e
$(
DEBUGTESTER
)
_le.hex
]
;
then
\
cp
$(
DEBUGTESTER
)
_le.hex
$(
SIM_
DIR
)
/
$(
DEBUGTESTER
)
_le.hex
;
\
cp
$(
DEBUGTESTER
)
_le.hex
$(
SIM_
TOP_DIR
)
/debugtester
/
$(
DEBUGTESTER
)
_le.hex
;
\
else
\
while
[
!
-e
$(
DEBUGTESTER
)
_le.hex
]
;
do
\
echo
Wait
for
hex file ...
;
\
...
...
@@ -138,14 +138,14 @@ debugtester:
sleep
5
;
\
done
;
\
if
[
-e
$(
DEBUGTESTER
)
_le.hex
]
;
then
\
mkdir
-p
$(
SIM_
DIR
)
;
\
cp
$(
DEBUGTESTER
)
_le.hex
$(
SIM_
DIR
)
/
$(
DEBUGTESTER
)
_le.hex
;
\
mkdir
-p
$(
SIM_
TOP_DIR
)
/debugtester
;
\
cp
$(
DEBUGTESTER
)
_le.hex
$(
SIM_
TOP_DIR
)
/debugtester
/
$(
DEBUGTESTER
)
_le.hex
;
\
fi
;
\
fi
;
\
echo
Copy
$(
DEBUGTESTER
)
_be.hex
;
\
if
[
-e
$(
DEBUGTESTER
)
_be.hex
]
;
then
\
mkdir
-p
$(
SIM_
DIR
)
;
\
cp
$(
DEBUGTESTER
)
_be.hex
$(
SIM_
DIR
)
/
$(
DEBUGTESTER
)
_be.hex
;
\
mkdir
-p
$(
SIM_
TOP_DIR
)
/debugtester
;
\
cp
$(
DEBUGTESTER
)
_be.hex
$(
SIM_
TOP_DIR
)
/debugtester
/
$(
DEBUGTESTER
)
_be.hex
;
\
else
\
while
[
!
-e
$(
DEBUGTESTER
)
_be.hex
]
;
do
\
echo
Wait
for
hex file ...
;
\
...
...
@@ -153,14 +153,14 @@ debugtester:
sleep
5
;
\
done
;
\
if
[
-e
$(
DEBUGTESTER
)
_be.hex
]
;
then
\
cp
$(
DEBUGTESTER
)
_be.hex
$(
SIM_
DIR
)
/
$(
DEBUGTESTER
)
_be.hex
;
\
cp
$(
DEBUGTESTER
)
_be.hex
$(
SIM_
TOP_DIR
)
/debugtester
/
$(
DEBUGTESTER
)
_be.hex
;
\
fi
;
\
fi
;
\
if
[
!
-e
$(
DEBUGTESTER
)
_le.hex
]
&&
[
!
-e
$(
DEBUGTESTER
)
_be.hex
]
;
then
\
echo
Problem reading hex file
;
\
exit
1
;
\
fi
;
\
cd
$(
SIM_
DIR
)
)
cd
$(
SIM_
TOP_DIR
)
/debugtester
)
# Compile all software including boot ROM
compile_all_code
:
bootrom debugtester
...
...
@@ -169,7 +169,7 @@ compile_all_code: bootrom debugtester
echo
Removing old image.hex
;
\
rm
-f
image.hex
;
\
$(
MAKE
)
testcode
TESTNAME
=
$$
thistest
;
\
if
[
-e
$(
SIM_DIR
)
/
$$
thistest/image.hex
]
;
then
\
if
[
-e
$(
SIM_
TOP_
DIR
)
/
$$
thistest/image.hex
]
;
then
\
echo
OK - image.hex created
for
test
$$
thistest
;
\
else
\
echo
ERROR - image.hex NOT created
for
test
$$
thistest
;
\
...
...
This diff is collapsed.
Click to expand it.
makefile
+
1
−
1
View file @
30322c29
...
...
@@ -115,4 +115,4 @@ gen_defs:
# Remove RTL compile files, log files, software compile files
clean
:
clean_all_code
@
rm
-rf
$(
SIM_DIR
)
\ No newline at end of file
@
rm
-rf
$(
SIM_TOP_DIR
)
\ No newline at end of file
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