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
f55b04b9
Commit
f55b04b9
authored
May 03, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test21
parent
5db7ad6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
architecture/synth_xilinx_srl/test21a.v
+11
-0
architecture/synth_xilinx_srl/test21b.v
+16
-0
No files found.
architecture/synth_xilinx_srl/test21a.v
0 → 100644
View file @
f55b04b9
module
test21a
#(
parameter
width
=
130
,
depth
=
4
)
(
input
clk
,
input
[
width
-
1
:
0
]
i
,
output
q
)
;
genvar
d
;
wire
[
depth
:
0
]
int
;
assign
int
[
0
]
=
^
i
[
width
-
1
:
0
]
;
generate
for
(
d
=
0
;
d
<
depth
;
d
=
d
+
1
)
begin
\
$
_
DFFE_PP_
r
(
.
C
(
clk
)
,
.
D
(
int
[
d
])
,
.
E
(
1'b1
)
,
.
Q
(
int
[
d
+
1
]))
;
end
endgenerate
assign
q
=
int
[
depth
]
;
endmodule
architecture/synth_xilinx_srl/test21b.v
0 → 100644
View file @
f55b04b9
module
test21b
#(
parameter
width
=
130
,
depth
=
4
)
(
input
clk
,
input
[
width
-
1
:
0
]
i
,
input
e
,
output
q
)
;
reg
[
depth
-
1
:
0
]
int
;
genvar
d
;
for
(
d
=
0
;
d
<
depth
;
d
=
d
+
1
)
initial
int
[
d
]
<=
~
(
d
%
2
)
;
if
(
depth
==
1
)
begin
always
@
(
negedge
clk
)
if
(
e
)
int
<=
~^
i
[
width
-
1
:
0
]
;
assign
q
=
int
;
end
else
begin
always
@
(
negedge
clk
)
if
(
e
)
int
<=
{
int
[
depth
-
2
:
0
]
,
~^
i
[
width
-
1
:
0
]
};
assign
q
=
int
[
depth
-
1
]
;
end
endmodule
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