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
8af24420
"vscode:/vscode.git/clone" did not exist on "92c615b6edabe00ffe5a0f7fa6e2f73e8b846beb"
Commit
8af24420
authored
Jun 25, 2020
by
Antoine Kaufmann
Browse files
results.tex line counts for corundum
parent
4ebf781c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
results/Makefile
results/Makefile
+18
-0
results/loccount_corundum_bm.sh
results/loccount_corundum_bm.sh
+7
-0
results/loccount_corundum_verilator.sh
results/loccount_corundum_verilator.sh
+18
-0
No files found.
results/Makefile
0 → 100644
View file @
8af24420
all
:
build/results.tex
clean
:
rm
-rf
build
build/results.tex
:
build/loc_corundum_bm build/loc_corundum_verilator
@
echo
'%'
This is generated with make
in
the results directory
\
of the ehsim repo
>
$@
cat
$^
>>
$@
# Lines of code in corundum
build/loc_corundum_bm
:
loccount_corundum_bm.sh
@
mkdir
-p
$(
dir
$@
)
bash loccount_corundum_bm.sh
>
$@
build/loc_corundum_verilator
:
loccount_corundum_verilator.sh
@
mkdir
-p
$(
dir
$@
)
bash loccount_corundum_verilator.sh
>
$@
results/loccount_corundum_bm.sh
0 → 100644
View file @
8af24420
#!/bin/bash
dir
=
../corundum_bm
cpp_lines
=
"
`
cloc
--csv
$dir
/
{
corundum_bm.cc,corundum_bm.h
}
|
tail
-n1
|
sed
's/.*,//'
`
"
echo
"
\\
newcommand{
\\
DataLocCorundumBM}{
$cpp_lines
}"
results/loccount_corundum_verilator.sh
0 → 100644
View file @
8af24420
#!/bin/bash
dir
=
../corundum
vsrcs
=
""
for
f
in
`
sed
's/.*://'
$dir
/obj_dir/Vinterface__ver.d
`
do
if
[[
"
$f
"
==
*
.v
]]
then
vsrcs
=
"
$vsrcs
$dir
/
$f
"
fi
done
verilog_lines
=
"
`
cloc
--csv
$vsrcs
|
tail
-n1
|
sed
's/.*,//'
`
"
cpp_lines
=
"
`
cloc
--csv
$dir
/
*
.cpp
$dir
/
*
.h |
tail
-n1
|
sed
's/.*,//'
`
"
echo
"
\\
newcommand{
\\
DataLocCorundumVVerilog}{
$verilog_lines
}"
echo
"
\\
newcommand{
\\
DataLocCorundumVCPP}{
$cpp_lines
}"
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