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