Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yosys-tests
Commits
75dbbabf
Commit
75dbbabf
authored
Sep 05, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add macc tests
parent
7c883418
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
architecture/synth_xilinx_dsp/generate_macc.py
+9
-0
architecture/synth_xilinx_dsp/run-test.sh
+3
-0
No files found.
architecture/synth_xilinx_dsp/generate_macc.py
0 → 100644
View file @
75dbbabf
#!/usr/bin/env python3
from
common_macc
import
gen_macc
ARange
=
[
'17'
,
'17s'
,
'18'
,
'18s'
,
'19'
,
'19s'
,
'24'
,
'24s'
]
BRange
=
[
'17'
,
'17s'
]
if
__name__
==
"__main__"
:
gen_macc
(
ARange
,
BRange
,
reg
=
"ABM"
)
architecture/synth_xilinx_dsp/run-test.sh
View file @
75dbbabf
...
@@ -21,7 +21,10 @@ fi
...
@@ -21,7 +21,10 @@ fi
#wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_small/mul/generate.py -O generate_mul.py -o /dev/null
#wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_small/mul/generate.py -O generate_mul.py -o /dev/null
cp ~/yosys/yosys-bench/verilog/benchmarks_small/mul/common.py common_mul.py
cp ~/yosys/yosys-bench/verilog/benchmarks_small/mul/common.py common_mul.py
PYTHONPATH
=
".:
$PYTHONPATH
"
python3 ../generate_mul.py
PYTHONPATH
=
".:
$PYTHONPATH
"
python3 ../generate_mul.py
cp ~/yosys/yosys-bench/verilog/benchmarks_small/macc/common.py common_macc.py
PYTHONPATH
=
".:
$PYTHONPATH
"
python3 ../generate_macc.py
python3 ../assert_area.py
python3 ../assert_area.py
cp ../
*
.v
.
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"
\
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"
\
-p 'design -copy-to __test __test;
\
-p 'design -copy-to __test __test;
\
synth_xilinx;
\
synth_xilinx;
\
...
...
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