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
3b0a6a67
Commit
3b0a6a67
authored
Sep 29, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce DSP tests
parent
f1b8eba8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
architecture/synth_xilinx_dsp/assert_area.py
+5
-1
architecture/synth_xilinx_dsp/generate_macc.py
+2
-1
architecture/synth_xilinx_dsp/generate_mul.py
+2
-1
architecture/synth_xilinx_dsp/generate_muladd.py
+3
-2
No files found.
architecture/synth_xilinx_dsp/assert_area.py
View file @
3b0a6a67
...
...
@@ -11,6 +11,7 @@ for fn in glob.glob('*.v'):
if
not
m
:
continue
macc
=
m
.
group
(
1
)
==
'macc'
muladd
=
m
.
group
(
1
)
==
'muladd'
A
,
B
=
map
(
int
,
m
.
group
(
2
,
4
))
Asigned
,
Bsigned
=
m
.
group
(
3
,
5
)
if
m
.
group
(
6
):
...
...
@@ -47,7 +48,10 @@ for fn in glob.glob('*.v'):
# expect last slice to absorb at least one register
# TODO: More assert on number of CARRY and LUTs
count_CARRY
=
''
if
not
macc
and
(
A
<=
25
or
B
<=
18
):
if
macc
or
muladd
:
if
A
<=
25
and
B
<=
18
:
count_CARRY
=
'; select t:XORCY -assert-none; select t:LUT* -assert-none'
;
elif
A
<=
25
or
B
<=
18
:
count_CARRY
=
'; select t:XORCY -assert-none; select t:LUT* -assert-none'
;
bn
,
_
=
os
.
path
.
splitext
(
fn
)
...
...
architecture/synth_xilinx_dsp/generate_macc.py
View file @
3b0a6a67
...
...
@@ -6,4 +6,5 @@ ARange = ['17','17s','18','18s','19','19s','24','24s','25','25s','36','36s','49'
BRange
=
[
'17'
,
'17s'
,
'18'
,
'18s'
,
'19'
,
'19s'
,
'27'
,
'27s'
,
'34'
,
'34s'
,
'35'
,
'35s'
,
'36'
,
'36s'
]
if
__name__
==
"__main__"
:
gen_macc
(
ARange
,
BRange
,
reg
=
"ABM"
)
gen_macc
([
'24'
,
'49s'
],
[
'17'
,
'36s'
],
reg
=
"ABMP"
)
gen_macc
(
ARange
,
BRange
,
reg
=
""
)
architecture/synth_xilinx_dsp/generate_mul.py
View file @
3b0a6a67
...
...
@@ -6,4 +6,5 @@ ARange = ['17','17s','18','18s','19','19s','24','24s','25','25s','36','36s','49'
BRange
=
[
'17'
,
'17s'
,
'18'
,
'18s'
,
'19'
,
'19s'
,
'27'
,
'27s'
,
'34'
,
'34s'
,
'35'
,
'35s'
,
'36'
,
'36s'
]
if
__name__
==
"__main__"
:
gen_mul
(
ARange
,
BRange
,
reg
=
"ABMP"
)
gen_mul
([
'24'
,
'49s'
],
[
'17'
,
'36s'
],
reg
=
"ABMP"
)
gen_mul
(
ARange
,
BRange
,
reg
=
""
)
architecture/synth_xilinx_dsp/generate_muladd.py
View file @
3b0a6a67
...
...
@@ -4,7 +4,8 @@ from common_muladd import gen_muladd
ARange
=
[
'24'
,
'24s'
,
'25'
,
'25s'
,
'36'
,
'36s'
]
BRange
=
[
'17'
,
'17s'
,
'18'
,
'18s'
,
'19'
,
'19s'
]
CRange
=
[
'32'
,
'32s'
,
'4
0'
,
'40s'
,
'48'
,
'48
s'
]
CRange
=
[
'32'
,
'32s'
,
'4
8'
,
'48s'
,
'96'
,
'96
s'
]
if
__name__
==
"__main__"
:
gen_muladd
(
ARange
,
BRange
,
CRange
,
reg
=
"ABMP"
)
gen_muladd
([
'24'
,
'49s'
],
[
'17'
,
'36s'
],
[
'47'
,
'96s'
],
reg
=
"ABMP"
)
gen_muladd
(
ARange
,
BRange
,
CRange
,
reg
=
""
)
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