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
3ca96b9a
Commit
3ca96b9a
authored
May 01, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce shift register length for less aggressive retiming
parent
fadaed40
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
architecture/synth_xilinx_srl/test21.ys
+1
-1
architecture/synth_xilinx_srl/top.v
+2
-2
No files found.
architecture/synth_xilinx_srl/test21.ys
View file @
3ca96b9a
...
@@ -6,4 +6,4 @@ write_verilog synth21.v
...
@@ -6,4 +6,4 @@ write_verilog synth21.v
# Check that retiming does not infer shift registers
# Check that retiming does not infer shift registers
select t:SRL* -assert-count 0
select t:SRL* -assert-count 0
select t:FD* -assert-min
13
select t:FD* -assert-min
20
architecture/synth_xilinx_srl/top.v
View file @
3ca96b9a
...
@@ -136,12 +136,12 @@ generate
...
@@ -136,12 +136,12 @@ generate
assign
w1
=
^
a
[
`N
/
2
-
1
:
0
]
;
assign
w1
=
^
a
[
`N
/
2
-
1
:
0
]
;
shift_reg
#(
.
depth
(
4
))
sr0
(
clk
,
w1
,
1'b1
,
/*l*/
,
z
[
0
]
,
/* state */
)
;
shift_reg
#(
.
depth
(
4
))
sr0
(
clk
,
w1
,
1'b1
,
/*l*/
,
z
[
0
]
,
/* state */
)
;
assign
w2
=
~^
a
[
`N
-
1
:
`N
/
2
]
;
assign
w2
=
~^
a
[
`N
-
1
:
`N
/
2
]
;
shift_reg
#(
.
depth
(
8
)
,
.
neg_clk
(
1
)
,
.
inferred
(
1
)
,
.
init
(
1
))
sr1
(
clk
,
w2
,
r
,
/*l*/
,
z
[
1
]
,
/* state */
)
;
shift_reg
#(
.
depth
(
4
)
,
.
neg_clk
(
1
)
,
.
inferred
(
1
)
,
.
init
(
1
))
sr1
(
clk
,
w2
,
r
,
/*l*/
,
z
[
1
]
,
/* state */
)
;
assign
z
[
`N
-
1
:
2
]
=
'b0
;
// Suppress no driver warning
assign
z
[
`N
-
1
:
2
]
=
'b0
;
// Suppress no driver warning
`elsif
TEST22
`elsif
TEST22
wire
w
;
wire
w
;
assign
w
=
^
a
[
`N
-
1
:
0
]
;
assign
w
=
^
a
[
`N
-
1
:
0
]
;
shift_reg
#(
.
depth
(
16
)
,
.
inferred
(
1
))
sr1
(
clk
,
w
,
r
,
/*l*/
,
z
[
0
]
,
/* state */
)
;
shift_reg
#(
.
depth
(
8
)
,
.
inferred
(
1
))
sr1
(
clk
,
w
,
r
,
/*l*/
,
z
[
0
]
,
/* state */
)
;
assign
z
[
`N
-
1
:
1
]
=
'b0
;
// Suppress no driver warning
assign
z
[
`N
-
1
:
1
]
=
'b0
;
// Suppress no driver warning
`endif
`endif
endgenerate
endgenerate
...
...
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