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
e00c8047
Commit
e00c8047
authored
Aug 23, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add multi-enable tests
parent
86b3e822
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
architecture/synth_xilinx_srl/multien.v
+19
-0
architecture/synth_xilinx_srl/multien_var_len.v
+19
-0
No files found.
architecture/synth_xilinx_srl/multien.v
0 → 100644
View file @
e00c8047
(
*
top
*
)
module
multiclock
(
input
clk
,
en1
,
en2
,
i
,
output
q
)
;
reg
[
6
:
0
]
r
;
always
@
(
posedge
clk
)
begin
if
(
en1
)
begin
r
[
2
:
0
]
<=
{
r
[
1
:
0
]
,
i
};
r
[
6
:
4
]
<=
r
[
5
:
3
]
;
end
if
(
en2
)
r
[
3
]
<=
r
[
2
]
;
end
assign
q
=
r
[
6
]
;
endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd multiclock; select t:SRL* -assert-count 2; select t:FD* -assert-count 1"
;
endmodule
`endif
architecture/synth_xilinx_srl/multien_var_len.v
0 → 100644
View file @
e00c8047
(
*
top
*
)
module
multien_var_len
(
input
clk
,
en1
,
en2
,
i
,
input
[
2
:
0
]
l
,
output
q
)
;
reg
[
6
:
0
]
r
;
always
@
(
posedge
clk
)
begin
if
(
en1
)
begin
r
[
2
:
0
]
<=
{
r
[
1
:
0
]
,
i
};
r
[
6
:
4
]
<=
r
[
5
:
3
]
;
end
if
(
en2
)
r
[
3
]
<=
r
[
2
]
;
end
assign
q
=
r
[
l
]
;
endmodule
`ifndef
_
AUTOTB
module
__
test
;
wire
[
4095
:
0
]
assert_area
=
"cd multien_var_len; select t:SRL* -assert-count 0; select t:FD* -assert-count 7"
;
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