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
6fd5fd38
Commit
6fd5fd38
authored
Aug 28, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update synth_xilinx_srl to cope with BUFG
parent
777f1dfb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
13 deletions
+14
-13
architecture/synth_xilinx_srl/generate.py
+2
-2
architecture/synth_xilinx_srl/lfsr_area.py
+0
-0
architecture/synth_xilinx_srl/rotate_3_fdre.v
+1
-1
architecture/synth_xilinx_srl/run-test.sh
+2
-2
architecture/synth_xilinx_srl/test17a.v
+1
-1
architecture/synth_xilinx_srl/test17b.v
+1
-1
architecture/synth_xilinx_srl/test17c.v
+1
-1
architecture/synth_xilinx_srl/test17d.v
+2
-1
architecture/synth_xilinx_srl/test17e.v
+1
-1
architecture/synth_xilinx_srl/ug901a.v
+1
-1
architecture/synth_xilinx_srl/ug901b.v
+1
-1
architecture/synth_xilinx_srl/ug901c.v
+1
-1
No files found.
architecture/synth_xilinx_srl/generate.py
View file @
6fd5fd38
...
...
@@ -24,7 +24,7 @@ def assert_static_area(fp, i, name):
fp
.
write
(
'''
`ifndef _AUTOTB
module __test ;
wire [4095:0] assert_area = "cd; select t:FD* -assert-count {0}; select t:SRL16E -assert-count {1}; select t:SRLC32E -assert-count {2}; cd {3}_{4}; select t:FD* t:SRL16E t:SRLC32E
%% %
n t:*
%
i -assert-none";
wire [4095:0] assert_area = "cd; select t:FD* -assert-count {0}; select t:SRL16E -assert-count {1}; select t:SRLC32E -assert-count {2}; cd {3}_{4}; select t:
BUFG t:
FD* t:SRL16E t:SRLC32E
%% %
n t:*
%
i -assert-none";
endmodule
`endif
'''
.
format
(
fd
,
srl16
,
srl32
,
name
,
i
))
...
...
@@ -62,7 +62,7 @@ def assert_dynamic_area(fp, i, name):
fp
.
write
(
'''
`ifndef _AUTOTB
module __test ;
wire [4095:0] assert_area = "cd; select t:FD* -assert-count {0}; select t:SRL16E -assert-count {1}; select t:SRLC32E -assert-count {2}; select t:MUXF7 -assert-count {3}; select t:MUXF8 -assert-count {4}; select t:LUT3 -assert-count {5}; select t:LUT5 -assert-count {6}; cd {7}_{8}; select t:FD* t:SRL16E t:SRLC32E t:MUXF7 t:MUXF8 t:LUT3 t:LUT5
%% %
n t:*
%
i -assert-none";
wire [4095:0] assert_area = "cd; select t:FD* -assert-count {0}; select t:SRL16E -assert-count {1}; select t:SRLC32E -assert-count {2}; select t:MUXF7 -assert-count {3}; select t:MUXF8 -assert-count {4}; select t:LUT3 -assert-count {5}; select t:LUT5 -assert-count {6}; cd {7}_{8}; select t:
BUFG t:
FD* t:SRL16E t:SRLC32E t:MUXF7 t:MUXF8 t:LUT3 t:LUT5
%% %
n t:*
%
i -assert-none";
endmodule
`endif
'''
.
format
(
fd
,
srl16
,
srl32
,
muxf7
,
muxf8
,
lut3
,
lut5
,
name
,
i
))
...
...
architecture/synth_xilinx_srl/lfsr_area.py
View file @
6fd5fd38
This diff is collapsed.
Click to expand it.
architecture/synth_xilinx_srl/rotate_3_fdre.v
View file @
6fd5fd38
...
...
@@ -2,7 +2,7 @@
module
rotate_3_fdre
(
input
clk
,
output
q
)
;
wire
[
2
:
0
]
r
;
FDRE
#(
.
INIT
(
1'b1
))
r0
(
.
C
(
clk
)
,
.
CE
(
1'b1
)
,
.
D
(
r
[
2
])
,
.
R
(
1'b0
)
,
.
Q
(
r
[
0
]))
;
FDRE
#(
.
INIT
(
1'b0
))
r1
(
.
C
(
clk
)
,
.
CE
(
1'b1
)
,
.
D
(
r
[
0
])
,
.
R
(
1'b0
)
,
.
Q
(
r
[
1
]))
;
FDRE
#(
.
INIT
(
1'b0
))
r1
(
.
C
(
clk
)
,
.
CE
(
1'b1
)
,
.
D
(
r
[
0
])
,
.
Q
(
r
[
1
]))
;
FDRE
#(
.
INIT
(
1'b0
))
r2
(
.
C
(
clk
)
,
.
CE
(
1'b1
)
,
.
D
(
r
[
1
])
,
.
R
(
1'b0
)
,
.
Q
(
r
[
2
]))
;
assign
q
=
r
[
2
]
;
endmodule
...
...
architecture/synth_xilinx_srl/run-test.sh
View file @
6fd5fd38
...
...
@@ -20,8 +20,8 @@ if ! which iverilog > /dev/null ; then
fi
wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_small/lfsr/generate.py
-O
generate_lfsr.py
-o
/dev/null
python3 generate_lfsr.py
python3 ../generate.py
#
python3 generate_lfsr.py
#
python3 ../generate.py
cp ../
*
.v
.
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
!(
test21
*
)
.v
EXTRA_FLAGS
=
"
\
-f 'verilog -noblackbox -icells'
\
...
...
architecture/synth_xilinx_srl/test17a.v
View file @
6fd5fd38
...
...
@@ -17,6 +17,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd test17a; select t:SRL16E -assert-count 1; select t:
* t:SRL16E %d -assert-count 0;
"
;
wire
[
4095
:
0
]
assert_area
=
"cd test17a; select t:SRL16E -assert-count 1; select t:
BUFG t:SRL16E %% %n t:* %i -assert-none
"
;
endmodule
`endif
architecture/synth_xilinx_srl/test17b.v
View file @
6fd5fd38
...
...
@@ -10,6 +10,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd test17b; select t:SRL16E -assert-count 1; select t:
* t:SRL16E %d -assert-count 0;
"
;
wire
[
4095
:
0
]
assert_area
=
"cd test17b; select t:SRL16E -assert-count 1; select t:
BUFG t:SRL16E %% %n t:* %i -assert-none
"
;
endmodule
`endif
architecture/synth_xilinx_srl/test17c.v
View file @
6fd5fd38
...
...
@@ -12,6 +12,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd test17c; select t:SRL16E -assert-count 2; select t:
* t:SRL16E %d -assert-count 0;
"
;
wire
[
4095
:
0
]
assert_area
=
"cd test17c; select t:SRL16E -assert-count 2; select t:
BUFG t:SRL16E %% %n t:* %i -assert-none
"
;
endmodule
`endif
architecture/synth_xilinx_srl/test17d.v
View file @
6fd5fd38
...
...
@@ -13,6 +13,7 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd test17d; select t:SRL16E -assert-count 2; select t:FD* -assert-count 1; select t:* t:SRL16E %d t:FD* %d -assert-count 0;"
;
wire
[
4095
:
0
]
assert_area
=
"cd test17d; select t:SRL16E -assert-count 2; select t:FD* -assert-count 1; select t:BUFG t:SRL16E t:FD* %% %n t:* %i -assert-none"
;
endmodule
`endif
architecture/synth_xilinx_srl/test17e.v
View file @
6fd5fd38
...
...
@@ -15,6 +15,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd test17e; select t:SRL16E -assert-count 1; select t:
* t:SRL16E %d -assert-count 0
;"
;
wire
[
4095
:
0
]
assert_area
=
"cd test17e; select t:SRL16E -assert-count 1; select t:
BUFG t:SRL16E %% %n t:* %i -assert-none
;"
;
endmodule
`endif
architecture/synth_xilinx_srl/ug901a.v
View file @
6fd5fd38
...
...
@@ -21,6 +21,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd shift_registers_0; select t:SRLC32E -assert-count 1; select t:SRLC32E %% %n t:* %i -assert-none"
;
wire
[
4095
:
0
]
assert_area
=
"cd shift_registers_0; select t:SRLC32E -assert-count 1; select t:
BUFG t:
SRLC32E %% %n t:* %i -assert-none"
;
endmodule
`endif
architecture/synth_xilinx_srl/ug901b.v
View file @
6fd5fd38
...
...
@@ -26,6 +26,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd shift_registers_1; select t:SRLC32E -assert-count 1; select t:SRLC32E %% %n t:* %i -assert-none"
;
wire
[
4095
:
0
]
assert_area
=
"cd shift_registers_1; select t:SRLC32E -assert-count 1; select t:
BUFG t:
SRLC32E %% %n t:* %i -assert-none"
;
endmodule
`endif
architecture/synth_xilinx_srl/ug901c.v
View file @
6fd5fd38
...
...
@@ -21,6 +21,6 @@ endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd dynamic_shift_register_1; select t:SRLC32E -assert-count 1; select t:SRLC32E %% %n t:* %i -assert-none"
;
wire
[
4095
:
0
]
assert_area
=
"cd dynamic_shift_register_1; select t:SRLC32E -assert-count 1; select t:
BUFG t:
SRLC32E %% %n t:* %i -assert-none"
;
endmodule
`endif
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